![]() |
IPSDK
4_1_0_2
IPSDK : Image Processing Software Development Kit
|
Bitwise nxor operation on 2 input images More...
| IPSDKIPLLOGICAL_API image::ImagePtr | ipsdk::imaproc::logic::bitwiseNXOrImgImg (const image::ImageConstPtr &pInIntImg1, const image::ImageConstPtr &pInIntImg2) |
| wrapper function for bitwise nxor operation on 2 images More... | |
| IPSDKIPLLOGICAL_API void | ipsdk::imaproc::logic::bitwiseNXOrImgImg (const image::ImageConstPtr &pInIntImg1, const image::ImageConstPtr &pInIntImg2, const image::ImagePtr &pOutImg) |
| wrapper function for bitwise nxor operation on 2 images More... | |
Bitwise nxor operation on 2 input images
On output image values are given by:
(with
corresponding to the Bitwise not operator and
corresponding to the Bitwise xor operator)
Input and output images must have same size and buffer type. Buffers must be of type integer
A Bitwise nxor operator applied to 2 integers performs the logical nand (abbreviation for "not exclusive or") operation on each pair of corresponding bits of the binary representation of these 2 integers. As shown in the truth table below, the result in each position is 1 if the two bits have the same value; otherwise, the result is 1.
| Input bit #1 | Input bit #2 | Output bit : |
|---|---|---|
| 0 | 0 | 1 |
| 0 | 1 | 0 |
| 1 | 0 | 0 |
| 1 | 1 | 1 |
For instance, if we compute the result of a Bitwise nxor on the two integers 5 and 3, we obtain;
0101 (decimal 5) !^ 0011 (decimal 3) = 1001 (decimal 9)
Here is an example of a Bitwise nxor operation applied to two 2D binary images (black pixels have value 0, white pixels have value 1):
Attribute description for algorithm :
| Name | ToolTip | Default Initializer |
|---|---|---|
| ipsdk::imaproc::attr::InIntImg1 | [Input] First image for processing operation (data contained in image buffer are integers) | X |
| ipsdk::imaproc::attr::InIntImg2 | [Input] Second image for processing operation (data contained in image buffer are integers) | X |
| ipsdk::imaproc::attr::OutImg | [Output] image for processing operation | ipsdk::imaproc::duplicateInOut (_pOutImg, _pInIntImg1) |
Global rule description for algorithm :
ipsdk::imaproc::matchSizeAndType (_pInIntImg1,_pInIntImg2,_pOutImg)
| IPSDKIPLLOGICAL_API image::ImagePtr ipsdk::imaproc::logic::bitwiseNXOrImgImg | ( | const image::ImageConstPtr & | pInIntImg1, |
| const image::ImageConstPtr & | pInIntImg2 | ||
| ) |
wrapper function for bitwise nxor operation on 2 images
| ipsdk::processor::IPSDKBaseProcessingException | on failure |
| IPSDKIPLLOGICAL_API void ipsdk::imaproc::logic::bitwiseNXOrImgImg | ( | const image::ImageConstPtr & | pInIntImg1, |
| const image::ImageConstPtr & | pInIntImg2, | ||
| const image::ImagePtr & | pOutImg | ||
| ) |
wrapper function for bitwise nxor operation on 2 images
| ipsdk::processor::IPSDKBaseProcessingException | on failure |
1.8.14