RidgeDetection
Provides the local maxima of an image.
Access to parameter description
For an introduction:
See also
Access to parameter description
For an introduction:
- section Edge Detection
- section Edge Marking
See also
Function Syntax
This function returns outputBinaryImage.
// Function prototype
std::shared_ptr< iolink::ImageView > ridgeDetection( std::shared_ptr< iolink::ImageView > inputImage, RidgeDetection::Neighborhood neighborhood, std::shared_ptr< iolink::ImageView > outputBinaryImage = nullptr );
This function returns outputBinaryImage.
// Function prototype. ridge_detection(input_image: idt.ImageType, neighborhood: RidgeDetection.Neighborhood = RidgeDetection.Neighborhood.CONNECTIVITY_26, output_binary_image: idt.ImageType = None) -> idt.ImageType
This function returns outputBinaryImage.
// Function prototype. public static IOLink.ImageView RidgeDetection( IOLink.ImageView inputImage, RidgeDetection.Neighborhood neighborhood = ImageDev.RidgeDetection.Neighborhood.CONNECTIVITY_26, IOLink.ImageView outputBinaryImage = null );
Class Syntax
Parameters
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 | ||||||||
outputBinaryImage |
The binary output image. | Image | nullptr |
Parameter Name | Description | Type | Supported Values | Default Value | |||||||
---|---|---|---|---|---|---|---|---|---|---|---|
input_image |
The input image. | image | Binary, Label, Grayscale or Multispectral | None | |||||||
neighborhood |
The 3D neighborhood configuration. This parameter is ignored with a 2D input image.
|
enumeration | CONNECTIVITY_26 | ||||||||
output_binary_image |
The binary output image. | image | None |
Parameter Name | Description | Type | Supported Values | Default Value | |||||||
---|---|---|---|---|---|---|---|---|---|---|---|
inputImage |
The input image. | Image | Binary, Label, Grayscale or Multispectral | null | |||||||
neighborhood |
The 3D neighborhood configuration. This parameter is ignored with a 2D input image.
|
Enumeration | CONNECTIVITY_26 | ||||||||
outputBinaryImage |
The binary output image. | Image | null |
Object Examples
auto foam = readVipImage( std::string( IMAGEDEVDATA_IMAGES_FOLDER ) + "foam.vip" ); RidgeDetection ridgeDetectionAlgo; ridgeDetectionAlgo.setInputImage( foam ); ridgeDetectionAlgo.setNeighborhood( RidgeDetection::Neighborhood::CONNECTIVITY_26 ); ridgeDetectionAlgo.execute(); std::cout << "outputBinaryImage:" << ridgeDetectionAlgo.outputBinaryImage()->toString();
foam = imagedev.read_vip_image(imagedev_data.get_image_path("foam.vip")) ridge_detection_algo = imagedev.RidgeDetection() ridge_detection_algo.input_image = foam ridge_detection_algo.neighborhood = imagedev.RidgeDetection.CONNECTIVITY_26 ridge_detection_algo.execute() print("output_binary_image:", str(ridge_detection_algo.output_binary_image))
ImageView foam = Data.ReadVipImage( @"Data/images/foam.vip" ); RidgeDetection ridgeDetectionAlgo = new RidgeDetection { inputImage = foam, neighborhood = RidgeDetection.Neighborhood.CONNECTIVITY_26 }; ridgeDetectionAlgo.Execute(); Console.WriteLine( "outputBinaryImage:" + ridgeDetectionAlgo.outputBinaryImage.ToString() );
Function Examples
auto foam = readVipImage( std::string( IMAGEDEVDATA_IMAGES_FOLDER ) + "foam.vip" ); auto result = ridgeDetection( foam, RidgeDetection::Neighborhood::CONNECTIVITY_26 ); std::cout << "outputBinaryImage:" << result->toString();
foam = imagedev.read_vip_image(imagedev_data.get_image_path("foam.vip")) result = imagedev.ridge_detection(foam, imagedev.RidgeDetection.CONNECTIVITY_26) print("output_binary_image:", str(result))
ImageView foam = Data.ReadVipImage( @"Data/images/foam.vip" ); IOLink.ImageView result = Processing.RidgeDetection( foam, RidgeDetection.Neighborhood.CONNECTIVITY_26 ); Console.WriteLine( "outputBinaryImage:" + result.ToString() );