





Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!






Bilinear Interpolation and Convolution Kernels Often in image processing use Convolutions Basically create a matrix operation Ie a matrix that multiplies values in the image matrix Then apply to all parts of the image Eg is the bilinear interpolation or sharpen Now apply matrix centered on a pixel to values near it
0 -1 0 -1 5 - 0 -1 0
Multiply then sum for a replacement value
Convolution Kernel Results Example is a sharping kernel Left is input image showing location of kernel multiply Right is output applied to whole image Really good interactive page to see this at http://setosa.io/ev/image-kernels/
Demosaicing Artifacts Consider an image with a sharp vertical gray edge Chang et all showed how this creates false color at the edges Look at the R,G,B channels Each color suffers different errors due to different patterns Two types of error Zipper effect False color Note angle of edge changes these effects
Zipper Effect Zipper effect: abrupt/unexpected intensity change at edges Covers neighboring pixels Appears as an on-off pattern near edges Caused by improver averaging of neighbor color near edge Interpolation along an edge better than across the edge Across edge creates high frequency components If image interpolation is orthogonal to edge boundry Then color is unrelated to the object Hence many other demosaicing algorithms are edge sensitive Also green pattern is diagonal Zipper most often when edges not aligned to diagonal directions
Median Demosaicing General idea – use the green plane first Reason more G than other colors hence less aliased Aliased – sampling error Human eyes more green sensitive Hence getting G right most important Median method uses this spectral correlation Two similar methods: Freeman
Cok
Algorithm has 4 steps: First do bilinear interpolation Then difference between each color plane is computed using D (^) rg ( x , y ) fr ( x , y ) fg ( x , y ) D (^) gb ( x , y ) fg ( x , y ) fb ( x , y )
f denotes the pixel value at location x, y from indicate color plane. Next, median filter is applied to computed difference Drg, Dgb Drb.
Freeman Median Demosaicing Purpose of the median filter o suppress any large discrepancies between color planes o based on information from the surrounding pixels Last stage is the correction step