Files
opencv-MIRROR/modules/video/test
Bo-Cing Wu 70fd477b5a Merge pull request #30100 from 47022578z-collab:fix-farneback-initial-flow-5.x
video: add input validation for OPTFLOW_USE_INITIAL_FLOW in calcOpticalFlowFarneback (port to 5.x) - #30100

This is a port of #30086 to the 5.x branch.

Added `CV_Assert` validation for `OPTFLOW_USE_INITIAL_FLOW` in `calcOpticalFlowFarneback` to ensure the initial flow matrix is not empty, matches the input size, and has the correct type (`CV_32FC2`). Also added corresponding unit tests in `test_OF_accuracy.cpp`.
2026-09-30 16:53:08 +03:00
..
2026-06-01 14:22:51 +03:00
2025-05-07 13:17:42 +03:00