ImageDev

GeodesicMinima

Extracts the geodesic radius of the particles from a geodesic propagation image.

Access to parameter description

For an introduction: This algorithm is dedicated to be applied on the GeodesicPropagation2d output. It perform a geodesic propagation in one direction only, and extracts the minimum value. It extracts the geodesic radius of the particles.

See also

Function Syntax

This function returns outputImage.
// Function prototype
std::shared_ptr< iolink::ImageView > geodesicMinima( std::shared_ptr< iolink::ImageView > inputImage, GeodesicMinima::Neighborhood neighborhood, std::shared_ptr< iolink::ImageView > outputImage = NULL );

Class Syntax

Parameters

Parameter Name Description Type Supported Values Default Value
input
inputImage
The input image. Image Binary, Label, Grayscale or Multispectral nullptr
input
neighborhood
The 3D neighborhood configuration. This parameter is ignored with a 2D input image.
CONNECTIVITY_6 The structuring element is composed of voxels with a common face with the voxel of interest.
CONNECTIVITY_18 The structuring element is composed of voxels with at least one common edge.
CONNECTIVITY_26 The structuring element is a full cube.
Enumeration CONNECTIVITY_26
output
outputImage
The output image. Its dimensions and type are forced to the same values as the input. Image nullptr

Object Examples

auto foam = readVipImage( std::string( IMAGEDEVDATA_IMAGES_FOLDER ) + "foam.vip" );

GeodesicMinima geodesicMinimaAlgo;
geodesicMinimaAlgo.setInputImage( foam );
geodesicMinimaAlgo.setNeighborhood( GeodesicMinima::Neighborhood::CONNECTIVITY_26 );
geodesicMinimaAlgo.execute();

std::cout << "outputImage:" << geodesicMinimaAlgo.outputImage()->toString();

Function Examples

auto foam = readVipImage( std::string( IMAGEDEVDATA_IMAGES_FOLDER ) + "foam.vip" );

auto result = geodesicMinima( foam, GeodesicMinima::Neighborhood::CONNECTIVITY_26 );

std::cout << "outputImage:" << result->toString();