losing CData after replotting image in subplot ?
Afficher commentaires plus anciens
I am making a montage of image panels, which look like BW but are not binary.
I am then taking the CData of the montage and , using imagesc, I would like to recolorize my image
so I set the proper x,y size (obtained from montage object) and add the montage CData info.
in a new figure I obtain the desired colored montage. In the same subplot panel no. Even after clearing or removing the montage.
why is that ?
adding a color map makes the image binary. I add the line just for testing
mo=montage(tN,'size',[2,4]);
cdata = mo.CData;,cla(ax325)
ax325=subplot(3,2,5);
imagesc(2560,1280,cdata);
colormap parula
1 commentaire
Image Analyst
le 6 Mar 2021
Attach tN in a .mat file.
Réponse acceptée
Plus de réponses (0)
Catégories
En savoir plus sur Red dans Centre d'aide et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!