Fusing layers of a color image
Hi,
After segmenting the 3 layers of a Truecolor image , I tried to fuse the segmented images but an error appear , every layer is an rgb image after overlaying a color for the region to segmented using ind2rgb
<</matlabcentral/answers/uploaded_files/48640/voi1.PNG>>
<</matlabcentral/answers/uploaded_files/48641/voi2.PNG>>
<</matlabcentral/answers/uploaded_files/48642/voi3.PNG>>
here is the code
image(I_rgb1)
im1=imoverlay(FC1,FC1~=2)
title(sprintf(‘Fuzzy connected component 1’));
figure(2)
image(I_rgb2)
im2=imoverlay(FC2,FC2~=2)
title(sprintf(‘Fuzzy connected component 2’));
figure(3)
image(I_rgb3)
im3=imoverlay(FC3,FC3~=2);
title(sprintf(‘Fuzzy connected component 3’));
FC= cat(3,im1,im2,im3);
when i want to display the image, image() doesn’t work also imshow()
figure ;
imshow(FC,[])
% the error: images.internal.imageDisplayParseInputs({‘Parent’,’Border’,’Reduce’},preparsed_varargin{:});
image(FC)
% the error :Invalid datatype for Image CData. Numeric or logical matrix required for image CData.Hi,
After segmenting the 3 layers of a Truecolor image , I tried to fuse the segmented images but an error appear , every layer is an rgb image after overlaying a color for the region to segmented using ind2rgb
<</matlabcentral/answers/uploaded_files/48640/voi1.PNG>>
<</matlabcentral/answers/uploaded_files/48641/voi2.PNG>>
<</matlabcentral/answers/uploaded_files/48642/voi3.PNG>>
here is the code
image(I_rgb1)
im1=imoverlay(FC1,FC1~=2)
title(sprintf(‘Fuzzy connected component 1’));
figure(2)
image(I_rgb2)
im2=imoverlay(FC2,FC2~=2)
title(sprintf(‘Fuzzy connected component 2’));
figure(3)
image(I_rgb3)
im3=imoverlay(FC3,FC3~=2);
title(sprintf(‘Fuzzy connected component 3’));
FC= cat(3,im1,im2,im3);
when i want to display the image, image() doesn’t work also imshow()
figure ;
imshow(FC,[])
% the error: images.internal.imageDisplayParseInputs({‘Parent’,’Border’,’Reduce’},preparsed_varargin{:});
image(FC)
% the error :Invalid datatype for Image CData. Numeric or logical matrix required for image CData. Hi,
After segmenting the 3 layers of a Truecolor image , I tried to fuse the segmented images but an error appear , every layer is an rgb image after overlaying a color for the region to segmented using ind2rgb
<</matlabcentral/answers/uploaded_files/48640/voi1.PNG>>
<</matlabcentral/answers/uploaded_files/48641/voi2.PNG>>
<</matlabcentral/answers/uploaded_files/48642/voi3.PNG>>
here is the code
image(I_rgb1)
im1=imoverlay(FC1,FC1~=2)
title(sprintf(‘Fuzzy connected component 1’));
figure(2)
image(I_rgb2)
im2=imoverlay(FC2,FC2~=2)
title(sprintf(‘Fuzzy connected component 2’));
figure(3)
image(I_rgb3)
im3=imoverlay(FC3,FC3~=2);
title(sprintf(‘Fuzzy connected component 3’));
FC= cat(3,im1,im2,im3);
when i want to display the image, image() doesn’t work also imshow()
figure ;
imshow(FC,[])
% the error: images.internal.imageDisplayParseInputs({‘Parent’,’Border’,’Reduce’},preparsed_varargin{:});
image(FC)
% the error :Invalid datatype for Image CData. Numeric or logical matrix required for image CData. display color image, truecolorimage, indexedimage, overlaying, superpose MATLAB Answers — New Questions