What units is the number in strel('disk', 22)?

조회 수: 1 (최근 30일)
Simran Parkhe
Simran Parkhe 2019년 9월 16일
편집: Guillaume 2019년 9월 16일
dilated = imdilate(ImagetoDilate,strel('disk', 22));
I have this line in my code to dilate the image, but I was wondering what units the 22 is? It says it is the radius but is it measured in centimeters, percentage, pixels or something else?

채택된 답변

Walter Roberson
Walter Roberson 2019년 9월 16일
편집: Walter Roberson 2019년 9월 16일
Pixels.
Or more correctly, memory locations, as the result is used in multiple contexts and makes no attempt to handle multiple color planes.
  댓글 수: 1
Guillaume
Guillaume 2019년 9월 16일
편집: Guillaume 2019년 9월 16일
You can easily look at the structuring element
>> s = strel('disk', 22)
s =
strel is a disk shaped structuring element with properties:
Neighborhood: [43×43 logical]
Dimensionality: 2
and you can see that the disk overlaps 43x43 pixels.
As for it being a disk:
>> imagesc(s.Neighborhood); colormap([0 0 0; 0.8 0.8 0.8]); axis('off')

댓글을 달려면 로그인하십시오.

추가 답변 (0개)

카테고리

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

제품


릴리스

R2007b

Community Treasure Hunt

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

Start Hunting!

Translated by