vpi.TemporalNoiseReduction
- class vpi.TemporalNoiseReduction(size: Tuple[int, int], format: vpi.Format, version: vpi.TNRVersion = vpi.TNRVersion.DEFAULT, backend: vpi.Backend = vpi.Backend.DEFAULT) vpi.TemporalNoiseReduction
Creates the main object of the TNR algorithm.
Note
This class allocates all resources needed by the temporal noise reduction (TNR) algorithm. An object of this class is able to run the TNR algorithm via its
call operator
.- Parameters
size (Tuple[int, int]) – Dimensions of the images to be processed.
format (vpi.Format) – Format of the images to be processed.
version (vpi.TNRVersion, optional) – The TNR version to be used.
backend (vpi.Backend, optional) – The backend to be used by the algorithm.
- Returns
The main object of the TNR algorihtm.
- Return type
Caution
Restrictions to several arguments may apply. Check the C API references of the create payload function and the group concepts for more details.
Methods
__call__
(self, input, *[, stream, preset, ...])Runs the TNR algorithm on the input image.