WhiteBalance functions inside the Image Manager.
More...
WhiteBalance functions inside the Image Manager.
◆ ApplyFactors()
Applies the white-balance factors to the given image .
- Parameters
-
| image | Image to apply white-balance factors to. |
| factors | Gain factors to apply. |
- Exceptions
-
| ArgumentNullException | If image is null. |
| ObjectDisposedException | If image has been disposed. |
◆ CalculateFactors()
Calculate the red, green and blue gain factor for white balancing.
Floating-point valued images must not have negative pixel values for this operation to yield useful output.
- Parameters
-
| image | Image on which the gain factors are to be calculated. |
| aoi | Area of interest that is assumed to be the neutral color. |
- Returns
- Calculated white balance factors.
- Exceptions
-
| ArgumentNullException | If image is null. |
| ObjectDisposedException | If image has been disposed. |