Most of the work was figuring out how to align the images since the sample code showed how to separate the 3 gray images.
I tried to use the Sum of Differences with bounds of (-15,15). The aligning made most of the new images look a lot less blurry.
A. Assigned Images
Not Aligned | Aligned | Displacement |
00125v.jpgX: 1, Y:10 |
||
00149v.jpgX: 1, Y:9 |
||
00153v.jpgX: 4, Y:14 |
||
00154v.jpgX: 0, Y:11 |
||
00163v.jpgX: 1, Y:-5 |
||
00270v.jpgX: 1, Y:11 |
||
00398v.jpgX: 4, Y:11 |
||
00564v.jpgX: 0, Y:11 |
||
01167v.jpgX: -2, Y:11 |
||
31421v.jpgX: 0, Y:13 |
B. Chosen Images:
Not Aligned | Aligned | Displacement |
00017v.jpgX: -2, Y:1 |
||
00056v.jpgX: 0, Y:12 |
||
00084v.jpgX: -9, Y:11 |
This part of the assignment takes so much time (Lucky I had several computers where I could run these searches in parallel). For the image pyramind, I did 5 levels (1, 0.5, 0.25, 0.125). I re-used the Sum of Differences code I implemented earlier and it takes 18 minutes to search on each of the big images. I made the mistake of thinking I could align the images without cropping edges. Wasted a whole night because each run takes about 20 minutes and I found out eventually that the edges were affecting the alignment drastically on the biggest image. I finally decided to crop edges and it aligned better. Some of them no matter what i did...it would not align perfectly. I just tried to get it as close as possible.
A. Assigned Images:
Not Aligned | Aligned | Displacement |
00458u.tiffX: 32, Y:83 |
||
00911u.tiffX: -8, Y:-8 |
||
01043u.tiffX: 3, Y:3 |
||
01047u.tiffX: 8, Y:8 |
||
01657u.tiffX: 5, Y:8 |
||
01861a.tiffX: 62, Y:148 |
||
4001.tiffX: -79, Y:61 |
||
5001.tiffX: -86, Y:68 |
B. Chosen Images:
So beautiful when the alignment works. :)
Not Aligned | Aligned | Displacement |
00033u.tiffX: 15, Y:104 |
||
00153u.tiffX: 32, Y:142 |
A. Auto-cropping
In auto-cropping, I was trying to remove the edges from the aligned images. I actually ended up using this portion's code on the multi-scale part.
Not Cropped | Cropped | Image File |
00153v.jpg |
||
00154v.jpg |
B. RGB Isolation
I thought it would be fun to do what someone did last year...and isolate a color channel in an image. I took the respective color channel, filtered based on a threshold, and then overlayed it onto a grayscale version of it. This was a lot more fun to me than doing the rgb color aligning.
Original | Red Isolation |
Original | Red Isolation |