IntensityExtrema
Computes basic minimum and maximum intensities of an image.
Access to parameter description
For an introduction:
See also
Access to parameter description
For an introduction:
- section Image Analysis
- section Image Statistics
- $maximum=Max\{I(n,m)\}$
- $minimum=Min\{I(n,m)\}$
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 = NULL );
This function returns outputMeasurement.
// Function prototype. intensity_extrema( input_image, split_result = 6, output_measurement = None )
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 | |||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|
inputImage |
The input image. It can be grayscale, color, multi-channel, or time series. | Image | Binary, Label, Grayscale or Multispectral | nullptr | |||||||||
splitResult |
The dimension management in case of 3D volume, multi channel, and time series input.
|
MultipleChoice | NONE | BY_CHANEL | BY_TIME_STEP | ||||||||||
outputMeasurement |
The output measurement result. | IntensityExtremaMsr | nullptr |
Parameter Name | Description | Type | Supported Values | Default Value | |||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|
input_image |
The input image. It can be grayscale, color, multi-channel, or time series. | image | Binary, Label, Grayscale or Multispectral | None | |||||||||
split_result |
The dimension management in case of 3D volume, multi channel, and time series input.
|
multiple_choice | NONE | BY_CHANEL | BY_TIME_STEP | ||||||||||
output_measurement |
The output measurement result. | IntensityExtremaMsr | None |
Parameter Name | Description | Type | Supported Values | Default Value | |||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|
inputImage |
The input image. It can be grayscale, color, multi-channel, or time series. | Image | Binary, Label, Grayscale or Multispectral | null | |||||||||
splitResult |
The dimension management in case of 3D volume, multi channel, and time series input.
|
MultipleChoice | NONE | BY_CHANEL | BY_TIME_STEP | ||||||||||
outputMeasurement |
The output measurement result. | IntensityExtremaMsr | null |
Object Examples
std::shared_ptr< iolink::ImageView > 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
std::shared_ptr< iolink::ImageView > 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 ) );