Practical Work 1: Image Colorization

Jingwei Cao

Project description

In this project we are given several digitized glass plate gray-level images both in low and high resolution from the Prokudin-Gorskii collection.Our objective is to divide the image into three part of the same size and to extract three color channel and to align them with the order of R,G and B. Using this image processing method we can produce a colorized image. The image matching task is fulfilled by a simple metric which is called the sum of square difference. We only need to define a search window with a user-specified height and width and use brute force method in a loop to scan the best displacement vector. So the translation model is a prerequisite for this project. And we also use a image pyramid method to reduce the complexity algorithm when we need to manipulate the high resolution image. As far as the automatic image cropping is concerned, a sobel filter is applied to detect the edge and remove the bad region with artifacts and strange colors.

Results Display

We illustrate the results of both low resolution image and high resolution image with the displacement vector.

Low resolution image

Example images

00106v.jpg

Displacement vector:G[4 1] R[9 -1]

00757v.jpg

Displacement vector:G[2 3] R[5 5]

00888v.jpg

Displacement vector:G[6 1] R[12 0]

00889v.jpg

Displacement vector:G[2 2] R[4 3]

00907v.jpg

Displacement vector:G[2 0] R[6 0]

00911v.jpg

Displacement vector:G[1 -1] R[13 -1]

01031v.jpg

Displacement vector:G[1 1] R[4 2]

01657v.jpg

Displacement vector:G[5 1] R[12 1]

01880v.jpg

Displacement vector:G[6 2] R[14 4]

Images from the Prokudin-Gorskii collection

00017v.jpg

Displacement vector:G[1 -2] R[1 -3]

00018v.jpg

Displacement vector:G[6 3] R[14 5]

00036v.jpg

Displacement vector:G[3 3] R[8 2]

00038v.jpg

Displacement vector:G[6 3] R[12 4]

00066v.jpg

Displacement vector:G[4 1] R[12 2]

00069v.jpg

Displacement vector:G[3 3] R[8 4]

High resolution image

Example images

01047u.tif

Displacement vector:G [24 19] R[71 33]

Link of the full size image: http://www.flickr.com/photos/116243775@N06/12276967356/

01043u.tif

Displacement vector:G [-16 10] R[11 7]

Link of the full size image: http://www.flickr.com/photos/116243775@N06/12276837154/

00892u.tif

Displacement vector:G [16 2] R[41 4]

Link of the full size image: http://www.flickr.com/photos/116243775@N06/12276570713/

00822u.tif

Displacement vector:G [57 24] R[124 33]

Link of the full size image: http://www.flickr.com/photos/116243775@N06/12276427915/

00737u.tif

Displacement vector:G [14 6] R[49 14]

Link of the full size image: http://www.flickr.com/photos/116243775@N06/12276986666/

00458u.tif

Displacement vector:G [42 5] R[87 32]

Link of the full size image: http://www.flickr.com/photos/116243775@N06/12276856394/

00128u.tif

Displacement vector:G [34 24] R[50 37]

Link of the full size image: http://www.flickr.com/photos/116243775@N06/12276589783/

00087u.tif

Displacement vector:G [48 38] R[107 55]

Link of the full size image: http://www.flickr.com/photos/116243775@N06/12277004976/

00029u.tif

Displacement vector:G [39 15] R[91 33]

Link of the full size image: http://www.flickr.com/photos/116243775@N06/12276618113/

Images from the Prokudin-Gorskii collection

00008u.tif

Displacement vector:G [46 0] R[100 0]

Link of the full size image: http://www.flickr.com/photos/116243775@N06/12277033816/

00018v.tif

Displacement vector:G [62 28] R[143 33]

Link of the full size image: http://www.flickr.com/photos/116243775@N06/12276476055/

00038u.tif

Displacement vector:G [60 26] R[122 35]

Link of the full size image: http://www.flickr.com/photos/116243775@N06/12276884074/

00066u.tif

Displacement vector:G [41 11] R[115 17]

Link of the full size image: http://www.flickr.com/photos/116243775@N06/12276879374/

00077v.tif

Displacement vector:G [44 -2] R[110 -15]

Link of the full size image: http://www.flickr.com/photos/116243775@N06/12276604503/

00088v.tif

Displacement vector:G [28 24] R[47 48]

Link of the full size image: http://www.flickr.com/photos/116243775@N06/12276447485/