ImageDev

IntensityExtrema

Computes basic minimum and maximum intensities of an image.

Access to parameter description

For an introduction: For an image $I$ This algorithm supports grayscale, color, multi-channel images, 3D volumes, and time series as inputs. The policy to manage the dimensions in each case can be defined with the splitResult parameter.

See also

Function Syntax

This function returns outputMeasurement.
// Function prototype
IntensityExtremaMsr::Ptr intensityExtrema( std::shared_ptr< iolink::ImageView > inputImage, int32_t splitResult, IntensityExtremaMsr::Ptr outputMeasurement = nullptr );
This function returns outputMeasurement.
// Function prototype.
intensity_extrema(input_image: idt.ImageType,
                  split_result: Union[int, str, IntensityExtrema.SplitResult] = 6,
                  output_measurement: Union[Any, None] = None) -> IntensityExtremaMsr
This function returns outputMeasurement.
// Function prototype.
public static IntensityExtremaMsr
IntensityExtrema( IOLink.ImageView inputImage,
                  Int32 splitResult = 6,
                  IntensityExtremaMsr outputMeasurement = null );

Class Syntax

Parameters

Parameter Name Description Type Supported Values Default Value
input
inputImage
The input image. It can be grayscale, color, multi-channel, or time series. Image Binary, Label, Grayscale or Multispectral nullptr
input
splitResult
The dimension management in case of 3D volume, multi channel, and time series input.
NONE A single result is given for all the input dimensions. Associated value = 0.
BY_PLANE A result is given for each XY slice of a 3D volume. Associated value = 1.
BY_CHANEL A result is given for each channel of a multi-channel image. Associated value = 2.
BY_TIME_STEP A result is given for each step of a time series. Associated value = 4.
MultipleChoice NONE | BY_CHANEL | BY_TIME_STEP
output
outputMeasurement
The output measurement result. IntensityExtremaMsr nullptr
Parameter Name Description Type Supported Values Default Value
input
input_image
The input image. It can be grayscale, color, multi-channel, or time series. image Binary, Label, Grayscale or Multispectral None
input
split_result
The dimension management in case of 3D volume, multi channel, and time series input.
NONE A single result is given for all the input dimensions. Associated value = 0.
BY_PLANE A result is given for each XY slice of a 3D volume. Associated value = 1.
BY_CHANEL A result is given for each channel of a multi-channel image. Associated value = 2.
BY_TIME_STEP A result is given for each step of a time series. Associated value = 4.
multiple_choice NONE | BY_CHANEL | BY_TIME_STEP
output
output_measurement
The output measurement result. IntensityExtremaMsr None
Parameter Name Description Type Supported Values Default Value
input
inputImage
The input image. It can be grayscale, color, multi-channel, or time series. Image Binary, Label, Grayscale or Multispectral null
input
splitResult
The dimension management in case of 3D volume, multi channel, and time series input.
NONE A single result is given for all the input dimensions. Associated value = 0.
BY_PLANE A result is given for each XY slice of a 3D volume. Associated value = 1.
BY_CHANEL A result is given for each channel of a multi-channel image. Associated value = 2.
BY_TIME_STEP A result is given for each step of a time series. Associated value = 4.
MultipleChoice NONE | BY_CHANEL | BY_TIME_STEP
output
outputMeasurement
The output measurement result. IntensityExtremaMsr null

Object Examples

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

IntensityExtrema intensityExtremaAlgo;
intensityExtremaAlgo.setInputImage( polystyrene );
intensityExtremaAlgo.setSplitResult( 0 );
intensityExtremaAlgo.execute();

std::cout << "maximum: " << intensityExtremaAlgo.outputMeasurement()->maximum( 0 , 0 , 0 ) ;
polystyrene = ioformat.read_image(imagedev_data.get_image_path("polystyrene.tif"))

intensity_extrema_algo = imagedev.IntensityExtrema()
intensity_extrema_algo.input_image = polystyrene
intensity_extrema_algo.split_result = 0
intensity_extrema_algo.execute()

print("maximum: ", str(intensity_extrema_algo.output_measurement.maximum(0, 0, 0)))
ImageView polystyrene = ViewIO.ReadImage( @"Data/images/polystyrene.tif" );

IntensityExtrema intensityExtremaAlgo = new IntensityExtrema
{
    inputImage = polystyrene,
    splitResult = 0
};
intensityExtremaAlgo.Execute();

Console.WriteLine( "maximum: " + intensityExtremaAlgo.outputMeasurement.maximum( 0 , 0 , 0 ) );

Function Examples

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

auto result = intensityExtrema( polystyrene, 0 );

std::cout << "maximum: " << result->maximum( 0 , 0 , 0 ) ;
polystyrene = ioformat.read_image(imagedev_data.get_image_path("polystyrene.tif"))

result = imagedev.intensity_extrema(polystyrene, 0)

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

IntensityExtremaMsr result = Processing.IntensityExtrema( polystyrene, 0 );

Console.WriteLine(  "maximum: " + result.maximum( 0 , 0 , 0 )  );