LogicalNot
Computes the bitwise logical negation of an image.
Access to parameter description
LogicalNot replaces each bit of each image point by its complement as described by the truth table and the following figure. IIc=ˉI1001

Figure 1. The logical NOT operation
See also
Access to parameter description
LogicalNot replaces each bit of each image point by its complement as described by the truth table and the following figure. IIc=ˉI1001

Figure 1. The logical NOT operation
Function Syntax
This function returns outputImage.
// Function prototype
std::shared_ptr< iolink::ImageView > logicalNot( std::shared_ptr< iolink::ImageView > inputImage, std::shared_ptr< iolink::ImageView > outputImage = NULL );
Class Syntax
Parameters
Parameter Name | Description | Type | Supported Values | Default Value | |
---|---|---|---|---|---|
![]() |
inputImage |
The input image. | Image | Binary, Label, Grayscale or Multispectral | nullptr |
![]() |
outputImage |
The output image, size and type are forced to the same values as the input. | Image | nullptr |
Object Examples
auto foam = readVipImage( std::string( IMAGEDEVDATA_IMAGES_FOLDER ) + "foam.vip" ); LogicalNot logicalNotAlgo; logicalNotAlgo.setInputImage( foam ); logicalNotAlgo.execute(); std::cout << "outputImage:" << logicalNotAlgo.outputImage()->toString();
Function Examples
auto foam = readVipImage( std::string( IMAGEDEVDATA_IMAGES_FOLDER ) + "foam.vip" ); auto result = logicalNot( foam ); std::cout << "outputImage:" << result->toString();