What is an image with values one and 255 only called?
1 次查看(过去 30 天)
显示 更早的评论
What is an image with values one and 255 only called?
0 个评论
回答(2 个)
John D'Errico
2015-8-20
编辑:John D'Errico
2015-8-20
I'm not at all sure why you would have stopped at 1 for the low level pixel, since it s 0 that would represent black.
ASSUMING that your image is a one channel image, this is a binary (two-level or bilevel) image, thus composed of only (almost) black and white pixels. If the image has three channels, and you can have any combination of the colors:
[ 0 0 0;
0 0 255;
0 255 0;
0 255 255;
255 0 0;
255 0 255;
255 255 0;
255 255 255]
for any given pixel, then this would be an image composed of the primary and secondary colors, at their maximum values.
2 个评论
Walter Roberson
2015-8-21
When you have an image with two colors, the colors are not necessarily black and white. For example you can have an image created from pink and green.
The "primary" color in that case would be the color that occurs more often than the other color, and the "secondary" color would be the one that occurs less.
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Modify Image Colors 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!