![]() |
IPSDK
4_1_0_2
IPSDK : Image Processing Software Development Kit
|
corrects an input image for shading, using an analytic paraboloid model for the white image More...
| IPSDKIPLINTENSITYTRANSFORM_API ipsdk::image::ImagePtr | ipsdk::imaproc::itrans::paraboloidShadingCorrection2dImg (const image::ImageConstPtr &pInImg, const ipsdk::imaproc::attr::ParaboloidParams3dConstPtr &pWhiteImgModel, const ipReal64 factor) |
| wrapper function for Computes a shading-corrected image given in particular an offset and a factor, and a paraboloid model for the white image More... | |
| IPSDKIPLINTENSITYTRANSFORM_API void | ipsdk::imaproc::itrans::paraboloidShadingCorrection2dImg (const image::ImageConstPtr &pInImg, const ipsdk::imaproc::attr::ParaboloidParams3dConstPtr &pWhiteImgModel, const ipReal64 factor, const ipsdk::image::ImagePtr &pOutImg) |
| wrapper function for Computes a shading-corrected image given in particular an offset and a factor, and a paraboloid model for the white image More... | |
| IPSDKIPLINTENSITYTRANSFORM_API ipsdk::image::ImagePtr | ipsdk::imaproc::itrans::paraboloidShadingCorrection2dImg (const image::ImageConstPtr &pInImg, const ipsdk::imaproc::attr::ParaboloidParams3dConstPtr &pWhiteImgModel, const ipReal64 offset, const ipReal64 factor) |
| wrapper function for Computes a shading-corrected image given in particular an offset and a factor, and a paraboloid model for the white image More... | |
| IPSDKIPLINTENSITYTRANSFORM_API void | ipsdk::imaproc::itrans::paraboloidShadingCorrection2dImg (const image::ImageConstPtr &pInImg, const ipsdk::imaproc::attr::ParaboloidParams3dConstPtr &pWhiteImgModel, const ipReal64 offset, const ipReal64 factor, const ipsdk::image::ImagePtr &pOutImg) |
| wrapper function for Computes a shading-corrected image given in particular an offset and a factor, and a paraboloid model for the white image More... | |
| IPSDKIPLINTENSITYTRANSFORM_API ipsdk::image::ImagePtr | ipsdk::imaproc::itrans::paraboloidShadingCorrection2dImg (const image::ImageConstPtr &pInImg, const image::ImageConstPtr &pBlackImg, const ipsdk::imaproc::attr::ParaboloidParams3dConstPtr &pWhiteImgModel, const ipReal64 offset, const ipReal64 factor) |
| wrapper function for Computes a shading-corrected image given in particular an offset and a factor, and a paraboloid model for the white image More... | |
| IPSDKIPLINTENSITYTRANSFORM_API void | ipsdk::imaproc::itrans::paraboloidShadingCorrection2dImg (const image::ImageConstPtr &pInImg, const image::ImageConstPtr &pBlackImg, const ipsdk::imaproc::attr::ParaboloidParams3dConstPtr &pWhiteImgModel, const ipReal64 offset, const ipReal64 factor, const ipsdk::image::ImagePtr &pOutImg) |
| wrapper function for Computes a shading-corrected image given in particular an offset and a factor, and a paraboloid model for the white image More... | |
corrects an input image for shading, using an analytic paraboloid model for the white image
Corrects an input image for shading that may be introduced during its acquisition, using an analytic paraboloid model for the white image.
Given:

