This algorithm computes, for each pixel of an input image, a local texture curvature attribute. The curvature
estimation takes the pixel size into account.
The curvature is extracted from the gradient structure tensor
of the input image. For each pixel, the curvature parameter κ is linked to the radius of curvature R
by the formula :
κ=1R
Figure 1. The Local radius of curvature
Reference: L.J. van Vliet, P.W. Verbeek. "Curvature and Bending Energy in Digitized 2D and 3D Images". SCIA
93,
Proc. 8th Scandinavian Conference on Image Analysis, Tromso, Norway, pp. 1403-1410, 1993.
// Function prototype.publicstaticIOLink.ImageViewImageCurvature2d(IOLink.ImageView inputImage,IOLink.ImageView inputMaskImage,double standardDeviation =4,IOLink.ImageView outputRealImage =null);
Class Syntax
// Command constructor.ImageCurvature2d();/// Gets the inputImage parameter./// The input image.
std::shared_ptr< iolink::ImageView> inputImage()const;/// Sets the inputImage parameter./// The input image.void setInputImage( std::shared_ptr< iolink::ImageView> inputImage );/// Gets the inputMaskImage parameter./// The binary image designating the area to process. If it equals null, the algorithm is applied on the whole image. This image must have the same dimensions as the input image.
std::shared_ptr< iolink::ImageView> inputMaskImage()const;/// Sets the inputMaskImage parameter./// The binary image designating the area to process. If it equals null, the algorithm is applied on the whole image. This image must have the same dimensions as the input image.void setInputMaskImage( std::shared_ptr< iolink::ImageView> inputMaskImage );/// Gets the standardDeviation parameter./// The standard deviation for Gaussian filter, expressed in world coordinates of the input image.double standardDeviation()const;/// Sets the standardDeviation parameter./// The standard deviation for Gaussian filter, expressed in world coordinates of the input image.void setStandardDeviation(constdouble& standardDeviation );/// Gets the outputRealImage parameter./// The output image. Each pixel value represents the inverse of the local curvature radius in the world coordinates system. Its dimensions are forced to the same values as the input. Its data type is forced to floating point.
std::shared_ptr< iolink::ImageView> outputRealImage()const;/// Sets the outputRealImage parameter./// The output image. Each pixel value represents the inverse of the local curvature radius in the world coordinates system. Its dimensions are forced to the same values as the input. Its data type is forced to floating point.void setOutputRealImage( std::shared_ptr< iolink::ImageView> outputRealImage );// Method to launch the command.void execute();
# Property of the inputImage parameter.ImageCurvature2d.input_image
# Property of the inputMaskImage parameter.ImageCurvature2d.input_mask_image
# Property of the standardDeviation parameter.ImageCurvature2d.standard_deviation
# Property of the outputRealImage parameter.ImageCurvature2d.output_real_image
// Method to launch the command.
execute()
// Command constructor.ImageCurvature2d()// Property of the inputImage parameter.ImageCurvature2d.inputImage
// Property of the inputMaskImage parameter.ImageCurvature2d.inputMaskImage
// Property of the standardDeviation parameter.ImageCurvature2d.standardDeviation
// Property of the outputRealImage parameter.ImageCurvature2d.outputRealImage
// Method to launch the command.Execute()
Parameters
Parameter Name
Description
Type
Supported Values
Default Value
inputImage
The input image.
Image
Binary, Label, Grayscale or Multispectral
nullptr
inputMaskImage
The binary image designating the area to process. If it equals null, the algorithm is applied on the whole image. This image must have the same dimensions as the input image.
Image
Binary
nullptr
standardDeviation
The standard deviation for Gaussian filter, expressed in world coordinates of the input image.
Float64
>0
4
outputRealImage
The output image. Each pixel value represents the inverse of the local curvature radius in the world coordinates system. Its dimensions are forced to the same values as the input. Its data type is forced to floating point.
Image
nullptr
Parameter Name
Description
Type
Supported Values
Default Value
input_image
The input image.
image
Binary, Label, Grayscale or Multispectral
None
input_mask_image
The binary image designating the area to process. If it equals null, the algorithm is applied on the whole image. This image must have the same dimensions as the input image.
image
Binary
None
standard_deviation
The standard deviation for Gaussian filter, expressed in world coordinates of the input image.
float64
>0
4
output_real_image
The output image. Each pixel value represents the inverse of the local curvature radius in the world coordinates system. Its dimensions are forced to the same values as the input. Its data type is forced to floating point.
image
None
Parameter Name
Description
Type
Supported Values
Default Value
inputImage
The input image.
Image
Binary, Label, Grayscale or Multispectral
null
inputMaskImage
The binary image designating the area to process. If it equals null, the algorithm is applied on the whole image. This image must have the same dimensions as the input image.
Image
Binary
null
standardDeviation
The standard deviation for Gaussian filter, expressed in world coordinates of the input image.
Float64
>0
4
outputRealImage
The output image. Each pixel value represents the inverse of the local curvature radius in the world coordinates system. Its dimensions are forced to the same values as the input. Its data type is forced to floating point.