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 the outputImage output parameter.
// Function prototype. std::shared_ptr< iolink::ImageView > absoluteValue( std::shared_ptr< iolink::ImageView > inputImage, std::shared_ptr< iolink::ImageView > outputImage = NULL );
This function returns the outputImage output parameter.
// Function prototype. absolute_value( input_image, output_image = None )
This function returns the outputImage output parameter.
// Function prototype. public static IOLink.ImageView AbsoluteValue( IOLink.ImageView inputImage, IOLink.ImageView outputImage = null );
Class Syntax
Parameters
Class Name | AbsoluteValue |
---|
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();
foam = imagedev.read_vip_image(imagedev_data.get_image_path("foam.vip")) absolute_value_algo = imagedev.AbsoluteValue() absolute_value_algo.input_image = foam absolute_value_algo.execute() print( "output_image:", str( absolute_value_algo.output_image ) )
ImageView foam = Data.ReadVipImage( @"Data/images/foam.vip" ); AbsoluteValue absoluteValueAlgo = new AbsoluteValue { inputImage = foam }; absoluteValueAlgo.Execute(); Console.WriteLine( "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();
foam = imagedev.read_vip_image(imagedev_data.get_image_path("foam.vip")) result = imagedev.absolute_value( foam ) print( "output_image:", str( result ) )
ImageView foam = Data.ReadVipImage( @"Data/images/foam.vip" ); IOLink.ImageView result = Processing.AbsoluteValue( foam ); Console.WriteLine( "outputImage:" + result.ToString() );