| image = | smartShadingCorrection2dImg (inImg,whiteImg,outputRange) |
| image = | smartShadingCorrection2dImg (inImg,blackImg,whiteImg,outputRange) |
applies a shading correction to a 2D image, so that output image intensity fits an expected range
The Smart shading correction algorithm computes the factor and offset parameters for the whole image. However, shading variation may differ between frames or the intensity range for each channel must be the same.
In such cases, the Smart shading correction is not adapted and must be applied explicitly slice by slice.
This Smart Shading Correction 2d algorithm computes the factor and offset parameters indendantly on each slice in order to apply the Smart shading correction in a single call.