Preprocessor for cropping, scaling and padding the inference input to required height, width.
Definition at line 113 of file infer_preprocess.h.


Public Types | |
| using | PreprocessDone = std::function< void(NvDsInferStatus, SharedBatchArray)> |
Public Member Functions | |
| CropSurfaceConverter (int32_t convertPoolSize) | |
| ~CropSurfaceConverter () override | |
| void | setParams (int outW, int outH, InferMediaFormat outFormat, int maxBatchSize) |
| void | setMaintainAspectRatio (bool enable) |
| void | setSymmetricPadding (bool enable) |
| void | setScalingHW (NvBufSurfTransform_Compute compute_hw) |
| void | setScalingFilter (NvBufSurfTransform_Inter filter) |
| NvDsInferStatus | transform (SharedBatchArray src, SharedCuStream mainStream, PreprocessDone done) override |
| Perform the transformation on the input buffer from the buffer array, indexed using m_TransformIdx. More... | |
|
inherited |
Definition at line 44 of file infer_iprocess.h.
|
inline |
Definition at line 115 of file infer_preprocess.h.
|
override |
|
inline |
Definition at line 120 of file infer_preprocess.h.
| void nvdsinferserver::CropSurfaceConverter::setParams | ( | int | outW, |
| int | outH, | ||
| InferMediaFormat | outFormat, | ||
| int | maxBatchSize | ||
| ) |
|
inline |
Definition at line 125 of file infer_preprocess.h.
References _NvBufSurfaceTransformParams::transform_filter.
|
inline |
Definition at line 122 of file infer_preprocess.h.
|
inline |
Definition at line 121 of file infer_preprocess.h.
|
inlineinherited |
Definition at line 92 of file infer_iprocess.h.
|
inlineinherited |
Definition at line 90 of file infer_iprocess.h.
|
inlineoverridevirtualinherited |
Perform the transformation on the input buffer from the buffer array, indexed using m_TransformIdx.
| [in] | src | The input batch buffer array. |
| [in] | mainStream | The main processing CUDA stream. |
| [in] | done | The call function to be called after transformation. |
Implements nvdsinferserver::IPreprocessor.
Definition at line 103 of file infer_iprocess.h.
References NVDSINFER_RESOURCE_ERROR, and NVDSINFER_SUCCESS.
|
inlineinherited |
Definition at line 91 of file infer_iprocess.h.