답변 (1개)

Image Analyst
Image Analyst 2015년 11월 4일

0 개 추천

First segment your image into foreground and background, perhaps using some techniques from my File Exchange: http://www.mathworks.com/matlabcentral/fileexchange/?term=authorid%3A31862
So now you have a background mask binary image that defines the background. To set those pixels equal to the bright value allowed for that class of image use:
maxGrayLevel = intmax(class(grayImage))
grayImage(mask) = maxGrayLevel;
where grayImage is your gray scale image and mask is your logical binary background mask.

카테고리

도움말 센터File Exchange에서 Modify Image Colors에 대해 자세히 알아보기

질문:

2015년 11월 4일

답변:

2015년 11월 4일

Community Treasure Hunt

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

Start Hunting!

Translated by