![]() |
IPSDK
4_1_0_2
IPSDK : Image Processing Software Development Kit
|
Mask filter, computing an output image for which each pixel equals to corresponding pixel in either first or second input image, depending on whether corresponding input mask image pixel equals 1 or 0 algorithm. More...
| IPSDKIPLLOGICAL_API void | ipsdk::imaproc::logic::maskImgImg (const image::ImageConstPtr &pInImg1, const image::ImageConstPtr &pInImg2, const image::ImageConstPtr &pInMaskImg, const image::ImagePtr &pOutImg) |
| wrapper function for Mask filter, computing an output image for which each pixel equals to corresponding pixel in either first or second input image, depending on whether corresponding input mask image pixel equals 1 or 0 More... | |
| IPSDKIPLLOGICAL_API image::ImagePtr | ipsdk::imaproc::logic::maskImgImg (const image::ImageConstPtr &pInImg1, const image::ImageConstPtr &pInImg2, const image::ImageConstPtr &pInMaskImg) |
| wrapper function for Mask filter, computing an output image for which each pixel equals to corresponding pixel in either first or second input image, depending on whether corresponding input mask image pixel equals 1 or 0 More... | |
Mask filter, computing an output image for which each pixel equals to corresponding pixel in either first or second input image, depending on whether corresponding input mask image pixel equals 1 or 0 algorithm.
compute an output image for which each pixel equals to corresponding pixel in either first or second input image, depending on whether corresponding input mask image pixel equals 1 or 0 algorithm
On output image values are given by:
Input, mask and output images must have same size. Input and output image buffers must have same type
Here is an example of this mask filter applied to two 8-bits grey level images:
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::InMaskImg | [Input] Binary image for masking operation | X |
| ipsdk::imaproc::attr::OutImg | [Output] image for processing operation | ipsdk::imaproc::duplicateInOut (_pOutImg, _pInImg1) |
Global rule description for algorithm :
(ipsdk::processor::If (
ipsdk::imaproc::is2d (_pInMaskImg),
ipsdk::imaproc::matchSize (eMatchImageSizeType::eMIST_2d,_pInImg1,_pInMaskImg),
ipsdk::imaproc::matchSize (eMatchImageSizeType::eMIST_3d,_pInImg1,_pInMaskImg))) &&
ipsdk::imaproc::matchSize (_pInImg1,_pInImg2,_pOutImg) &&
ipsdk::imaproc::matchBufferType (_pInImg1,_pInImg2,_pOutImg)
| IPSDKIPLLOGICAL_API void ipsdk::imaproc::logic::maskImgImg | ( | const image::ImageConstPtr & | pInImg1, |
| const image::ImageConstPtr & | pInImg2, | ||
| const image::ImageConstPtr & | pInMaskImg, | ||
| const image::ImagePtr & | pOutImg | ||
| ) |
wrapper function for Mask filter, computing an output image for which each pixel equals to corresponding pixel in either first or second input image, depending on whether corresponding input mask image pixel equals 1 or 0
| ipsdk::processor::IPSDKBaseProcessingException | on failure |
| IPSDKIPLLOGICAL_API image::ImagePtr ipsdk::imaproc::logic::maskImgImg | ( | const image::ImageConstPtr & | pInImg1, |
| const image::ImageConstPtr & | pInImg2, | ||
| const image::ImageConstPtr & | pInMaskImg | ||
| ) |
wrapper function for Mask filter, computing an output image for which each pixel equals to corresponding pixel in either first or second input image, depending on whether corresponding input mask image pixel equals 1 or 0
| ipsdk::processor::IPSDKBaseProcessingException | on failure |
1.8.14