文件名称: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
本网站为编程资源及源代码搜集、介绍的搜索网站,版权归原作者所有! 粤ICP备11031372号
1999-2046 搜珍网 All Rights Reserved.