From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.

We appreciate your patience as we improve our online experience.

LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Change brightness/contrast/saturation of picture on front panel WITHOUT IMAQ

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

0 Kudos
Message 1 of 5
(3,257 Views)

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

Norbert
----------------------------------------------------------------------------------------------------
CEO: What exactly is stopping us from doing this?
Expert: Geometry
Marketing Manager: Just ignore it.
0 Kudos
Message 2 of 5
(3,248 Views)

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.?

0 Kudos
Message 3 of 5
(3,236 Views)

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

Norbert
----------------------------------------------------------------------------------------------------
CEO: What exactly is stopping us from doing this?
Expert: Geometry
Marketing Manager: Just ignore it.
0 Kudos
Message 4 of 5
(3,230 Views)

Well so i have to find another way Smiley Wink

 

Thanks for your help!

0 Kudos
Message 5 of 5
(3,221 Views)