The FlowInpainting algorithm performs inpainting operations in an image in order to reconstuct some missing
or corrupted data, designated by a binary mask. It consists of locally extrapolating the searched data in
the input image.
These techniques can be used, for example, for reducing strong ring artifacts in computed tomograpy images.
Reference: D.Tschumperle, R.Deriche. "Vector-Valued Image Regularization with PDE's: A Common Framework for Different
Applications", Rapport de recherche no 4657, INRIA Sophia-Antipolis, Dec. 2002.
// Command constructor.FlowInpainting();/// 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 input binary image designating the area to reconstruct. It must have same dimensions as the input image.
std::shared_ptr< iolink::ImageView> inputMaskImage()const;/// Sets the inputMaskImage parameter./// The input binary image designating the area to reconstruct. It must have same dimensions as the input image.void setInputMaskImage( std::shared_ptr< iolink::ImageView> inputMaskImage );/// Gets the numberOfIterations parameter./// The number of iterations (must be a positive integer).int32_t numberOfIterations()const;/// Sets the numberOfIterations parameter./// The number of iterations (must be a positive integer).void setNumberOfIterations(constint32_t& numberOfIterations );/// Gets the standardDeviation parameter./// The standard deviation in pixel units.double standardDeviation()const;/// Sets the standardDeviation parameter./// The standard deviation in pixel units.void setStandardDeviation(constdouble& standardDeviation );/// Gets the outputImage parameter./// The output image. Its dimensions, type, and calibration are forced to the same values as the input.
std::shared_ptr< iolink::ImageView> outputImage()const;/// Sets the outputImage parameter./// The output image. Its dimensions, type, and calibration are forced to the same values as the input.void setOutputImage( std::shared_ptr< iolink::ImageView> outputImage );// Method to launch the command.void execute();
# Property of the inputImage parameter.FlowInpainting.input_image
# Property of the inputMaskImage parameter.FlowInpainting.input_mask_image
# Property of the numberOfIterations parameter.FlowInpainting.number_of_iterations
# Property of the standardDeviation parameter.FlowInpainting.standard_deviation
# Property of the outputImage parameter.FlowInpainting.output_image
// Method to launch the command.
execute()
// Command constructor.FlowInpainting()// Property of the inputImage parameter.FlowInpainting.inputImage
// Property of the inputMaskImage parameter.FlowInpainting.inputMaskImage
// Property of the numberOfIterations parameter.FlowInpainting.numberOfIterations
// Property of the standardDeviation parameter.FlowInpainting.standardDeviation
// Property of the outputImage parameter.FlowInpainting.outputImage
// 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 input binary image designating the area to reconstruct. It must have same dimensions as the input image.
Image
Binary
nullptr
numberOfIterations
The number of iterations (must be a positive integer).
Int32
>=1
10
standardDeviation
The standard deviation in pixel units.
Float64
>0
1
outputImage
The output image. Its dimensions, type, and calibration are forced to the same values as the input.
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 input binary image designating the area to reconstruct. It must have same dimensions as the input image.
image
Binary
None
number_of_iterations
The number of iterations (must be a positive integer).
int32
>=1
10
standard_deviation
The standard deviation in pixel units.
float64
>0
1
output_image
The output image. Its dimensions, type, and calibration are forced to the same values as the input.
image
None
Parameter Name
Description
Type
Supported Values
Default Value
inputImage
The input image.
Image
Binary, Label, Grayscale or Multispectral
null
inputMaskImage
The input binary image designating the area to reconstruct. It must have same dimensions as the input image.
Image
Binary
null
numberOfIterations
The number of iterations (must be a positive integer).
Int32
>=1
10
standardDeviation
The standard deviation in pixel units.
Float64
>0
1
outputImage
The output image. Its dimensions, type, and calibration are forced to the same values as the input.