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 = nullptr );
This function returns outputImage.
// Function prototype. absolute_value(input_image: idt.ImageType, output_image: idt.ImageType = None) -> idt.ImageType
This function returns outputImage.
// Function prototype. public static IOLink.ImageView AbsoluteValue( IOLink.ImageView inputImage, 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 |
Parameter Name | Description | Type | Supported Values | Default Value | |
---|---|---|---|---|---|
input_image |
The input image. | image | Binary, Label, Grayscale or Multispectral | None | |
output_image |
The output image, size is the same values as the input. | image | None |
Parameter Name | Description | Type | Supported Values | Default Value | |
---|---|---|---|---|---|
inputImage |
The input image. | Image | Binary, Label, Grayscale or Multispectral | null | |
outputImage |
The output image, size is the same values as the input. | Image | null |
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() );