检查色阶范围内是否包含像素(RGB或HSV),如何
我需要检查一个像素(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中使用像素。
谢谢!
没有找到相关结果
已邀请:
3 个回复
妊辽剁茧
将为您完成。
刷遍派戳
寒健
然后简单地做
如果以复杂的方式定义“颜色范围”,则定义一组具体的颜色可能是唯一的方法。