Skip to content

Commit 92f17a3

Browse files
Fix documentation for DisparityFilter disparity map types
1 parent abaddbc commit 92f17a3

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

modules/ximgproc/include/opencv2/ximgproc/disparity_filter.hpp

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -62,11 +62,14 @@ class CV_EXPORTS_W DisparityFilter : public Algorithm
6262
@param left_view left view of the original stereo-pair to guide the filtering process, 8-bit single-channel
6363
or three-channel image.
6464
65-
@param filtered_disparity_map output disparity map.
65+
@param filtered_disparity_map output disparity map, single-channel CV_16S type,
66+
with disparity values scaled by 16.
67+
6668
6769
@param disparity_map_right optional argument, some implementations might also use the disparity map
68-
of the right view to compute confidence maps. If provided, it must be a single-channel CV_32F matrix,
69-
otherwise a runtime assertion will fail.
70+
of the right view to compute confidence maps. If provided, it must be a single-channel CV_16S matrix.
71+
Disparity values are expected to be scaled by 16 (one-pixel disparity corresponds to the value of 16).
72+
7073
7174
@param ROI region of the disparity map to filter. Optional, usually it should be set automatically.
7275

0 commit comments

Comments
 (0)