ImageDev

ObjectBoundaries

Extracts the boundary points of objects from a segmented image.

Access to parameter description

For an introduction: This algorithm keeps the pixels of a binary or label image, which separate objects from each other or from the background. It removes all the other pixels.

See also

Function Syntax

This function returns outputObjectImage.
// Function prototype
std::shared_ptr< iolink::ImageView > objectBoundaries( std::shared_ptr< iolink::ImageView > inputObjectImage, std::shared_ptr< iolink::ImageView > outputObjectImage = NULL );

Class Syntax

Parameters

Class Name ObjectBoundaries

Parameter Name Description Type Supported Values Default Value
input
inputObjectImage
The input binary or label image. Image Binary or Label nullptr
output
outputObjectImage
The output binary or label image. Its dimensions and type are forced to the same values as the input. Image nullptr

Object Examples

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

ObjectBoundaries objectBoundariesAlgo;
objectBoundariesAlgo.setInputObjectImage( foam_sep );
objectBoundariesAlgo.execute();

std::cout << "outputObjectImage:" << objectBoundariesAlgo.outputObjectImage()->toString();

Function Examples

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

auto result = objectBoundaries( foam_sep );

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