![]() |
IPSDK
4_1_0_2
IPSDK : Image Processing Software Development Kit
|
function for add images with different dimensions More...
| IPSDKIPLARITHMETIC_API void | ipsdk::imaproc::arithm::genericAddImgImg (const image::ImageConstPtr &pInImg1, const image::ImageConstPtr &pInImg2, const image::ImagePtr &pOutImg) |
| wrapper function for functions for add images with different dimensions More... | |
| IPSDKIPLARITHMETIC_API image::ImagePtr | ipsdk::imaproc::arithm::genericAddImgImg (const image::ImageConstPtr &pInImg1, const image::ImageConstPtr &pInImg2) |
| wrapper function for functions for add images with different dimensions More... | |
function for add images with different dimensions
Addition of 2 images with different dimensions (volume with plan, volume color with volume...). The image with the highest dimensions always have to be the first one.
The output image values are given by:
Here is an example of a generic addition operation, applied to two 8-bits grey level images, the first one is a 3D image (z=3) and the second one is a 2D image :
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::OutImg | [Output] image for processing operation | promoteBinary (_pOutImg, _pInImg1, _pInImg2, ipsdk::imaproc::ePromoteBinaryType::ePBT_Upper, true) |
Global rule description for algorithm :
(ipsdk::processor::If (
ipsdk::imaproc::is2d (_pInImg2),
ipsdk::processor::If (
ipsdk::imaproc::isSequence (_pInImg2),
ipsdk::processor::If (
ipsdk::imaproc::isGrey (_pInImg2),
(ipsdk::imaproc::matchSize (eMatchImageSizeType::eMIST_2d,_pInImg1,_pInImg2) &&
ipsdk::imaproc::matchSize (eMatchImageSizeType::eMIST_T,_pInImg1,_pInImg2)),
ipsdk::processor::Not (
ipsdk::processor::none ())),
ipsdk::processor::If (
ipsdk::imaproc::isGrey (_pInImg2),
ipsdk::imaproc::matchSize (eMatchImageSizeType::eMIST_2d,_pInImg1,_pInImg2),
(ipsdk::imaproc::matchSize (eMatchImageSizeType::eMIST_2d,_pInImg1,_pInImg2) &&
ipsdk::imaproc::matchSize (eMatchImageSizeType::eMIST_C,_pInImg1,_pInImg2)))),
ipsdk::processor::If (
ipsdk::imaproc::isSingle (_pInImg2),
ipsdk::processor::If (
ipsdk::imaproc::isGrey (_pInImg2),
ipsdk::imaproc::matchSize (eMatchImageSizeType::eMIST_3d,_pInImg1,_pInImg2),
ipsdk::imaproc::matchSize (eMatchImageSizeType::eMIST_XYZC,_pInImg1,_pInImg2)),
ipsdk::processor::Not (
ipsdk::processor::none ()))) &&
ipsdk::imaproc::matchSize (_pInImg1,_pOutImg))
| IPSDKIPLARITHMETIC_API void ipsdk::imaproc::arithm::genericAddImgImg | ( | const image::ImageConstPtr & | pInImg1, |
| const image::ImageConstPtr & | pInImg2, | ||
| const image::ImagePtr & | pOutImg | ||
| ) |
wrapper function for functions for add images with different dimensions
| ipsdk::processor::IPSDKBaseProcessingException | on failure |
| IPSDKIPLARITHMETIC_API image::ImagePtr ipsdk::imaproc::arithm::genericAddImgImg | ( | const image::ImageConstPtr & | pInImg1, |
| const image::ImageConstPtr & | pInImg2 | ||
| ) |
wrapper function for functions for add images with different dimensions
| ipsdk::processor::IPSDKBaseProcessingException | on failure |
1.8.14