make gray to color
조회 수: 2 (최근 30일)
이전 댓글 표시
HELLO, How can i make gray pixels to color pixels among gray scale's pixels? you can see my goal in: http://i39.tinypic.com/20rwlr7.png
I have two image(both gray) and i want to see one(color) in other(gray).
Thanks in advance
댓글 수: 0
답변 (2개)
Image Analyst
2012년 2월 27일
Have you tried just assigning non-zero pixels to the other image
nonZeroPixels = image1 > 0;
image2(nonZeroPixels) = image1(nonZeroPixels);
If that's not what you want, then explain better.
댓글 수: 0
Walter Roberson
2012년 2월 27일
Put the two images in the same position, with the color image on top, and in the color image set the AlphaData to 1 where the color should be used and set it to 0 where the image underneath should be used.
Note: this will require using the OpenGL renderer.
댓글 수: 0
참고 항목
제품
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!