how to use square filter with value 4 for erode function

回答 (1 件)

Image Analyst
Image Analyst 2016 年 3 月 14 日

0 投票

'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);

カテゴリ

ヘルプ センター および File ExchangeStatistics and Machine Learning Toolbox についてさらに検索

タグ

質問済み:

2016 年 3 月 14 日

回答済み:

2016 年 3 月 14 日

Community Treasure Hunt

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

Start Hunting!

Translated by