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!