How to change colour (black to white) in binary image?

조회 수: 24 (최근 30일)
Veronika
Veronika 2017년 3월 5일
댓글: eton lin 2017년 4월 27일
Dear all,
I have this binary image:
I would like to convert the colours black into white and white into black. Is it possible? I also attach this binary image. Thank you for your answers.
  댓글 수: 1
eton lin
eton lin 2017년 4월 27일
Veronika, you can use NOT operator: imshow(~BW)

댓글을 달려면 로그인하십시오.

채택된 답변

Guillaume
Guillaume 2017년 3월 5일
편집: Guillaume 2017년 3월 5일
yourbwimage = ~yourbwimage
Simple as that, or
yourbwimage = logical(1 - yourbwimage)

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Convert Image Type에 대해 자세히 알아보기

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by