 tottorico
		
			tottorico
		
		
		
		
		
		
		
		
	
			04-02-2021 04:13 AM
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?
 Deus_ex_Machina
		
			Deus_ex_Machina
		
		
		
		
		
		
		
		
	
			05-05-2021 07:44 AM
How did you come up with this formula?
Did you see it somewhere? I could not find it.
 Andrey_Dmitriev
		
			Andrey_Dmitriev
		
		
		
		
		
		
		
		
	
			05-05-2021 09:47 AM
@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: