How do I display the output of my stats_

조회 수: 1 (최근 30일)
Donnell Perkins
Donnell Perkins 2020년 3월 16일
답변: Stijn Haenen 2020년 3월 16일
fontSize = 20;
I= rgb2gray(imread('C:\Users\x\Desktop\5.jpg'))
subplot(1, 2, 1);
imshow(I);
title('Original Image', 'FontSize', fontSize);
subplot(1, 2, 2);
imshow(I);
title('Draw Region Of Interest', 'FontSize', fontSize);
set(gcf, 'units','normalized','outerposition',[0 0 1 1]); % Maximize figure.
set(gcf,'name','Analysis of Texture Features of Cervical Cells','numbertitle','off')
subplot(1, 2, 2);
hFH = drawassisted()
maskImage = hFH.createMask();
subplot(1, 2, 2);
blackMaskedImage = I;
blackMaskedImage(~maskImage) = NaN;
imshow(blackMaskedImage);
title('Masked Image', 'FontSize', fontSize);
maskedImage = I.* cast(maskImage, class(I));
glcm_maskedImage=graycomatrix(maskedImage);
stats_maskImage = graycoprops(glcm_maskedImage)
y= [stats_maskImage.Homogeneity; stats_maskImage.Energy; stats_maskImage.Correlation; stats_maskImage.Contrast];
bar(y)
subplot(1, 3, 3);

답변 (1개)

Stijn Haenen
Stijn Haenen 2020년 3월 16일
Im not sure what you mean.
With the command 'gcf' you get all the stats of the figure.
The stats of the maskImage are in your workspace right?

카테고리

Help CenterFile Exchange에서 Graphics Performance에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by