Having to print an acquired image with a dark red background which color is not absolutely constant, and, aiming ink cartridge economy, I used, in Visual Basic, this code, assuming that 3 viewers are installed:
CWIMAQVision1.ColorThreshold CWIMAQViewer1.Image, CWIMAQViewer2.Image, CWIMAQColorFormatHSL,255,,,,,0,16
-
CWIMAQVision1.Add CWIMAQViewer2.Image, CWIMAQViewer1.Image, CWIMAQViewer3.Image
This code works well but is black level dependent.
Is there some more elegant solution to obtain the same result ?