Inpainting¶
Description¶
A plugin to apply 2D/3D inpainting technique to data. If there is a chunk of data missing or one needs to inpaint some data features.
Parameters
in_datasets:
visibility: datasets
dtype: "[list[],list[str]]"
description:
summary: A list of the dataset(s) to process.
verbose: A list of strings, where each string gives the name of a dataset that was either specified by a loader plugin or created as output to a previous plugin. The length of the list is the number of input datasets requested by the plugin. If there is only one dataset and the list is left empty it will default to that dataset.
default: "[]"
out_datasets:
visibility: datasets
dtype: "[list[],list[str]]"
description:
summary: A list of the dataset(s) to create.
verbose: A list of strings, where each string is a name to be assigned to a dataset output by the plugin. If there is only one input dataset and one output dataset and the list is left empty, the output will take the name of the input dataset. The length of the list is the number of output datasets created by the plugin.
default: "[]"
mask_range:
visibility: basic
dtype: "list[float,float]"
description: mask for inpainting is set as a threshold in a range.
default: "[1.0, 100]"
iterations:
visibility: basic
dtype: float
description: controls the smoothing level of the inpainted region.
default: "50"
windowsize_half:
visibility: basic
dtype: int
description: half-size of the smoothing window.
default: "3"
sigma:
visibility: basic
dtype: float
description: maximum value for the inpainted region.
default: "0.5"
pattern:
visibility: basic
dtype: str
description: Pattern to apply these to.
default: SINOGRAM
Key
visibility: The visibility level of the parameter
dtype: The type of data
description: A short explanation of the parameter
default: The default value
options: A list of permitted values
dependency: The name of the parameter and value which this parameter depends upon
range: A guide for the range of the parameter
Citations
No citations
API
-
class
Inpainting
[source] A plugin to apply 2D/3D inpainting technique to data. If there is a chunk of data missing or one needs to inpaint some data features.
- U*param mask_range
mask for inpainting is set as a threhsold in a range. Default: [1.0,100].
- U*param iterations
controls the smoothing level of the inpainted region. Default: 50.
- U*param windowsize_half
half-size of the smoothing window. Default: 3.
- U*param sigma
maximum value for the inpainted region. Default: 0.5.
- U*param pattern
pattern to apply this to. Default: “SINOGRAM”.
-
get_plugin_pattern
()[source]
-
nInput_datasets
()[source] The number of datasets required as input to the plugin
- Returns
Number of input datasets
-
nOutput_datasets
()[source] The number of datasets created by the plugin
- Returns
Number of output datasets
-
process_frames
(data)[source] This method is called after the plugin has been created by the pipeline framework and forms the main processing step
- Parameters
data (list(np.array)) – A list of numpy arrays for each input dataset.
-
setup
()[source] This method is first to be called after the plugin has been created. It determines input/output datasets and plugin specific dataset information such as the pattern (e.g. sinogram/projection).