how to use square filter with value 4 for erode function
조회 수: 2 (최근 30일)
이전 댓글 표시
f=imread('gee.jpg');
se=strel('train',4);
k=imerode(f,se);
imshow(k);
댓글 수: 0
답변 (1개)
Image Analyst
2016년 3월 14일
'train' is not one of the options. Not sure what you want, but maybe you want to consider the 4 closest neighbors
grayImage = imread('gee.jpg');
se = [0,1,0; 1,0,1; 0,1,0];
erodedImage = imerode(grayImage , se);
imshow(erodedImage);
댓글 수: 0
참고 항목
카테고리
Help Center 및 File Exchange에서 Point Cloud Processing에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!