Supported by ...


COLOR cameras only.  


Description


The White Shading feature provides control over the individual red, green and blue channel gains so that non-standard color balance can be achieved.  One-push Auto will attempt to white balance the gains (match the histogram peaks of the brightest area in each color channel) based on the image data in the current ROI.


Note: The auto white shading algorithm is based on a brightfield microscopy where the background is bright and white.  The algorithm balances the brightest areas of the image to white. When used in reflected light microscopy or in colored environments, the brightest areas in the image must be neutral in color.  If not, it is best to perform the auto white shading using a grey card.


Note: White Shading is sometimes referred to as White Balance. In Pixelink Capture for instance, the controls for this feature can be found under White Balance Settings.



White shading is performed prior to other image processing steps and is independent of the white balance (color correction) settings.


Setting a gain parameter to zero will effectively turn off that color channel – it will output a zero value.


Note: Setting a color channel gain to zero and also setting the saturation feature to zero will still result in values on that color channel. This is due to the fact that grey tones (from zero saturation) require equal output from all 3 color channels. The color channel gains affect the raw sensor data and any image processing performed on-board the camera, like the saturation adjustment, may modify the values on the color channels.


Note: If the FEAURE_AUTO_ROI has been set prior to performing an auto white shading, the white shading algorithm will be restricted to only using the portion of the image defined by the AUTO_ROI (which the user had previously defined on a ‘white’ area of the image).  


API Control


PxLGetFeature, PxLSetFeature



FeatureNumber of ParamsParameters UnitsRestrictions

FEATURE_WHITE_SHADING

Camera color channel gains

3fRedGain


Decibels

(dB)

N/A
fGreenGain


Decibels

(dB)

N/A
fBlueGain


Decibels

(dB)

N/A


Feature Flags


CameraPresenceRead OnlyAutoManualOne-time AutoOffCiD
All CamerasYesNoNoYesYesNoYes


Parameters


CameraParameterUnitTypeMinMaxDefaultStep Size

PL-D721Cpy

Gain Red

None

Absolute

0

4

1.5

0.00001

Gain Green

None

Absolute

0

4

1.0

0.00001

Gain Blue

None

Absolute

0

4

1.6

0.00001

PL-D721C,

PL-D722C,

PL-D725C,

M1C, M5C

Gain Red

None

Absolute

0

8

1.5

0.00001

Gain Green

None

Absolute

0

8

1.0

0.00001

Gain Blue

None

Absolute

0

8

1.6

0.00001

PL-D732C,

PL-D734C,

M2C, M4C

Gain Red

None

Absolute

0

8

1.0

0.00001

Gain Green

None

Absolute

0

8

1.0

0.00001

Gain Blue

None

Absolute

0

8

1.0

0.00001

PL-D752C,

M2BC

Gain Red

None

Absolute

0

8

2.2

0.00001

Gain Green

None

Absolute

0

8

1.0

0.00001

Gain Blue

None

Absolute

0

8

2.0

0.00001

PL-D753C,

PL-D757C,

PL-D797C,

M3C, M7C, M7BC

Gain Red

None

Absolute

0

8

1.3

0.00001

Gain Green

None

Absolute

0

8

1.0

0.00001

Gain Blue

None

Absolute

0

8

3.6

0.00001

PL-D755C,

PL-D795C,

M5DC

Gain Red

None

Absolute

0

8

1.6

0.00001

Gain Green

None

Absolute

0

8

1.0

0.00001

Gain Blue

None

Absolute

0

8

2.7

0.00001

PL-D759C,

PL-D7512C,

PL-D799C,

PL-D7912C,

M9C, M12C, M12BC 

Gain Red

None

Absolute

0

8

1.35

0.00001

Gain Green

None

Absolute

0

8

1.0

0.00001

Gain Blue

None

Absolute

0

8

3.25

0.00001

PL-D7920,
PL-D7924
Gain RedNoneAbsolute
082.250.00001
Gain GreenNoneAbsolute
081.0
0.00001
Gain BlueNoneAbsolute
082.30.00001

PL-D7620C,

M20C


Gain Red

None

Absolute

0

8

1.8

0.00001

Gain Green

None

Absolute

0

8

1.0

0.00001

Gain Blue

None

Absolute

0

8

2.4

0.00001

PL-D775C

Gain Red

None

Absolute

0

8

1.0

0.00001

Gain Green

None

Absolute

0

8

1.0

0.00001

Gain Blue

None

Absolute

0

8

2.0

0.00001

PL-D7715C,

M15C

Gain Red

None

Absolute

0

8

1.3

0.00001

Gain Green

None

Absolute

0

8

1.0

0.00001

Gain Blue

None

Absolute

0

8

1.5

0.00001

PL-D7718C,

M18C

Gain Red

None

Absolute

0

8

1.4

0.00001

Gain Green

None

Absolute

0

8

1.0

0.00001

Gain Blue

None

Absolute

0

8

2.35

0.00001

PL-B742, 

PL-B681C

Gain Red

None

Absolute

0

4

1.06

0.0156

Gain Green

None

Absolute

0

4

1.0

0.0156

Gain Blue

None

Absolute

0

4

1.57

0.0156

PL-B762

Gain Red

None

Absolute

0

4

1.0

0.01

Gain Green

None

Absolute

0

4

1.0

0.01

Gain Blue

None

Absolute

0

4

2.0

0.01

PL-B774, 

PL-B776, PL-B778,

PL-B622C, 

PL-B623C, 

PL-B625C 

Gain Red

None

Absolute

0

4

1.0

0.0156

Gain Green

None

Absolute

0

4

1.0

0.0156

Gain Blue

None

Absolute

0

4

1.73

0.0156

PL-B782, 

PL-B686C

Gain Red

None

Absolute

0

4

1.42

0.0156

Gain Green

None

Absolute

0

4

1.0

0.0156

Gain Blue

None

Absolute

0

4

1.08

0.0156

PL-B870C, 

PL-B950

Gain Red

None

Absolute

0

8

1.0

0.0312

Gain Green

None

Absolute

0

8

1.0

0.0312

Gain Blue

None

Absolute

0

8

2.0

0.0312