DIP Assignment #2
Report



Ashish Gupta - 98131
Ashish Gupta - 98130


Morphing


Steps taken :

1. Read the input and output images and make sure they are the same size.
2. Read the feature points from a file.
3. Triangulate the feature points for the source image using the qdelaunay tool.
4. For each parameter t , form the intermediate frame using linear interpolation and triangle scan conversion.
5. Write each frame to a separate JPEG file.
6. At the end use convert tool to convert all the JPEG images to an animated GIF image.

Optimisations

1. Method of triangulation for intermediate frames using index values of triangles.
2. For morphing , scan conversion of each triangle was done therefore resulting in very fast morphing.



Two porcupines




Porcupine #1
Porcupine #2




Animation





Monkey to Cheetah



cheetah
Monkey
Cheetah




Animation
monkey









Region Growing



Maps

asia
Asia

Iran
world
World
australia
Australia
india
India
usa
USA






Effects of Thresholding


circ
circh
Original Image
Threshold = 0.10

circi
Threshold = 0.30
Threshold = 0.50
circ
circ
Threshold = 0.60
Threshold = 0.70





Thresholding on a Gradient



grad
grad
Original Image
Threshold = 0.02
g
Threshold = 0.08
Threshold = 0.20
g
g
Threshold = 0.40
Threshold = 0.70
g

Threshold = 0.90