【发布时间】:2011-03-01 19:24:39
【问题描述】:
我需要检查一个像素 (RGB) 是否包含在从非常浅的粉红色到深紫色的色阶中。 使用 RGB 方案我可以做这样的检查:
IF image [x, y] [R]> threshold and image [x, y] [G]> threshold image [x, y] [B]> threshold and \
image [x, y] [R] <threshold and image [x, y] [G] < threshold image [x, y] [B] <threshold THAN ...
?
如果没有,我还可以选择将像素放入 HSV。
谢谢!
【问题讨论】:
标签: python image-processing rgb hsv