This algorithm produces a pruned skeleton of the background.
The influence zone of a particle Xi is the set of points closer to Xi than to any other particle
Xj.
The skeleton by influence zones is the boundary splitting the different influence zones, and it separates
the image into zones surrounding each object.
Figure 1. Skeleton by influence zones (SKIZ)
This algorithm searches the skeleton of a binary or labeled image by influence zones.
If the input is a binary image, it is first labelled, then the influence zones are determined by
successive conditional dilations.
2221∙2111 The process stops as soon as all the zones are hitting each other.
// Function prototype.publicstaticIOLink.ImageViewInfluenceZones(IOLink.ImageView inputObjectImage,InfluenceZones.Neighborhood neighborhood =ImageDev.InfluenceZones.Neighborhood.CONNECTIVITY_26,IOLink.ImageView outputBinaryImage =null);
Class Syntax
// Command constructor.InfluenceZones();/// Gets the inputObjectImage parameter./// The binary input or label image.
std::shared_ptr< iolink::ImageView> inputObjectImage()const;/// Sets the inputObjectImage parameter./// The binary input or label image.void setInputObjectImage( std::shared_ptr< iolink::ImageView> inputObjectImage );/// Gets the neighborhood parameter./// The 3D neighborhood configuration. This parameter is ignored with a 2D input image.InfluenceZones::Neighborhood neighborhood()const;/// Sets the neighborhood parameter./// The 3D neighborhood configuration. This parameter is ignored with a 2D input image.void setNeighborhood(constInfluenceZones::Neighborhood& neighborhood );/// Gets the outputBinaryImage parameter./// The binary output image. Its size and type are forced to the same values as the input.
std::shared_ptr< iolink::ImageView> outputBinaryImage()const;/// Sets the outputBinaryImage parameter./// The binary output image. Its size and type are forced to the same values as the input.void setOutputBinaryImage( std::shared_ptr< iolink::ImageView> outputBinaryImage );// Method to launch the command.void execute();
# Property of the inputObjectImage parameter.InfluenceZones.input_object_image
# Property of the neighborhood parameter.InfluenceZones.neighborhood
# Property of the outputBinaryImage parameter.InfluenceZones.output_binary_image
// Method to launch the command.
execute()
// Command constructor.InfluenceZones()// Property of the inputObjectImage parameter.InfluenceZones.inputObjectImage
// Property of the neighborhood parameter.InfluenceZones.neighborhood
// Property of the outputBinaryImage parameter.InfluenceZones.outputBinaryImage
// Method to launch the command.Execute()
Parameters
Parameter Name
Description
Type
Supported Values
Default Value
inputObjectImage
The binary input or label image.
Image
Binary or Label
nullptr
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
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_object_image
The binary input or label image.
image
Binary or Label
None
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_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
inputObjectImage
The binary input or label image.
Image
Binary or Label
null
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
outputBinaryImage
The binary output image. Its size and type are forced to the same values as the input.