from
Image Zoomin
by Ahmed Samieh
Digital Image Zoomin (gray and color images)
|
| yuv2rgb( I ) |
function O = yuv2rgb( I )
[i,j,k] = size(I);
CONVERTER = [1 0 1.13983
1 -0.39465 -0.58060
1 2.03211 0 ];
for row = 1:i
for col = 1:j
YUV = [I(row, col, 1)
I(row, col, 2)
I(row, col, 3)];
RGB = CONVERTER * double(YUV);
O(row, col, :) = uint8(YUV);
end
end
return
|
|
Contact us at files@mathworks.com