Skip to content

Several problems covering fundamental concepts of Image Processing with MATLAB

Notifications You must be signed in to change notification settings

parisimaa/Image_Processing_MATLAB

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

36 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Image_Processing_Matlab

Description:

Each folder consists some problems covering different fundamental concepts in Image Processing.
Also, you may want to learn more about the theories by reading this refrence: Digital Image Processing, Rafael C. Gonzalez - Richard E. Woods

Problem set 1:

Use imag1.tiff and imag2.tiff files to create following results in MATLAB.
result1

Problem set 2:

Change the imag3.tiff light intensity using following transformation and show the result.
result2

Problem set 3: Image Quantization

Use the car image

  1. Read this image using MATLAB function and store in "color_car" array. Then transfer it to grayscale and show both images.
  2. For grayscale and each RGB channel calculate below measurments:
    • Maximum and minimum intensity
    • Average of intensity
    • Variance of intensity
  3. Try holding each RGB channel at a time and reset the two other channels to zero. Show the results. Which color channels has the most information of the image in this case? Which color will appear black or white and why?
  4. Now invert the value of each color channel(Hint: Maximum intensity - pixel's intensity) and show the results.
  5. Elminate ONLY one color channel by assigning zero to it each time. Eliminating which color channel does the least damage to the image?
  6. According to part-2 if we want to use only 4,3,2 bits ( totally 9 bits) to depict different color channels, how would you allocate these bits to each color channel in order to have the least damage to the image's information?
  7. Find the components' value for CIE XYZ, RGB image.
  8. Repeat part-6 for this system.

Problem set 4: Image Sampling

Use the tree image

  1. Quarter the number of pixels in the image in the horizontal direction. Show image.
  2. Quarter the number of pixels in the image in the vertical direction. Show image.
  3. Halve the number of pixels in the image in both directions. Show image. Which image do you think is most damaged?
  4. Now resize the images. To do so, insert a bar of pixels between two row or column or both (it depends on the image) and use one of below methods until you reach the image original size:
    • The intensity of each missing pixel is the intensity value of the neighbor to the top, left or top-left (each of which was available in image). HINT IN THE FOLDER
    • The intensity of each missing pixel is the average of the two nearest pixel to the missing one (If there is only one, consider the value of both equal). HINT IN THE FOLDER
    • For each image obtained, calculate the SNR PSNR and MSE between the original image and the created image. Intuitively, which of the above two methods do you think works best for each image?

Problem set 5: Image Information

  1. Calculate the antropy for the histogram of images: flower and baboon
  2. When the antropy will be maximum? Why?
  3. Is the Rate Distortion function an ascending function of D? Why?

Problem set 6: Discrete Fourier Transform

Consider the image of man and owl. Take 2D fourier transform images.

  1. Find the Phase and Absolute values of the man's transformed image. (in order to have a better resolution of Absolute value result, take a log from it and make sure that it is not zero inside the log)
  2. Now apply the following changes to the original image and report each time how absolute and phase values change.
    • Do "circular shift" on image.
    • Rotate the image 90 degrees clockwise.
    • Double the image in any of the directions.
  3. Now do the following for the phase and absolute of the image and report the changes made to the original image.
    • Shift the phase.
    • Rotate the phase 90 degrees clockwise.
    • Zero the amount of phase at any point.
    • Shift the absolute.
    • Rotate the absolute (like phase).
    • Halve the absolute value anywhere.
  4. Now match the phase of one image with the absolute of another image each time. Which image do you think is closer to the result?

Contact:

parisima.abdali@gmail.com