i want to display binary image in blue color...
조회 수: 1 (최근 30일)
이전 댓글 표시
i want to display binary image in blue color...that is i have an image of black lines in white background... i want to display the black lines in blue color in white background.... how can i do it?
댓글 수: 0
채택된 답변
Teja Muppirala
2012년 10월 17일
You can change the colormap to contain blue and white. Like this:
I = im2bw(imread('cameraman.tif'));
imshow(I)
colormap([0 0 1; 1 1 1]) % Blue = [0 0 1], White = [1 1 1]
추가 답변 (0개)
참고 항목
카테고리
Help Center 및 File Exchange에서 Blue에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!