how can i preprocess an image to obtain uniform and zero average intensity in matlab
3 ビュー (過去 30 日間)
古いコメントを表示
sir, how can i perform preprocessing of an image to get uniform and zero average intensity in matlab
0 件のコメント
回答 (1 件)
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.
0 件のコメント
参考
カテゴリ
Help Center および File Exchange で Image Processing Toolbox についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!