ImageDev

InteriorPoints2d

Point detector retaining interior points of object in a two-dimensional binary image.

Access to parameter description

For an introduction: The InteriorPoints2d algorithm performs an HMT with a kernel containing at least one 0 in the neighbourhood and the associated rotations.

See also

Function Syntax

This function returns outputBinaryImage.
// Function prototype
std::shared_ptr< iolink::ImageView > interiorPoints2d( std::shared_ptr< iolink::ImageView > inputBinaryImage, std::shared_ptr< iolink::ImageView > outputBinaryImage = nullptr );
This function returns outputBinaryImage.
// Function prototype.
interior_points_2d(input_binary_image: idt.ImageType,
                   output_binary_image: idt.ImageType = None) -> idt.ImageType
This function returns outputBinaryImage.
// Function prototype.
public static IOLink.ImageView
InteriorPoints2d( IOLink.ImageView inputBinaryImage, IOLink.ImageView outputBinaryImage = null );

Class Syntax

Parameters

Parameter Name Description Type Supported Values Default Value
input
inputBinaryImage
The input binary image. Image Binary nullptr
output
outputBinaryImage
The binary output image. Its size and type are forced to the same values as the input. Image nullptr
Parameter Name Description Type Supported Values Default Value
input
input_binary_image
The input binary image. image Binary None
output
output_binary_image
The binary output image. Its size and type are forced to the same values as the input. image None
Parameter Name Description Type Supported Values Default Value
input
inputBinaryImage
The input binary image. Image Binary null
output
outputBinaryImage
The binary output image. Its size and type are forced to the same values as the input. Image null

Object Examples

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

InteriorPoints2d interiorPoints2dAlgo;
interiorPoints2dAlgo.setInputBinaryImage( polystyrene_sep );
interiorPoints2dAlgo.execute();

std::cout << "outputBinaryImage:" << interiorPoints2dAlgo.outputBinaryImage()->toString();
polystyrene_sep = imagedev.read_vip_image(imagedev_data.get_image_path("polystyrene_sep.vip"))

interior_points_2d_algo = imagedev.InteriorPoints2d()
interior_points_2d_algo.input_binary_image = polystyrene_sep
interior_points_2d_algo.execute()

print("output_binary_image:", str(interior_points_2d_algo.output_binary_image))
ImageView polystyrene_sep = Data.ReadVipImage( @"Data/images/polystyrene_sep.vip" );

InteriorPoints2d interiorPoints2dAlgo = new InteriorPoints2d
{
    inputBinaryImage = polystyrene_sep
};
interiorPoints2dAlgo.Execute();

Console.WriteLine( "outputBinaryImage:" + interiorPoints2dAlgo.outputBinaryImage.ToString() );

Function Examples

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

auto result = interiorPoints2d( polystyrene_sep );

std::cout << "outputBinaryImage:" << result->toString();
polystyrene_sep = imagedev.read_vip_image(imagedev_data.get_image_path("polystyrene_sep.vip"))

result = imagedev.interior_points_2d(polystyrene_sep)

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

IOLink.ImageView result = Processing.InteriorPoints2d( polystyrene_sep );

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