Azzera filtri
Azzera filtri

Fusing layers of a color image

4 visualizzazioni (ultimi 30 giorni)
sbei arafet
sbei arafet il 28 Mar 2016
Modificato: DGM il 15 Giu 2024
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
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.
  1 Commento
DGM
DGM il 15 Giu 2024
Modificato: DGM il 15 Giu 2024
I was going to make an answer for this, but then I actually read it and realized it's not meaningfully unanswerable.
There is an RGB image which has split into 3 channels. We only have improperly-ordered screenshots of those with ROI objects polluting them. We don't know whether those were generated programmatically or manualy, but we do know that they are distinct and do not completely overlap.
There are three RGB images generated from two unknown arrays each. We don't know anything about those other than the fact that the overlaid region is yellow. They ostensibly were generated by using ind2rgb() on the individual RGB channels, which makes no sense. We do not know if or how they are related to the ROI objects in the screenshots.
So we have three channel images, three ROI objects, Three unknown images, three unknown logical masks, and three RGB composite images. They are to be somehow combined to form something somehow. The fact that the masks are unique and the result is potentially expected to be yellow makes the intent unclear. We do not have access to any of the relevant data.
We do know however that FC is a 9-page stack of RGB images, which is obviously going to cause an error.
I'm just going to attach the garbage I recovered from the screenshots before I gave up. This represents (approximately) the RGB channel images when ordered correctly. The second image roughly covers the three ROI object areas and takes the form of an antialiased RGB mask.
There are plenty of answers about filling masked regions and doing masked composition.

Accedi per commentare.

Risposte (0)

Categorie

Scopri di più su Convert Image Type in Help Center e File Exchange

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by