You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
NV_OF_HINT_VECTOR_GRID_SIZE_1 = 1, /**< Hint buffer grid size is 1x1.*/
499
+
NV_OF_HINT_VECTOR_GRID_SIZE_2 = 2, /**< Hint buffer grid size is 2x2.*/
500
+
NV_OF_HINT_VECTOR_GRID_SIZE_4 = 4, /**< Hint buffer grid size is 4x4.*/
501
+
NV_OF_HINT_VECTOR_GRID_SIZE_8 = 8, /**< Hint buffer grid size is 8x8.*/
502
+
NV_OF_HINT_VECTOR_GRID_SIZE_MAX
503
+
};
504
+
505
+
/** @brief convertToFloat() helper function converts the hardware-generated flow vectors to floating point representation (1 flow vector for gridSize).
506
+
* gridSize can be queried via function getGridSize().
507
+
508
+
@param flow Buffer of type CV_16FC2 containing flow vectors generated by calc().
509
+
@param floatFlow Buffer of type CV_32FC2, containing flow vectors in floating point representation, each flow vector for 1 pixel per gridSize, in the pitch-linear layout.
@param perfPreset Optional parameter. Refer [NV OF SDK documentation](https://developer.nvidia.com/opticalflow-sdk) for details about presets.
517
+
Defaults to NV_OF_PERF_LEVEL_SLOW.
518
+
@param outputGridSize Optional parameter. Refer [NV OF SDK documentation](https://developer.nvidia.com/opticalflow-sdk) for details about output grid sizes.
519
+
Defaults to NV_OF_OUTPUT_VECTOR_GRID_SIZE_1.
520
+
@param hintGridSize Optional parameter. Refer [NV OF SDK documentation](https://developer.nvidia.com/opticalflow-sdk) for details about hint grid sizes.
521
+
Defaults to NV_OF_HINT_VECTOR_GRID_SIZE_1.
522
+
@param enableTemporalHints Optional parameter. Flag to enable temporal hints. When set to true, the hardware uses the flow vectors
523
+
generated in previous call to calc() as internal hints for the current call to calc().
524
+
Useful when computing flow vectors between successive video frames. Defaults to false.
525
+
@param enableExternalHints Optional Parameter. Flag to enable passing external hints buffer to calc(). Defaults to false.
526
+
@param enableCostBuffer Optional Parameter. Flag to enable cost buffer output from calc(). Defaults to false.
527
+
@param gpuId Optional parameter to select the GPU ID on which the optical flow should be computed. Useful in multi-GPU systems. Defaults to 0.
528
+
@param inputStream Optical flow algorithm may optionally involve cuda preprocessing on the input buffers.
529
+
The input cuda stream can be used to pipeline and synchronize the cuda preprocessing tasks with OF HW engine.
530
+
If input stream is not set, the execute function will use default stream which is NULL stream;
531
+
@param outputStream Optical flow algorithm may optionally involve cuda post processing on the output flow vectors.
532
+
The output cuda stream can be used to pipeline and synchronize the cuda post processing tasks with OF HW engine.
533
+
If output stream is not set, the execute function will use default stream which is NULL stream;
/** @brief Instantiate NVIDIA Optical Flow with ROI Feature
551
+
552
+
@param imageSize Size of input image in pixels.
553
+
@param roiData Pointer to ROI data.
554
+
@param perfPreset Optional parameter. Refer [NV OF SDK documentation](https://developer.nvidia.com/opticalflow-sdk) for details about presets.
555
+
Defaults to NV_OF_PERF_LEVEL_SLOW.
556
+
@param outputGridSize Optional parameter. Refer [NV OF SDK documentation](https://developer.nvidia.com/opticalflow-sdk) for details about output grid sizes.
557
+
Defaults to NV_OF_OUTPUT_VECTOR_GRID_SIZE_1.
558
+
@param hintGridSize Optional parameter. Refer [NV OF SDK documentation](https://developer.nvidia.com/opticalflow-sdk) for details about hint grid sizes.
559
+
Defaults to NV_OF_HINT_VECTOR_GRID_SIZE_1.
560
+
@param enableTemporalHints Optional parameter. Flag to enable temporal hints. When set to true, the hardware uses the flow vectors
561
+
generated in previous call to calc() as internal hints for the current call to calc().
562
+
Useful when computing flow vectors between successive video frames. Defaults to false.
563
+
@param enableExternalHints Optional Parameter. Flag to enable passing external hints buffer to calc(). Defaults to false.
564
+
@param enableCostBuffer Optional Parameter. Flag to enable cost buffer output from calc(). Defaults to false.
565
+
@param gpuId Optional parameter to select the GPU ID on which the optical flow should be computed. Useful in multi-GPU systems. Defaults to 0.
566
+
@param inputStream Optical flow algorithm may optionally involve cuda preprocessing on the input buffers.
567
+
The input cuda stream can be used to pipeline and synchronize the cuda preprocessing tasks with OF HW engine.
568
+
If input stream is not set, the execute function will use default stream which is NULL stream;
569
+
@param outputStream Optical flow algorithm may optionally involve cuda post processing on the output flow vectors.
570
+
The output cuda stream can be used to pipeline and synchronize the cuda post processing tasks with OF HW engine.
571
+
If output stream is not set, the execute function will use default stream which is NULL stream;
0 commit comments