folder='C:\Users\الزهراء\Documents\MATLAB\database'; I=dir(fullfile(folder,'*.tif'));

for k=1:numel(I)

filename=fullfile(folder,I(k).name);

I2{k}=imread(filename);

end

o=I2';

for iC = 1:numel(o)

o{iC} = uint8(o{iC});

end

for i=1:25

YCbCr = rgb2ycbcr(o{i,1});

Y = YCbCr(:,:,1); %Isolate Cb.

Cb = YCbCr(:,:,2); %Isolate Cr. Cr= YCbCr(:,:,3); i=i+1; figure,imshow(Y),title('y component ');

image processing

Matlab

More Eman I. Abd El-latif's questions See All
Similar questions and discussions