masking with a gif image with 8 bit depth
조회 수: 1 (최근 30일)
이전 댓글 표시
Is it possible to use a gif image with 8 bit depth(0-255) as a mask image? again, is it possible to separate red ,green and blue channel of a 8 bit depth gif image?
댓글 수: 0
채택된 답변
Image Analyst
2012년 3월 11일
It's possible. How do you want to mask it? You can either have some value that splits the mask into foreground and background (that's most common) or you can multiply the mask image by the gray image (this is less common). What, exactly, do you want to do?
Case 1, 255 stays the same and less than 255 in the mask image causes other image to become 0, or something like that.
Case 2. 255 stays the same, 0 becomes 0, and in between is proportional, like 128 in the mask image causes the other image to be less by a factor of 128/255, and so on.
추가 답변 (0개)
참고 항목
카테고리
Help Center 및 File Exchange에서 Image Processing Toolbox에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!