nvidia.dali.fn.transforms.crop — NVIDIA DALI (original) (raw)

nvidia.dali.fn.transforms.crop(__input=None, /, *, absolute=False, bytes_per_sample_hint=[0], from_end=[1.0], from_start=[0.0], preserve=False, reverse_order=False, to_end=[1.0], to_start=[0.0], device=None, name=None)#

Produces an affine transform matrix that maps a reference coordinate space to another one.

This transform can be used to adjust coordinates after a crop operation so that a from_start point will be mapped to to_start and from_end will be mapped to to_end.

If another transform matrix is passed as an input, the operator applies the transformation to the matrix provided.

Note

The output of this operator can be fed directly to CoordTransform and WarpAffine operators.

This operator allows sequence inputs.

Supported backends

Parameters:

__input (TensorList , optional) – Input to the operator.

Keyword Arguments: