ni.com is currently undergoing scheduled maintenance.

Some services may be unavailable at this time. Please contact us for help or try again later.

Machine Vision

cancel
Showing results for 
Search instead for 
Did you mean: 

imaqBCGLookup

Hi,

 

What kind of formula does imaqBCGLookup perform brightness conversion?

I assume it's y = 255*((tan(contrast)(x-128) + brightness)/255)^gamma.

Is it right?

 

 

0 Kudos
Message 1 of 3
(1,554 Views)

How did you come up with this formula?

Did you see it somewhere? I could not find it.

0 Kudos
Message 2 of 3
(1,429 Views)

@tottorico wrote:

Hi,

 

What kind of formula does imaqBCGLookup perform brightness conversion?

I assume it's y = 255*((tan(contrast)(x-128) + brightness)/255)^gamma.

Is it right?

 

 


Almost right.

 

Quick and dirty test:

 

Screenshot 2021-05-05 16.43.53.png

0 Kudos
Message 3 of 3
(1,424 Views)