文件名称:demosaicing
介绍说明--下载内容均来自于网络,请自行研究使用
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- 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
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- 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
(系统自动生成,下载前可以参看下载内容)
下载文件列表
demosaicing.m