DIP 2013 Spring Sessional Solved
DIP 2013 Spring Sessional Solved
DIP 2013 Spring Sessional Solved
Roll #:
Name:
Write before you start your quiz
Solved
Q 1 [2 Credits] How in Matlab a vertical scan line can be plotted through the middle of the intensity image f of class unit8. Sol. >> plot(f(:, size(f,2)/2)) Q 2 [3 Credits] Given an RGB image sky.jpg, extract the gray-level images fR, fG, and fB of Red, Green, and Blue components, respectively, using Matlab commands. Sol. >> f = imread('sky.jpg'); >> fR = f(:, :, 1); >> fG = f(:, :, 2); >> fB = f(:, :, 3);
Q 3 [5 Credits] Given image is transformed into following: A. Image Negative B. Power Transformation for Gamma = 3 C. Power Transformation for Gamma = 0.4 D. Logarithmic for c = 5 E. Contrast Stretching for E = 10 Write suitable label A-E in space provided under the transformed image.
Given
Q 4 [10 Credits] Do the process of histogram equalization on given image of 3 bits and write new intensity values in Output 1. Repeat the same process on Output 1 and write new intensity values in Output 2. 1 2 3 4 5 6 7 0 0 Given Image
f nf cnf 2 2/9 2/9 1 1/9 3/9 1 1/9 4/9 1 1/9 5/9 1 1/9 6/9 1 1/9 7/9 1 1/9 8/9 1 1/9 9/9 Sum 9 1 For OutPut 1 I 0 1 2 3 4 5 6 7 cnf*7 2 2 3 4 5 5 6 7 I 0 1 2 3 4 5 6 7
2 3 4 5 5 6 7 2 2 Output 1
f nf cnf 0 0/9 0/9 0 0/9 0/9 3 3/9 3/9 1 1/9 4/9 1 1/9 5/9 2 2/9 7/9 1 1/9 8/9 1 1/9 9/9 Sum 9 1 For OutPut 2
2 3 4 5 5 6 7 2 2 Output 2
cnf*7 0 0 2 3 4 5 6 7
or simply say: repeated histogram equalization is always similar to the original image