The Component division of YIQ :

Y=0.30R+0.59G+0.11B

I=0.60R-0.28G-0.32B

Q=0.21R-0.52G+0.31B

MATLAB code:

Im=imread('peppers.png');

figure,imshow(Im);

title('Original Image')

%y=0.2989 * R + 0.5870 * G + 0.1140 * B

%I=0.60*R - 0.28*G-0.32*B

%Q=0.21*R -0.52*G+0.31*B

YIQ=uint8(zeros(size(Im)));for i=1:size(Im,1)

for j=1:size(Im,2)

YIQ(i,j,1)=0.2989*Im(i,j,1)+0.5870*Im(i,j,2)+0.1140*Im(i,j,3);

YIQ(i,j,2)=0.596*Im(i,j,1)-0.274*Im(i,j,2)-0.322*Im(i,j,3);

YIQ(i,j,3)=0.211*Im(i,j,1)-0.523*Im(i,j,2)+0.312*Im(i,j,3);

end

end

figure,imshow(YIQ);

title('YIQ Image');

## 1 comments:

Hey, nice site you have here! Keep up the excellent work!

Image Processing

## Enjoyed Reading? Share Your Views