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 = nullptr );
This function returns outputObjectImage.
// Function prototype.
object_boundaries(input_object_image: idt.ImageType,
                  output_object_image: idt.ImageType = None) -> idt.ImageType
This function returns outputObjectImage.
// Function prototype.
public static IOLink.ImageView
ObjectBoundaries( IOLink.ImageView inputObjectImage, IOLink.ImageView outputObjectImage = null );

Class Syntax

Parameters

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
Parameter Name Description Type Supported Values Default Value
input
input_object_image
The input binary or label image. image Binary or Label None
output
output_object_image
The output binary or label image. Its dimensions and type are forced to the same values as the input. image None
Parameter Name Description Type Supported Values Default Value
input
inputObjectImage
The input binary or label image. Image Binary or Label null
output
outputObjectImage
The output binary or label image. Its dimensions and type are forced to the same values as the input. Image null

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();
foam_sep = imagedev.read_vip_image(imagedev_data.get_image_path("foam_sep.vip"))

object_boundaries_algo = imagedev.ObjectBoundaries()
object_boundaries_algo.input_object_image = foam_sep
object_boundaries_algo.execute()

print("output_object_image:", str(object_boundaries_algo.output_object_image))
ImageView foam_sep = Data.ReadVipImage( @"Data/images/foam_sep.vip" );

ObjectBoundaries objectBoundariesAlgo = new ObjectBoundaries
{
    inputObjectImage = foam_sep
};
objectBoundariesAlgo.Execute();

Console.WriteLine( "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();
foam_sep = imagedev.read_vip_image(imagedev_data.get_image_path("foam_sep.vip"))

result = imagedev.object_boundaries(foam_sep)

print("output_object_image:", str(result))
ImageView foam_sep = Data.ReadVipImage( @"Data/images/foam_sep.vip" );

IOLink.ImageView result = Processing.ObjectBoundaries( foam_sep );

Console.WriteLine( "outputObjectImage:" + result.ToString() );