Loading [MathJax]/jax/output/CommonHTML/jax.js
ImageDev

RidgeDetection

Provides the local maxima of an image.

Access to parameter description

For an introduction: This algorithm provides the local maxima using an edge tracking process. On a two-dimensional image, it keeps the configuration of those kind of 3x3 neighborhoods: xbxxaxxcxxxxbacxxxbxxxaxxxcxxbxaxcxxwhere b<a and c<a
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 = 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
outputBinaryImage
The binary output image. Image nullptr

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();

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();