How to See Regionprops Results on Seperate Windows

1 回表示 (過去 30 日間)
Murat Kocaman
Murat Kocaman 2018 年 6 月 4 日
コメント済み: Murat Kocaman 2018 年 6 月 4 日
Hello,
My study gives results on matlab interface. The line is:
s=regionprops(logical(bw3),'Centroid','Area','Eccentricity','Perimeter');
Is it possible to see these values on a seperate window as a result?

採用された回答

Varun Garg
Varun Garg 2018 年 6 月 4 日
Hi Murat,
I understand from your question that you want to see your table s in a separate window. I think uitable will solve your problem.
Example Snippet:
a = imread('circlesBrightDark.png');
bw = a < 100;
stats = regionprops('table',bw,'Centroid', 'MajorAxisLength','MinorAxisLength')
uitable('Data', [stats.Centroid stats.MajorAxisLength stats.MinorAxisLength],...
'ColumnName', {'Centroid_X', 'Centroid_Y', 'MajorAxisLength','MinorAxisLength'}, ...
'Position', [20 20 500 150]);
You can later save the generated figure for later use. Hope my answer helps.
  1 件のコメント
Murat Kocaman
Murat Kocaman 2018 年 6 月 4 日
Yes this was what i need thank you.

サインインしてコメントする。

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeProgramming についてさらに検索

製品


リリース

R2017a

Community Treasure Hunt

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

Start Hunting!

Translated by