how to use square filter with value 4 for erode function

Respuestas (1)

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

Categorías

Más información sobre Statistics and Machine Learning Toolbox en Centro de ayuda y File Exchange.

Etiquetas

Preguntada:

el 14 de Mzo. de 2016

Respondida:

el 14 de Mzo. de 2016

Community Treasure Hunt

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

Start Hunting!

Translated by