How to display the object created with function strel?

How to display the object created with function strel?

2 个评论

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.

请先登录,再进行评论。

 采纳的回答

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

4 个评论

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

请先登录,再进行评论。

更多回答(0 个)

Community Treasure Hunt

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

Start Hunting!

Translated by