Change Pixel intensity value
2 次查看(过去 30 天)
显示 更早的评论
Hi all,
I have an image(gray scale) whose pixel intensity values ranges from -0.5373 to 0.4744. I would like to change the intensity value which is lesser than 0 to 0. Can any one help me to solve this.
Thanks.
0 个评论
采纳的回答
Honglei Chen
2012-2-21
Say your image is x,
x(x<0) = 0;
5 个评论
Image Analyst
2012-2-22
No, you don't need all that reshaping stuff. "x(x<0)=0" is sufficient to work on the whole 3D matrix (e.g., a color image) - no reshaping is needed.
更多回答(2 个)
vishnu lohith
2018-2-16
use a suitable transformation to change the intensities from ( 0,255) to (65,180).
1 个评论
Image Analyst
2018-2-17
Are you sure you posted to the correct six year old question? Not sure what your answer has to do with the original question about clamping the signal to zero.
另请参阅
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!