ImageLocalMaxima2d
Removes the non-local maxima from the gradient amplitude of a two-dimensional image.
Access to parameter description
For an introduction:
This algorithm eliminates some noise effects. It is very useful after having applied the GradientOperator2d algorithm.
The output edges are one pixel thickness edges. It is then possible to perform a HysteresisThresholding algorithm.
See also
Access to parameter description
For an introduction:
- section Edge Detection
- section Edge Marking
This algorithm eliminates some noise effects. It is very useful after having applied the GradientOperator2d algorithm.
The output edges are one pixel thickness edges. It is then possible to perform a HysteresisThresholding algorithm.
See also
Function Syntax
This function returns outputImage.
// Function prototype
std::shared_ptr< iolink::ImageView > imageLocalMaxima2d( std::shared_ptr< iolink::ImageView > inputImageX, std::shared_ptr< iolink::ImageView > inputImageY, std::shared_ptr< iolink::ImageView > inputAmplitudeImage, std::shared_ptr< iolink::ImageView > outputImage = NULL );
Class Syntax
Parameters
Parameter Name | Description | Type | Supported Values | Default Value | |
---|---|---|---|---|---|
![]() |
inputImageX |
The X-gradient input image. | Image | Grayscale or Multispectral | nullptr |
![]() |
inputImageY |
The Y-gradient input image. | Image | Grayscale or Multispectral | nullptr |
![]() |
inputAmplitudeImage |
The gradient amplitude input image. | Image | Binary, Label, Grayscale or Multispectral | nullptr |
![]() |
outputImage |
The output image. | Image | nullptr |
Object Examples
std::shared_ptr< iolink::ImageView > polystyrene = ioformat::readImage( std::string( IMAGEDEVDATA_IMAGES_FOLDER ) + "polystyrene.tif" ); ImageLocalMaxima2d imageLocalMaxima2dAlgo; imageLocalMaxima2dAlgo.setInputImageX( polystyrene ); imageLocalMaxima2dAlgo.setInputImageY( polystyrene ); imageLocalMaxima2dAlgo.setInputAmplitudeImage( polystyrene ); imageLocalMaxima2dAlgo.execute(); std::cout << "outputImage:" << imageLocalMaxima2dAlgo.outputImage()->toString();
Function Examples
std::shared_ptr< iolink::ImageView > polystyrene = ioformat::readImage( std::string( IMAGEDEVDATA_IMAGES_FOLDER ) + "polystyrene.tif" ); auto result = imageLocalMaxima2d( polystyrene, polystyrene, polystyrene ); std::cout << "outputImage:" << result->toString();