Function cvcudaRandomResizedCropCreate
Defined in File OpRandomResizedCrop.h
Function Documentation
-
NVCVStatus cvcudaRandomResizedCropCreate(NVCVOperatorHandle *handle, double minScale, double maxScale, double minRatio, double maxRatio, int32_t maxBatchSize, uint32_t seed)
Constructs an instance of the random resized crop.
- Parameters:
handle – [out] Where the image instance handle will be written to.
Must not be NULL.
minScale – [in] Lower bound for the random area of the crop, before resizing. The scale is defined with respect to the area of the original image.
Positive value.
maxScale – [in] Upper bound for the random area of the crop, before resizing. The scale is defined with respect to the area of the original image.
Positive value.
minRatio – [in] Lower bound for the random aspect ratio of the crop, before resizing.
Positive value.
maxRatio – [in] Upper bound for the random aspect ratio of the crop, before resizing.
Positive value.
maxBatchSize – [in] The maximum batch size that will be used by the operator.
Positive value.
seed – [in] The random seed that will be used by the operator. Pass 0 to use std::random_device.
Positive value.
- Return values:
NVCV_ERROR_INVALID_ARGUMENT – Handle is null.
NVCV_ERROR_OUT_OF_MEMORY – Not enough memory to create the operator.
NVCV_SUCCESS – Operation executed successfully.