Code Monkey home page Code Monkey logo

image-processing-assignments's Introduction

Image-processing-assignments

Following questions were part of the assignment for the digital image processing course.

  1. Histogram.py was written to find the histogram for the grayscale images.

  2. Frequency lowpass.py was written to check the frequency domain ideal low pass filter properties

  3. Filter the image characters.tif in the frequency domain using the Gaussian low pass filter given by 𝐻 (𝑒, 𝑣) =exp (βˆ’π·2(𝑒, 𝑣)/2𝐷02), where all the terms are as explained in part b. For 𝐷0=100, compare the result with that of the ILPF. This was done using Gauss-lowpass.py

  4. Use homomorphic filtering to enhance the contrast of the image PET_image.tif. Use the following filter to perform the high pass filtering 𝐷 (𝑒, 𝑣) =(π›Ύπ»βˆ’π›ΎπΏ) [1βˆ’exp (βˆ’π·2(𝑒, 𝑣)/2𝐷02)] + 𝛾𝐿, where 𝛾𝐻, 𝛾𝐿 and 𝐷0 are the parameters that you need to adjust through experimentation. This was done using Homomorphic filtering.py

5.a. Mitigate the noise in the image noisy.tif by filtering it with a square averaging mask of sizes 5,10 and 15. What do you notice with increasing mask size.

b. Use high boost filtering to sharpen the denoised image from part a. Choose the scaling constant for the high pass component that minimizes the mean squared error between the sharpened image and the image characters.tif. This was done using Spatial domain filtering.py

  1. Generate a 𝑀×𝑁 sinusoidal image sin(2πœ‹π‘’0π‘š/𝑀+2πœ‹π‘£0𝑛/𝑁) for 𝑀=𝑁=1001, 𝑒0=100 and 𝑣0=200 and compute its DFT. To visualize the DFT of an image take logarithm of the magnitude spectrum. This was done using DFT visualizer.py

  2. Image Deblurring: Deblur the images Blurred-LowNoise.png (Noise Standard Deviation (𝜎)=1), Blurred-MedNoise.png (𝜎=5) and Blurred-HighNoise.png (𝜎=10) which have been blurred by the kernel BlurKernel.mat using inverse filtering, constrained least squares filtering, wiener filtering

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    πŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. πŸ“ŠπŸ“ˆπŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❀️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.