How to display the object created with function strel?

How to display the object created with function strel?

2 件のコメント

Adam
Adam 2017 年 11 月 23 日
編集済み: Adam 2017 年 11 月 23 日
Display it in what way? Image? Command line? You can apply it to a single dot win an otherwise blank image and you'll see what it looks like.
L
L 2017 年 11 月 27 日
Display as image.

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

 採用された回答

Walter Roberson
Walter Roberson 2017 年 11 月 24 日

1 投票

AAA = strel('disk', 5);
AAA.Neighborhood
image(AAA.Neighborhood); colormap(gray(2));

4 件のコメント

L
L 2017 年 11 月 27 日
I have got this message: "??? No appropriate method, property, or field Neighborhood for class strel."
Walter Roberson
Walter Roberson 2017 年 11 月 27 日
Which MATLAB version are you using?
neel patel
neel patel 2018 年 5 月 21 日
for display it is good but how to save that image? mit imsave it is not working. can anyone tell me the answer?
Walter Roberson
Walter Roberson 2018 年 5 月 21 日
imwrite(uint8(AAA.Neighborhood), gray(2),'NameOfFile.bmp')

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

その他の回答 (0 件)

質問済み:

L
L
2017 年 11 月 23 日

コメント済み:

2018 年 5 月 21 日

Community Treasure Hunt

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

Start Hunting!

Translated by