Clear Filters
Clear Filters

How do I display the output of my stats_

2 views (last 30 days)
Donnell Perkins
Donnell Perkins on 16 Mar 2020
Answered: Stijn Haenen on 16 Mar 2020
fontSize = 20;
I= rgb2gray(imread('C:\Users\x\Desktop\5.jpg'))
subplot(1, 2, 1);
title('Original Image', 'FontSize', fontSize);
subplot(1, 2, 2);
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;
title('Masked Image', 'FontSize', fontSize);
maskedImage = I.* cast(maskImage, class(I));
stats_maskImage = graycoprops(glcm_maskedImage)
y= [stats_maskImage.Homogeneity; stats_maskImage.Energy; stats_maskImage.Correlation; stats_maskImage.Contrast];
subplot(1, 3, 3);

Answers (1)

Stijn Haenen
Stijn Haenen on 16 Mar 2020
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?


Find more on Graphics Performance 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!