![]() |
IPSDK
4_1_0_2
IPSDK : Image Processing Software Development Kit
|
linear combination of 2 images, pixel by pixel More...
| IPSDKIPLARITHMETIC_API image::ImagePtr | ipsdk::imaproc::arithm::linearCombineImgImg (const image::ImageConstPtr &pInImg1, const image::ImageConstPtr &pInImg2, const ipReal32 inFactor1, const ipReal32 inFactor2) |
| wrapper function for linear combination of 2 images, pixel by pixel More... | |
| IPSDKIPLARITHMETIC_API void | ipsdk::imaproc::arithm::linearCombineImgImg (const image::ImageConstPtr &pInImg1, const image::ImageConstPtr &pInImg2, const ipReal32 inFactor1, const ipReal32 inFactor2, const image::ImagePtr &pOutImg) |
| wrapper function for linear combination of 2 images, pixel by pixel More... | |
linear combination of 2 images, pixel by pixel
On output image values are given by:
(with
and
the constant scalar parameters of the linear combination;
and
are encoded on ipReal32
means that, if the result of
is out of the range of OutImg buffer data type, then OutImg[i] equals to the limit of this range that is closest to this result.
Input and output images must have same size.
Here is an example of a linear combination applied to two 8-bits grey level images, with inFactor1=1.0f and inFactor2=-0.5f:
Attribute description for algorithm :
| Name | ToolTip | Default Initializer |
|---|---|---|
| ipsdk::imaproc::attr::InImg1 | [Input] First image for processing operation | X |
| ipsdk::imaproc::attr::InImg2 | [Input] Second image for processing operation | X |
| ipsdk::imaproc::attr::InFactor1 | [Input] first factor, used in particular by linear combination algorithm | X |
| ipsdk::imaproc::attr::InFactor2 | [Input] second factor, used in particular by linear combination algorithm | X |
| ipsdk::imaproc::attr::OutImg | [Output] image for processing operation | promoteBinary (_pOutImg, _pInImg1, _pInImg2, ipsdk::imaproc::ePromoteBinaryType::ePBT_UpperSigned) |
Global rule description for algorithm :
ipsdk::imaproc::matchSize (_pInImg1,_pInImg2,_pOutImg)
| IPSDKIPLARITHMETIC_API image::ImagePtr ipsdk::imaproc::arithm::linearCombineImgImg | ( | const image::ImageConstPtr & | pInImg1, |
| const image::ImageConstPtr & | pInImg2, | ||
| const ipReal32 | inFactor1, | ||
| const ipReal32 | inFactor2 | ||
| ) |
wrapper function for linear combination of 2 images, pixel by pixel
| ipsdk::processor::IPSDKBaseProcessingException | on failure |
| IPSDKIPLARITHMETIC_API void ipsdk::imaproc::arithm::linearCombineImgImg | ( | const image::ImageConstPtr & | pInImg1, |
| const image::ImageConstPtr & | pInImg2, | ||
| const ipReal32 | inFactor1, | ||
| const ipReal32 | inFactor2, | ||
| const image::ImagePtr & | pOutImg | ||
| ) |
wrapper function for linear combination of 2 images, pixel by pixel
| ipsdk::processor::IPSDKBaseProcessingException | on failure |
1.8.14