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 the outputMeasurement output parameter.
// Function prototype. IntensityExtremaMsr::Ptr intensityExtrema( std::shared_ptr< iolink::ImageView > inputImage, int32_t splitResult, IntensityExtremaMsr::Ptr outputMeasurement = NULL );
This function returns the outputMeasurement output parameter.
// Function prototype. intensity_extrema( input_image, split_result = 6, output_measurement = None )
This function returns the outputMeasurement output parameter.
// Function prototype. public static IntensityExtremaMsr IntensityExtrema( IOLink.ImageView inputImage, Int32 splitResult = 6, IntensityExtremaMsr outputMeasurement = null );
Class Syntax
Parameters
Class Name | IntensityExtrema |
---|
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 |
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 ) );