%YIQ to RGB

%R=Y+0.956*I+0.621*Q

%G=Y-0.272*I-0.647*Q

%B=Y-1.106*I+1.703*Q

RGB=uint8(zeros(size(YIQ)));

for i=1:size(YIQ,1)

for j=1:size(YIQ,2)

RGB(i,j,1)=YIQ(i,j,1)+0.956*YIQ(i,j,2)+0.621*YIQ(i,j,3);

RGB(i,j,2)=YIQ(i,j,1)-0.272*YIQ(i,j,2)-0.647*YIQ(i,j,3);

RGB(i,j,3)=YIQ(i,j,1)-1.106*YIQ(i,j,2)+1.703*YIQ(i,j,3);

end

end

figure,imshow(RGB);

title('RGB Image');

## 0 comments:

## Enjoyed Reading? Share Your Views