TimeMap
Computes the shortest travel time in the objects of a binary image considering the weights given by an intensity image.
Access to parameter description
The travel time for a given path is the sum of the intensities of the intensity image along this path. This algorithm considers diagonal directions using the Chamfer metric.
Reference:
P. Soille, Morphological Image Analysis. Principles and Applications, Second Edition, Springer-Verlag, Berlin, pp.231-232, 2003.
See also
Access to parameter description
The travel time for a given path is the sum of the intensities of the intensity image along this path. This algorithm considers diagonal directions using the Chamfer metric.
Reference:
P. Soille, Morphological Image Analysis. Principles and Applications, Second Edition, Springer-Verlag, Berlin, pp.231-232, 2003.
See also
Function Syntax
This function returns outputIntensityImage.
// Function prototype
std::shared_ptr< iolink::ImageView > timeMap( std::shared_ptr< iolink::ImageView > inputBinaryImage, std::shared_ptr< iolink::ImageView > inputIntensityImage, std::shared_ptr< iolink::ImageView > outputIntensityImage = NULL );
Class Syntax
Parameters
Parameter Name | Description | Type | Supported Values | Default Value | |
---|---|---|---|---|---|
![]() |
inputBinaryImage |
The binary input image. | Image | Binary | nullptr |
![]() |
inputIntensityImage |
The weight input image. It must have same dimensions as the input image. | Image | Binary, Label, Grayscale or Multispectral | nullptr |
![]() |
outputIntensityImage |
The output image. Its dimensions are forced to the same values as the input. Its data type is 32-bit floating point. | Image | nullptr |
Object Examples
auto foam_sep = readVipImage( std::string( IMAGEDEVDATA_IMAGES_FOLDER ) + "foam_sep.vip" ); auto foam = readVipImage( std::string( IMAGEDEVDATA_IMAGES_FOLDER ) + "foam.vip" ); TimeMap timeMapAlgo; timeMapAlgo.setInputBinaryImage( foam_sep ); timeMapAlgo.setInputIntensityImage( foam ); timeMapAlgo.execute(); std::cout << "outputIntensityImage:" << timeMapAlgo.outputIntensityImage()->toString();
Function Examples
auto foam_sep = readVipImage( std::string( IMAGEDEVDATA_IMAGES_FOLDER ) + "foam_sep.vip" ); auto foam = readVipImage( std::string( IMAGEDEVDATA_IMAGES_FOLDER ) + "foam.vip" ); auto result = timeMap( foam_sep, foam ); std::cout << "outputIntensityImage:" << result->toString();