GeodesicMinima
Extracts the geodesic radius of the particles from a geodesic propagation image.
Access to parameter description
For an introduction:
See also
Access to parameter description
For an introduction:
- section Mathematical Morphology
- section Geodesic Transformations
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 );
This function returns outputImage.
// Function prototype. geodesic_minima( input_image, neighborhood = GeodesicMinima.Neighborhood.CONNECTIVITY_26, output_image = None )
This function returns outputImage.
// Function prototype. public static IOLink.ImageView GeodesicMinima( IOLink.ImageView inputImage, GeodesicMinima.Neighborhood neighborhood = ImageDev.GeodesicMinima.Neighborhood.CONNECTIVITY_26, IOLink.ImageView outputImage = null );
Class Syntax
Parameters
Class Name | GeodesicMinima |
---|
Parameter Name | Description | Type | Supported Values | Default Value | |||||||
---|---|---|---|---|---|---|---|---|---|---|---|
inputImage |
The input image. | Image | Binary, Label, Grayscale or Multispectral | nullptr | |||||||
neighborhood |
The 3D neighborhood configuration. This parameter is ignored with a 2D input image.
|
Enumeration | CONNECTIVITY_26 | ||||||||
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();
foam = imagedev.read_vip_image(imagedev_data.get_image_path("foam.vip")) geodesic_minima_algo = imagedev.GeodesicMinima() geodesic_minima_algo.input_image = foam geodesic_minima_algo.neighborhood = imagedev.GeodesicMinima.CONNECTIVITY_26 geodesic_minima_algo.execute() print( "output_image:", str( geodesic_minima_algo.output_image ) )
ImageView foam = Data.ReadVipImage( @"Data/images/foam.vip" ); GeodesicMinima geodesicMinimaAlgo = new GeodesicMinima { inputImage = foam, neighborhood = GeodesicMinima.Neighborhood.CONNECTIVITY_26 }; geodesicMinimaAlgo.Execute(); Console.WriteLine( "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();
foam = imagedev.read_vip_image(imagedev_data.get_image_path("foam.vip")) result = imagedev.geodesic_minima( foam, imagedev.GeodesicMinima.CONNECTIVITY_26 ) print( "output_image:", str( result ) )
ImageView foam = Data.ReadVipImage( @"Data/images/foam.vip" ); IOLink.ImageView result = Processing.GeodesicMinima( foam, GeodesicMinima.Neighborhood.CONNECTIVITY_26 ); Console.WriteLine( "outputImage:" + result.ToString() );