How to map the lowest 15 grayscale levels to 15 and highest 15 grayscale values to 240 in a 256*256 image?
1 次查看(过去 30 天)
显示 更早的评论
i am working on IWT and i am losing the extremes of data when i apply transforms. i went through some documentation and found a histogram mod is needed. can someone please help me with the code and documention? thanks in advance
0 个评论
采纳的回答
Image Analyst
2016-3-30
Try this:
grayImage(grayImage < 15) = 15; % Everything 14 and less becomes 15.
grayImage(grayImage > 240) = 240; % Everything 241 and higher becomes 240.
0 个评论
更多回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Histograms 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!