RadialIntensityProfile2d
Computes a radial intensity profile on a 2D image.
Access to parameter description
This algorithm computes an intensity profile that consists in the average intensity at a distance r from a given center.
The output is a 3-column spreadsheet indicating, for each radius, the corresponding average intensity value and standard deviation.
See also
Access to parameter description
This algorithm computes an intensity profile that consists in the average intensity at a distance r from a given center.
The output is a 3-column spreadsheet indicating, for each radius, the corresponding average intensity value and standard deviation.
See also
Function Syntax
This function returns outputMeasurement.
// Function prototype
RadialIntensityProfileMsr::Ptr radialIntensityProfile2d( std::shared_ptr< iolink::ImageView > inputImage, RadialIntensityProfile2d::CenterMode centerMode, iolink::Vector2u32 center, uint32_t maximumRadius, RadialIntensityProfileMsr::Ptr outputMeasurement = NULL );
Class Syntax
Parameters
Parameter Name | Description | Type | Supported Values | Default Value | |||||
---|---|---|---|---|---|---|---|---|---|
![]() |
inputImage |
The input image. Any type of image is accepted. | Image | Binary, Label, Grayscale or Multispectral | nullptr | ||||
![]() |
centerMode |
The way to define the origin of the radii.
|
Enumeration | IMAGE_CENTER | |||||
![]() |
center |
The origin of the radii in pixel coordinates. It is only used in OTHER mode. | Vector2u32 | Any value | {0, 0} | ||||
![]() |
maximumRadius |
The radius in pixels up to which intensities are included in the profile. | UInt32 | Any value | 0 | ||||
![]() |
outputMeasurement |
The output object containing the computed radii, averaged intensities, and standard deviation. | RadialIntensityProfileMsr | nullptr |
Object Examples
std::shared_ptr< iolink::ImageView > polystyrene = ioformat::readImage( std::string( IMAGEDEVDATA_IMAGES_FOLDER ) + "polystyrene.tif" ); RadialIntensityProfile2d radialIntensityProfile2dAlgo; radialIntensityProfile2dAlgo.setInputImage( polystyrene ); radialIntensityProfile2dAlgo.setCenterMode( RadialIntensityProfile2d::CenterMode::IMAGE_CENTER ); radialIntensityProfile2dAlgo.setCenter( {0, 0} ); radialIntensityProfile2dAlgo.setMaximumRadius( 255 ); radialIntensityProfile2dAlgo.execute(); std::cout << "mean: " << radialIntensityProfile2dAlgo.outputMeasurement()->mean( 0 , 0 , 0 ) ;
Function Examples
std::shared_ptr< iolink::ImageView > polystyrene = ioformat::readImage( std::string( IMAGEDEVDATA_IMAGES_FOLDER ) + "polystyrene.tif" ); auto result = radialIntensityProfile2d( polystyrene, RadialIntensityProfile2d::CenterMode::IMAGE_CENTER, {0, 0}, 255 ); std::cout << "mean: " << result->mean( 0 , 0 , 0 ) ;