LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

BCG for 16 bit image

I need to increase the brightness on a .TIFF image which is in 16bit unsigned. I only have available a BCG for 8bit, and we don't want to use the operators since we want to control the amount of brightness added to the image.

 

Has anyone got a solution? I saw a post from 2009 with a custom made 16 bit version of the BCG but it didnt work for me.

 

All suggestions are appreciated.

 

Thank you.

 

0 Kudos
Message 1 of 4
(2,650 Views)

I would also like to add that:

-We don't want to lose any data, so we don't want to convert to 8bits.

-We're capturing the images in real time through a CCD camera, so it's actually a stream of images (or camera feed) displayed in the UI that we want to increase/decrease the brightness of.

0 Kudos
Message 2 of 4
(2,607 Views)

Hi Gael,

 

can you explain the term "BCG"?

When I ask Google it only gives me links to a company (Boston Consulting Group) with just one link in between to Wikipedia explaining "Bacillus Calmette-Guérin"…

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 3 of 4
(2,601 Views)

BCG = Brightness Contrast Gamma correction

 

To change the brightness you are simply multiplying a numerical constant to the image data. Therefore, take your image data as an array of 2D values, use the Multiply primitive to scale by a constant value (try 1.1 for starters), and take this array as your brightened image.

Thoric (CLA, CLED, CTD and LabVIEW Champion)


0 Kudos
Message 4 of 4
(2,595 Views)