changing the colour gray

조회 수: 1 (최근 30일)
kash
kash 2013년 3월 18일
I have a binary image with black background and a white object in circle ,now i want to change the colour of white to gray plz help
  댓글 수: 4
Jan
Jan 2013년 3월 18일
@kash: Please post the class of the input, because "binary image" is not an exact definition.
kash
kash 2013년 3월 19일
the class is logical

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

채택된 답변

Image Analyst
Image Analyst 2013년 3월 19일
grayValue = uint8(128); % or whatever you want in the range of 1-255
grayScaleImage = grayValue * uint8(binaryImage);

추가 답변 (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