Top Banner
Assignment -5 1. Color Image Processing (Pseudo-color image processing) 1. Intensity Slicing 2. Intensity to Color Transformation Due Date: May 5 th , 11:59 PM
15

Assignment -5 - qil.uh.eduqil.uh.edu/dip/media/cosc6380/Assignment-5.pdf · Assignment -5 1. Color Image Processing (Pseudo-color image processing) 1. Intensity Slicing 2. Intensity

Jun 21, 2020

Download

Documents

dariahiddleston
Welcome message from author
This document is posted to help you gain knowledge. Please leave a comment to let me know what you think about it! Share it to your friends and learn new things together.
Transcript
Page 1: Assignment -5 - qil.uh.eduqil.uh.edu/dip/media/cosc6380/Assignment-5.pdf · Assignment -5 1. Color Image Processing (Pseudo-color image processing) 1. Intensity Slicing 2. Intensity

Assignment -5

1. Color Image Processing (Pseudo-color image processing)

1. Intensity Slicing

2. Intensity to Color Transformation

Due Date: May 5th , 11:59 PM

Page 2: Assignment -5 - qil.uh.eduqil.uh.edu/dip/media/cosc6380/Assignment-5.pdf · Assignment -5 1. Color Image Processing (Pseudo-color image processing) 1. Intensity Slicing 2. Intensity

1. Intensity Slicing

• Input: greyscale image, number of slices

Page 3: Assignment -5 - qil.uh.eduqil.uh.edu/dip/media/cosc6380/Assignment-5.pdf · Assignment -5 1. Color Image Processing (Pseudo-color image processing) 1. Intensity Slicing 2. Intensity

Intensity Slicing

Greyscale image (h,w,1)

Output color image ((h,w,3)

Slices = 5

Page 4: Assignment -5 - qil.uh.eduqil.uh.edu/dip/media/cosc6380/Assignment-5.pdf · Assignment -5 1. Color Image Processing (Pseudo-color image processing) 1. Intensity Slicing 2. Intensity

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

Page 5: Assignment -5 - qil.uh.eduqil.uh.edu/dip/media/cosc6380/Assignment-5.pdf · Assignment -5 1. Color Image Processing (Pseudo-color image processing) 1. Intensity Slicing 2. Intensity

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

Page 6: Assignment -5 - qil.uh.eduqil.uh.edu/dip/media/cosc6380/Assignment-5.pdf · Assignment -5 1. Color Image Processing (Pseudo-color image processing) 1. Intensity Slicing 2. Intensity

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

Page 7: Assignment -5 - qil.uh.eduqil.uh.edu/dip/media/cosc6380/Assignment-5.pdf · Assignment -5 1. Color Image Processing (Pseudo-color image processing) 1. Intensity Slicing 2. Intensity

Example

10 Slices

8 Slices

Page 8: Assignment -5 - qil.uh.eduqil.uh.edu/dip/media/cosc6380/Assignment-5.pdf · Assignment -5 1. Color Image Processing (Pseudo-color image processing) 1. Intensity Slicing 2. Intensity

2. Intensity to ColorTransformations

• Input: greyscale image, number of slices, (phase1, phase2, phase3)

Page 9: Assignment -5 - qil.uh.eduqil.uh.edu/dip/media/cosc6380/Assignment-5.pdf · Assignment -5 1. Color Image Processing (Pseudo-color image processing) 1. Intensity Slicing 2. Intensity

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

Page 10: Assignment -5 - qil.uh.eduqil.uh.edu/dip/media/cosc6380/Assignment-5.pdf · Assignment -5 1. Color Image Processing (Pseudo-color image processing) 1. Intensity Slicing 2. Intensity

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)

Page 11: Assignment -5 - qil.uh.eduqil.uh.edu/dip/media/cosc6380/Assignment-5.pdf · Assignment -5 1. Color Image Processing (Pseudo-color image processing) 1. Intensity Slicing 2. Intensity

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)

Page 12: Assignment -5 - qil.uh.eduqil.uh.edu/dip/media/cosc6380/Assignment-5.pdf · Assignment -5 1. Color Image Processing (Pseudo-color image processing) 1. Intensity Slicing 2. Intensity

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)

Page 13: Assignment -5 - qil.uh.eduqil.uh.edu/dip/media/cosc6380/Assignment-5.pdf · Assignment -5 1. Color Image Processing (Pseudo-color image processing) 1. Intensity Slicing 2. Intensity

Examples

Slices = 20Phase1 = 20Phase2=70Phase3=270

Page 14: Assignment -5 - qil.uh.eduqil.uh.edu/dip/media/cosc6380/Assignment-5.pdf · Assignment -5 1. Color Image Processing (Pseudo-color image processing) 1. Intensity Slicing 2. Intensity

Assignment -4

1. Intensity Slicing

2. Intensity to Color Transformation

Total: 15 Pts.

Page 15: Assignment -5 - qil.uh.eduqil.uh.edu/dip/media/cosc6380/Assignment-5.pdf · Assignment -5 1. Color Image Processing (Pseudo-color image processing) 1. Intensity Slicing 2. Intensity

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