How to convert a grey-scale image into a reverse binary image
조회 수: 1 (최근 30일)
이전 댓글 표시

댓글 수: 0
채택된 답변
Walter Roberson
2019년 12월 13일
Rbin = YourImage <= 42;
댓글 수: 2
Walter Roberson
2019년 12월 15일
I assure you that it does work, with the exception of TIFF images that use IEEE floating point representation (these exist but are rare)
추가 답변 (1개)
Image Analyst
2019년 12월 15일
Try this:
grayImage = 255 - grayImage; % Assuming your image is uint8. Use 65535 if it's uint16.
댓글 수: 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!