, whose dimensions and data types are identical to input image dimensions and data typesValues of output image resulting from shading correction are computed as follows:
with:
![$ WhiteImg[x, y, ...] = X2Coef*x^2 + Y2Coef*y^2 + XYCoef*x*y + XCoef*x + YCoef*y + Constant $](form_894.png)
parameters are specified by the user through the ParaboloidParams3d data item; these parameters can be computed through the use of Paraboloid Image Fitting 2d algorithmHere is an example of shading correction applied to a 8-bits grey level image on which an artificial vignetting has been applied:
Attribute description for algorithm :
| Name | ToolTip | Default Initializer |
|---|---|---|
| ipsdk::imaproc::attr::InImg | [Input] image for processing operation | X |
| ipsdk::imaproc::attr::InOptBlackImg | [Input Optional] Black image, usually obtained by closing all optical ports of the camera, or by turning off all the light sources. Used by shading correction algorithm | X |
| ipsdk::imaproc::attr::InPIParaboloidParams3d | [Input] Plan indexed collection of 3d parameters of paraboloids | X |
| ipsdk::imaproc::attr::InOptOffset | [Input Optional] Offset. Used for instance by shading correction algorithm | X |
| ipsdk::imaproc::attr::InFactor | [Input] Multiplying factor. Used for instance by shading correction algorithm | X |
| ipsdk::imaproc::attr::OutImg | [Output] image for processing operation | ipsdk::imaproc::duplicateInOut (_pOutImg, _pInImg) |
Global rule description for algorithm :
ipsdk::imaproc::matchSize (_pInImg,_pOutImg) &&
ipsdk::imaproc::matchImagePlans (_pInPIParaboloidParams3d,_pInImg,eImagePlansMatchPolicy::eIPMP_ZCT) &&
ipsdk::processor::ifIsSet (_pInOptBlackImg,
ipsdk::imaproc::matchSizeAndType (_pInImg,_pInOptBlackImg))
| IPSDKIPLINTENSITYTRANSFORM_API ipsdk::image::ImagePtr ipsdk::imaproc::itrans::paraboloidShadingCorrection2dImg | ( | const image::ImageConstPtr & | pInImg, |
| const ipsdk::imaproc::attr::ParaboloidParams3dConstPtr & | pWhiteImgModel, | ||
| const ipReal64 | factor | ||
| ) |
wrapper function for Computes a shading-corrected image given in particular an offset and a factor, and a paraboloid model for the white image
| ipsdk::imaproc::util::IPSDKIPLUtilityException | on failure |
| IPSDKIPLINTENSITYTRANSFORM_API void ipsdk::imaproc::itrans::paraboloidShadingCorrection2dImg | ( | const image::ImageConstPtr & | pInImg, |
| const ipsdk::imaproc::attr::ParaboloidParams3dConstPtr & | pWhiteImgModel, | ||
| const ipReal64 | factor, | ||
| const ipsdk::image::ImagePtr & | pOutImg | ||
| ) |
wrapper function for Computes a shading-corrected image given in particular an offset and a factor, and a paraboloid model for the white image
| ipsdk::imaproc::util::IPSDKIPLUtilityException | on failure |
| IPSDKIPLINTENSITYTRANSFORM_API ipsdk::image::ImagePtr ipsdk::imaproc::itrans::paraboloidShadingCorrection2dImg | ( | const image::ImageConstPtr & | pInImg, |
| const ipsdk::imaproc::attr::ParaboloidParams3dConstPtr & | pWhiteImgModel, | ||
| const ipReal64 | offset, | ||
| const ipReal64 | factor | ||
| ) |
wrapper function for Computes a shading-corrected image given in particular an offset and a factor, and a paraboloid model for the white image
| ipsdk::imaproc::util::IPSDKIPLUtilityException | on failure |
| IPSDKIPLINTENSITYTRANSFORM_API void ipsdk::imaproc::itrans::paraboloidShadingCorrection2dImg | ( | const image::ImageConstPtr & | pInImg, |
| const ipsdk::imaproc::attr::ParaboloidParams3dConstPtr & | pWhiteImgModel, | ||
| const ipReal64 | offset, | ||
| const ipReal64 | factor, | ||
| const ipsdk::image::ImagePtr & | pOutImg | ||
| ) |
wrapper function for Computes a shading-corrected image given in particular an offset and a factor, and a paraboloid model for the white image
| ipsdk::imaproc::util::IPSDKIPLUtilityException | on failure |
| IPSDKIPLINTENSITYTRANSFORM_API ipsdk::image::ImagePtr ipsdk::imaproc::itrans::paraboloidShadingCorrection2dImg | ( | const image::ImageConstPtr & | pInImg, |
| const image::ImageConstPtr & | pBlackImg, | ||
| const ipsdk::imaproc::attr::ParaboloidParams3dConstPtr & | pWhiteImgModel, | ||
| const ipReal64 | offset, | ||
| const ipReal64 | factor | ||
| ) |
wrapper function for Computes a shading-corrected image given in particular an offset and a factor, and a paraboloid model for the white image
| ipsdk::imaproc::util::IPSDKIPLUtilityException | on failure |
| IPSDKIPLINTENSITYTRANSFORM_API void ipsdk::imaproc::itrans::paraboloidShadingCorrection2dImg | ( | const image::ImageConstPtr & | pInImg, |
| const image::ImageConstPtr & | pBlackImg, | ||
| const ipsdk::imaproc::attr::ParaboloidParams3dConstPtr & | pWhiteImgModel, | ||
| const ipReal64 | offset, | ||
| const ipReal64 | factor, | ||
| const ipsdk::image::ImagePtr & | pOutImg | ||
| ) |
wrapper function for Computes a shading-corrected image given in particular an offset and a factor, and a paraboloid model for the white image
| ipsdk::imaproc::util::IPSDKIPLUtilityException | on failure |
1.8.14