Filter löschen
Filter löschen

erosion of image of kidney ROI

3 Ansichten (letzte 30 Tage)
Renuka
Renuka am 3 Jun. 2014
Beantwortet: Image Analyst am 3 Jun. 2014
I want to erode image but without using inbuilt function, so can you help me please. I want algorithm for erosion using disk structuring element.

Antworten (1)

Image Analyst
Image Analyst am 3 Jun. 2014
imerode is just the local min. So set up a 2D nested for loop. At each location extract a subimage and find its min value. Then set the output image at that location to that value.
windowSize = 9; % Whatever.
for col = 1 : columns
for row = 1 : rows
subImage = grayImage(.....
minValue = min(subImage(:));
outputImage(row, col) = minValue;
end
end
See if you can finish the "missing line". I had to leave something for you to do, because it sounds a lot like homework.

Kategorien

Mehr zu Image Processing and Computer Vision finden Sie in Help Center und File Exchange

Tags

Community Treasure Hunt

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

Start Hunting!

Translated by