changing the colour gray
이전 댓글 표시
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
Alessandro
2013년 3월 18일
use class(image) to determinate what kind of data you have. If it is int8 than you can just image2 = image./2 If it is logical than you can write image2 = int8(image).*127
kash
2013년 3월 18일
Jan
2013년 3월 18일
@kash: Please post the class of the input, because "binary image" is not an exact definition.
kash
2013년 3월 19일
채택된 답변
추가 답변 (0개)
카테고리
도움말 센터 및 File Exchange에서 Images에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!