AbsoluteValue
Computes the absolute value of an image.
Access to parameter description
The AbsoluteValue algorithm computes the absolute value of the grayscale values within an image I.
The formula is: O(n,m)=|I(n,m)| See also
Access to parameter description
The AbsoluteValue algorithm computes the absolute value of the grayscale values within an image I.
The formula is: O(n,m)=|I(n,m)| See also
Function Syntax
This function returns outputImage.
// Function prototype
std::shared_ptr< iolink::ImageView > absoluteValue( 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 is the same values as the input. | Image | nullptr |
Object Examples
auto foam = readVipImage( std::string( IMAGEDEVDATA_IMAGES_FOLDER ) + "foam.vip" ); AbsoluteValue absoluteValueAlgo; absoluteValueAlgo.setInputImage( foam ); absoluteValueAlgo.execute(); std::cout << "outputImage:" << absoluteValueAlgo.outputImage()->toString();
Function Examples
auto foam = readVipImage( std::string( IMAGEDEVDATA_IMAGES_FOLDER ) + "foam.vip" ); auto result = absoluteValue( foam ); std::cout << "outputImage:" << result->toString();