code for image enhancement techniques on gray image

I need to do coding for this techniques using gray image..
Mean filter for 3 x 3, 5 x 5, 9 x 9 pixels size, Max filter for 3 x 3, 5 x 5, 9 x 9 pixel size, Min filter for 3 x 3, 5 x 5, 9 x 9 pixel size

댓글 수: 1

i need to do coding for Image enhancement techniques for real world examples using digital images

댓글을 달려면 로그인하십시오.

답변 (1개)

Image Analyst
Image Analyst 2014년 3월 16일
Try this:
for windowWidth = [3,5,9]
% Mean
meanImage = conv2(grayImage, ones(windowWidth)/windowWidth^2, 'same');
% Min
minImage = imerode(grayImage, ones(windowWidth));
% Max
maxImage = imdilate(grayImage, ones(windowWidth));
end
Of course you can display them in the loop or whatever you want to do.

카테고리

도움말 센터File Exchange에서 Image Filtering and Enhancement에 대해 자세히 알아보기

질문:

2014년 3월 16일

댓글:

2023년 12월 1일

Community Treasure Hunt

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

Start Hunting!

Translated by