필터 지우기
필터 지우기

erosion of image of kidney ROI

조회 수: 3 (최근 30일)
Renuka
Renuka 2014년 6월 3일
답변: Image Analyst 2014년 6월 3일
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.

답변 (1개)

Image Analyst
Image Analyst 2014년 6월 3일
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.

카테고리

Help CenterFile Exchange에서 Image Processing and Computer Vision에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by