Bitmap image wrongly inverted
이전 댓글 표시
Hi all,
I am reading a black and white bitmap (.bmp) image using
imread('filepath');
However, for this certain image the picture comes through as the complement of itself. i.e. the colours/intensities are inverted. I have tried using
imread('filepath', 'bmp');
as well.
Any ideas? I have attached the image in question, along with the output that is given.
Thanks
채택된 답변
추가 답변 (1개)
Image Analyst
2017년 3월 17일
Subtract it from 255:
grayImage = uint8(255) - invertedGrayImage;
카테고리
도움말 센터 및 File Exchange에서 Convert Image Type에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!