Description: a or b is not integer
a = double(uint16(xx)) (a,b) is the base-dot
b = double(uint16(yy))
x11 = double(I(a,b)) x11 <- I(a,b)
x12 = double(I(a,b+1)) x12 <- I(a,b+1)
x21 = double(I(a+1,b)) x21 <- I(a+1,b)
x22 = double(I(a+1,b+1)) x22 <- I(a+1,b+1)
J(x,y) = uint8( (b+1-yy) * ((xx-a)*x21 + (a+1-xx)*x11) + (yy-b) * ((xx-a)*x22 +(a+1-xx) * x12) ) calculate J(x,y)
end
end
end
To Search:
File list (Check if you may need any files):
demosaicing.m