필터 지우기
필터 지우기

how can i preprocess an image to obtain uniform and zero average intensity in matlab

조회 수: 2 (최근 30일)
sir, how can i perform preprocessing of an image to get uniform and zero average intensity in matlab

답변 (1개)

Image Analyst
Image Analyst 2014년 5월 19일
Not exactly sure what that means, but you can do:
meanOfWholeImage = mean(grayImage(:));
zeroMeanImage = double(grayImage) - meanOfWholeImage;
If you want the mean within a window size, you can use imfilter
kernel = ones(9); % Whatever window size you want.
outputIMage = imfilter(grayImage, kernel);
If you want a uniform image, you can use
uniformImage = uint8(128*ones(rows, columns)); % Can use whatever numbers you want.

태그

아직 태그를 입력하지 않았습니다.

Community Treasure Hunt

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

Start Hunting!

Translated by