Why disk structuring element of disk is 4? It's usually 3 or 21
조회 수: 2 (최근 30일)
이전 댓글 표시
답변 (1개)
DGM
2022년 7월 20일
편집: DGM
2022년 7월 20일
The size of the structuring element can be whatever is suitable for the task at hand. That's why it's user-specified. While strel() accepts this parameter as an integer-valued radius, bear in mind that the actual structuring element will always have odd diameter. In that sense, a radius of 4 shouldn't seem strange in that it's even. The array size is still odd.
st = strel('disk',4);
st.Neighborhood
참고 항목
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!