How to display contrast image, entropy image, homogeneity image ... ?
3 次查看(过去 30 天)
显示 更早的评论
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 个评论
回答(1 个)
Sanchit Trivedi
2021-6-15
编辑:Sanchit Trivedi
2021-6-15
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 个评论
Sanchit Trivedi
2021-6-15
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.
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 3-D Volumetric Image Processing 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!