Assignment -4
1. Image Restoration (Noise Removal)1. Arithmetic Mean2. Geometric Mean3. Local Noise Reduction Filter4. Median Filter5. Adaptive Median Filter
2. Color Image Processing (Pseudo-color image processing)1. Intensity Slicing2. Intensity to Color Transformation
Due Date: May 11th , 11:59 PM
Color Image Processing
1. Color Image Processing (Pseudo-color image processing)1. Intensity Slicing2. Intensity to Color Transformation
Intensity Slicing
Greyscale image (h,w,1)
Output color image ((h,w,3)
Slices = 5
0 255~42 ~85 ~127 ~170 ~212
Red
Green
Blue
Intensity Slicing
Greyscale image (h,w,1)
Output color image ((h,w,3)
Slices = 5
0 255~42 ~85 ~127 ~170 ~212
Color3 Color4 Color5 Color6(120,32,92)Color1
(80,200,130)Color2
Red
Green
Blue
Intensity Slicing
Greyscale image (h,w,1)
Output color image ((h,w,3)
Slices = 5
0 255~42 ~85 ~127 ~170 ~212
(120,32,92)Color1
(80,200,130)Color2 Color3 Color4 Color5 Color6
30
Lies in interval 1
Red
Green
Blue
2. Intensity to Color Transformations
• Input: greyscale image, number of slices, (phase1, phase2, phase3)
Color Transformations
Greyscale image (h,w,1)
Output color image ((h,w,3)
Slices = 5
0 255~42 ~85 ~127 ~170 ~212
Red
Green
Blue
Color Transformations
Greyscale image (h,w,1)
Output color image ((h,w,3)
Slices = 5
0 255~42 ~85 ~127 ~170 ~212
Red
Green
Blue
255*Sin (k + phase1)
255*Sin (k + phase2)
255*Sin (k + phase3)
Color Transformations
Greyscale image (h,w,1)
Output color image ((h,w,3)
Slices = 5
0 255~42 ~85 ~127 ~170 ~212
Red
Green
Blue
255*Sin (k + phase1)
255*Sin (k + phase2)
255*Sin (k + phase3)
50Lies in interval 2
Center = 63.5Color = 255*Sin (63.5 + phase1)255*Sin (63.5 + phase2)255*Sin (63.5 + phase3)
Color Transformations
Greyscale image (h,w,1)
Output color image ((h,w,3)
Slices = 5
0 255~42 ~85 ~127 ~170 ~212
Red
Green
Blue
255*Sin (k + phase1)
255*Sin (k + phase2)
255*Sin (k + phase3)
50Lies in interval 2
Center = 63.5Color = 255*Sin (63.5 + phase1)255*Sin (63.5 + phase2)255*Sin (63.5 + phase3)
Submission Instructions
Must use the starter code available in Github Submission allowed only through Github You will receive an email with invitation to join
Github classroom Start by reading the readme.md file.
Instructions are available here Github will automatically save the last commit
as a submission before the deadline