![]() |
IPSDK
4_1_0_2
IPSDK : Image Processing Software Development Kit
|
Mask filter algorithm, computing an output image for which each pixel equals to either corresponding pixel in input image or 0, depending on whether corresponding input mask image pixel equals 1 or 0. More...
| IPSDKIPLLOGICAL_API void | ipsdk::imaproc::logic::maskImg (const image::ImageConstPtr &pInImg, const image::ImageConstPtr &pInMaskImg, const image::ImagePtr &pOutImg) |
| wrapper function for Mask filter, computing an output image for which each pixel equals to either corresponding pixel in input image or 0, depending on whether corresponding input mask image pixel equals 1 or 0. These wrappers allow to set an output pixel with the input image value if the mask pixel equals 1 and 0 otherwise. More... | |
| IPSDKIPLLOGICAL_API image::ImagePtr | ipsdk::imaproc::logic::maskImg (const image::ImageConstPtr &pInImg, const image::ImageConstPtr &pInMaskImg) |
| wrapper function for Mask filter, computing an output image for which each pixel equals to either corresponding pixel in input image or 0, depending on whether corresponding input mask image pixel equals 1 or 0. These wrappers allow to set an output pixel with the input image value if the mask pixel equals 1 and 0 otherwise. More... | |
| IPSDKIPLLOGICAL_API void | ipsdk::imaproc::logic::reverseMaskImg (const image::ImageConstPtr &pInImg, const image::ImageConstPtr &pInMaskImg, const image::ImagePtr &pOutImg) |
| wrapper function for Mask filter, computing an output image for which each pixel equals to either corresponding pixel in input image or 0, depending on whether corresponding input mask image pixel equals 1 or 0. Unlike the maskImg wrapper, the reverseMaskImg wrappers allow to set an output pixel to 0 if the mask pixel equals 1 and with the input image value otherwise. More... | |
| IPSDKIPLLOGICAL_API image::ImagePtr | ipsdk::imaproc::logic::reverseMaskImg (const image::ImageConstPtr &pInImg, const image::ImageConstPtr &pInMaskImg) |
| wrapper function for Mask filter, computing an output image for which each pixel equals to either corresponding pixel in input image or 0, depending on whether corresponding input mask image pixel equals 1 or 0. Unlike the maskImg wrapper, the reverseMaskImg wrappers allow to set an output pixel to 0 if the mask pixel equals 1 and with the input image value otherwise. More... | |
Mask filter algorithm, computing an output image for which each pixel equals to either corresponding pixel in input image or 0, depending on whether corresponding input mask image pixel equals 1 or 0.
Compute an output image for which each pixel equals to either corresponding pixel in input image or 0, depending on the corresponding input mask image pixel value.
A call to the maskImg wrappers, the output image values are given by:
On the contrary, a call to the reverseMaskImg wrappers, the 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 one 8-bits grey level image. The upper result is obtained by calling the maskImg wrapper, whereas the lower result corresponds to the reverseMaskImg wrapper :
Attribute description for algorithm :
| Name | ToolTip | Default Initializer |
|---|---|---|
| ipsdk::imaproc::attr::InImg | [Input] image for processing operation | X |
| ipsdk::imaproc::attr::InMaskImg | [Input] Binary image for masking operation | X |
| ipsdk::imaproc::attr::InOptMaskMode | [Input Optional] Inform about the use of a binary mask | X |
| ipsdk::imaproc::attr::OutImg | [Output] image for processing operation | ipsdk::imaproc::duplicateInOut (_pOutImg, _pInImg) |
Global rule description for algorithm :
(ipsdk::processor::If (
ipsdk::imaproc::is2d (_pInMaskImg),
ipsdk::imaproc::matchSize (eMatchImageSizeType::eMIST_2d,_pInImg,_pInMaskImg),
ipsdk::imaproc::matchSize (eMatchImageSizeType::eMIST_3d,_pInImg,_pInMaskImg))) &&
ipsdk::imaproc::matchSize (_pInImg,_pOutImg) &&
ipsdk::imaproc::matchBufferType (_pInImg,_pOutImg)
| IPSDKIPLLOGICAL_API void ipsdk::imaproc::logic::maskImg | ( | const image::ImageConstPtr & | pInImg, |
| const image::ImageConstPtr & | pInMaskImg, | ||
| const image::ImagePtr & | pOutImg | ||
| ) |
wrapper function for Mask filter, computing an output image for which each pixel equals to either corresponding pixel in input image or 0, depending on whether corresponding input mask image pixel equals 1 or 0. These wrappers allow to set an output pixel with the input image value if the mask pixel equals 1 and 0 otherwise.
| ipsdk::processor::IPSDKBaseProcessingException | on failure |
| IPSDKIPLLOGICAL_API void ipsdk::imaproc::logic::reverseMaskImg | ( | const image::ImageConstPtr & | pInImg, |
| const image::ImageConstPtr & | pInMaskImg, | ||
| const image::ImagePtr & | pOutImg | ||
| ) |
wrapper function for Mask filter, computing an output image for which each pixel equals to either corresponding pixel in input image or 0, depending on whether corresponding input mask image pixel equals 1 or 0. Unlike the maskImg wrapper, the reverseMaskImg wrappers allow to set an output pixel to 0 if the mask pixel equals 1 and with the input image value otherwise.
| ipsdk::processor::IPSDKBaseProcessingException | on failure |
| IPSDKIPLLOGICAL_API image::ImagePtr ipsdk::imaproc::logic::maskImg | ( | const image::ImageConstPtr & | pInImg, |
| const image::ImageConstPtr & | pInMaskImg | ||
| ) |
wrapper function for Mask filter, computing an output image for which each pixel equals to either corresponding pixel in input image or 0, depending on whether corresponding input mask image pixel equals 1 or 0. These wrappers allow to set an output pixel with the input image value if the mask pixel equals 1 and 0 otherwise.
| ipsdk::processor::IPSDKBaseProcessingException | on failure |
| IPSDKIPLLOGICAL_API image::ImagePtr ipsdk::imaproc::logic::reverseMaskImg | ( | const image::ImageConstPtr & | pInImg, |
| const image::ImageConstPtr & | pInMaskImg | ||
| ) |
wrapper function for Mask filter, computing an output image for which each pixel equals to either corresponding pixel in input image or 0, depending on whether corresponding input mask image pixel equals 1 or 0. Unlike the maskImg wrapper, the reverseMaskImg wrappers allow to set an output pixel to 0 if the mask pixel equals 1 and with the input image value otherwise.
| ipsdk::processor::IPSDKBaseProcessingException | on failure |
1.8.14