ImageDev

AbsoluteMaximumWithImage

Computes the maximum between the absolute values of two images.

Access to parameter description

The maximum of absolute values $O$ bewteen two images $I_1$ and $I_2$ is given by the formula: $$ O(n,m)=max\{|I_1(n,m)|,|I_2(n,m)|\} $$ See also

Function Syntax

This function returns outputImage.
// Function prototype
std::shared_ptr< iolink::ImageView > absoluteMaximumWithImage( std::shared_ptr< iolink::ImageView > inputImage1, std::shared_ptr< iolink::ImageView > inputImage2, std::shared_ptr< iolink::ImageView > outputImage = nullptr );
This function returns outputImage.
// Function prototype.
absolute_maximum_with_image(input_image1: idt.ImageType,
                            input_image2: idt.ImageType,
                            output_image: idt.ImageType = None) -> idt.ImageType
This function returns outputImage.
// Function prototype.
public static IOLink.ImageView
AbsoluteMaximumWithImage( IOLink.ImageView inputImage1,
                          IOLink.ImageView inputImage2,
                          IOLink.ImageView outputImage = null );

Class Syntax

Parameters

Parameter Name Description Type Supported Values Default Value
input
inputImage1
The first input image. Image Binary, Label, Grayscale or Multispectral nullptr
input
inputImage2
The second input image. Image Binary, Label, Grayscale or Multispectral nullptr
output
outputImage
The output image. Its size is the minimum between both inputs for each dimension. Its type is forced to the one having the greater capacity between both input types. Image nullptr
Parameter Name Description Type Supported Values Default Value
input
input_image1
The first input image. image Binary, Label, Grayscale or Multispectral None
input
input_image2
The second input image. image Binary, Label, Grayscale or Multispectral None
output
output_image
The output image. Its size is the minimum between both inputs for each dimension. Its type is forced to the one having the greater capacity between both input types. image None
Parameter Name Description Type Supported Values Default Value
input
inputImage1
The first input image. Image Binary, Label, Grayscale or Multispectral null
input
inputImage2
The second input image. Image Binary, Label, Grayscale or Multispectral null
output
outputImage
The output image. Its size is the minimum between both inputs for each dimension. Its type is forced to the one having the greater capacity between both input types. Image null

Object Examples

auto polystyrene = ioformat::readImage( std::string( IMAGEDEVDATA_IMAGES_FOLDER ) + "polystyrene.tif" );

AbsoluteMaximumWithImage absoluteMaximumWithImageAlgo;
absoluteMaximumWithImageAlgo.setInputImage1( polystyrene );
absoluteMaximumWithImageAlgo.setInputImage2( polystyrene );
absoluteMaximumWithImageAlgo.execute();

std::cout << "outputImage:" << absoluteMaximumWithImageAlgo.outputImage()->toString();
polystyrene = ioformat.read_image(imagedev_data.get_image_path("polystyrene.tif"))

absolute_maximum_with_image_algo = imagedev.AbsoluteMaximumWithImage()
absolute_maximum_with_image_algo.input_image1 = polystyrene
absolute_maximum_with_image_algo.input_image2 = polystyrene
absolute_maximum_with_image_algo.execute()

print("output_image:", str(absolute_maximum_with_image_algo.output_image))
ImageView polystyrene = ViewIO.ReadImage( @"Data/images/polystyrene.tif" );

AbsoluteMaximumWithImage absoluteMaximumWithImageAlgo = new AbsoluteMaximumWithImage
{
    inputImage1 = polystyrene,
    inputImage2 = polystyrene
};
absoluteMaximumWithImageAlgo.Execute();

Console.WriteLine( "outputImage:" + absoluteMaximumWithImageAlgo.outputImage.ToString() );

Function Examples

auto polystyrene = ioformat::readImage( std::string( IMAGEDEVDATA_IMAGES_FOLDER ) + "polystyrene.tif" );

auto result = absoluteMaximumWithImage( polystyrene, polystyrene );

std::cout << "outputImage:" << result->toString();
polystyrene = ioformat.read_image(imagedev_data.get_image_path("polystyrene.tif"))

result = imagedev.absolute_maximum_with_image(polystyrene, polystyrene)

print("output_image:", str(result))
ImageView polystyrene = ViewIO.ReadImage( @"Data/images/polystyrene.tif" );

IOLink.ImageView result = Processing.AbsoluteMaximumWithImage( polystyrene, polystyrene );

Console.WriteLine( "outputImage:" + result.ToString() );