How to map the lowest 15 grayscale levels to 15 and highest 15 grayscale values to 240 in a 256*256 image?
조회 수: 2 (최근 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!