How to display contrast image, entropy image, homogeneity image ... ?
4 views (last 30 days)
Show older comments
Hello,
I have this code which shows the values. But how to display the images ? Like that https://imgur.com/mewPK,FLldQ
THank you
glcm=graycomatrix(croppedImage);
F=graycoprops(glcm,{'Contrast','Homogeneity','Correlation','Energy'});
contrast=F.Contrast;
homogeneity=F.Homogeneity;
correlation=F.Correlation;
energy=F.Energy;
entropie = entropy(croppedImage);
res=[contrast energy homogeneity correlation entropie]
0 Comments
Answers (1)
Sanchit Trivedi
on 15 Jun 2021
Edited: Sanchit Trivedi
on 15 Jun 2021
You can use the subplot function to show images in a grid. Specify the subplot you want to use and follow it up with the imshow function.
subplot(2,2,1)
imshow(<Image>)
3 Comments
Sanchit Trivedi
on 15 Jun 2021
Passing scalar values instead of an Image Matrix to imshow is causing this issue. Try passing in the Image Matrices for the task that you are trying to accomplish.
See Also
Categories
Find more on 3-D Volumetric Image Processing in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!