08-04-2014 07:49 AM
Hi everybody!
I want to change brightness, contrast, saturation and zoom of a picture on the front panel and i don't have imaq.
Been searching the forum for some time but did not find an answer...
To change the zoom factor in a 2D picture is possible with a property node. But are there property nodes for brightness, contrast,... as well?
Thanks for your help!
jo
08-04-2014 08:01 AM
jo,
problem is that an image is an 2D array of pixel data (in its simplest form at least).
Zooming is quite easy for an image display as it "only" has to reduce/interpolate pixels for zoom out/in. But already here starts the question: What is a good pixel reduction? What is good pixel interpolation?
Nevertheless, in both cases, the original values are not changed in values.
When talking about brightness and contrast, you have to change the value of each original pixel. But how do you do this?
These are quite extensive algorithms we are talking about. Because of this fact, the default 2D picture control does not provide methods for this.
Norbert
08-04-2014 08:40 AM
Thanks for you repley Norbert.
Is there any chance to use something else than the default 2D picture control? Or is it the same with picture ring etc.?
08-04-2014 08:49 AM
Afaik it is the same for all.
Point is: Something has to provide you with the correct algorithms.
If you search the IMAQ palette for "brightness" and "contrast", you won't find any prepared functions as well. IMAQ isn't PhotoShop!
Of course, the functions provided with IMAQ grant the option to adjust images (see this KB for instance), but esp. color isn't the most common use case for vision applications. In fact, most industrial vision applications (still) use greyscale images for analysis!
Norbert
08-04-2014 09:07 AM
Well so i have to find another way
Thanks for your help!