Skip to content

Commit 1aa325a

Browse files
committed
Added HAL documentation note for out-of-bound hack in optical flow LK.
1 parent 292ee28 commit 1aa325a

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

modules/video/src/hal_replacement.hpp

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,9 @@
2727
//! @{
2828

2929
/**
30-
@brief Lucas-Kanade optical flow for single pyramid layer. See calcOpticalFlowPyrLK
30+
@brief Lucas-Kanade optical flow for single pyramid layer. See calcOpticalFlowPyrLK.
31+
@note OpenCV builds pyramid levels with `win_size` padding. Out-of-bound access to source
32+
image data is legal within `+-win_size` range.
3133
@param prev_data previous frame image data
3234
@param prev_data_step previous frame image data step
3335
@param prev_deriv_data previous frame Schaar derivatives
@@ -69,6 +71,8 @@ inline int hal_ni_LKOpticalFlowLevel(const uchar *prev_data, size_t prev_data_st
6971

7072
/**
7173
@brief Computes Schaar derivatives with inteleaved layout xyxy...
74+
@note OpenCV builds pyramid levels with `win_size` padding. Out-of-bound access to source
75+
image data is legal within `+-win_size` range.
7276
@param src_data source image data
7377
@param src_step source image step
7478
@param dst_data destination buffer data

0 commit comments

Comments
 (0)