1212namespace retinify ::tools
1313{
1414// / @brief
15- // / The resolution options for stereo matching pipelines.
16- enum class Resolution : std::uint8_t
15+ // / The model options for stereo matching pipelines.
16+ enum class Model : std::uint8_t
1717{
1818 // / height=320, width=640
1919 SMALL ,
@@ -36,12 +36,12 @@ class RETINIFY_API StereoMatchingPipeline
3636 auto operator =(StereoMatchingPipeline &&other) noexcept -> StereoMatchingPipeline & = delete ;
3737
3838 // / @brief
39- // / Initializes the stereo matching pipeline with the specified processing resolution .
40- // / @param resolution
41- // / The processing resolution to use for the stereo matching pipeline.
39+ // / Initializes the stereo matching pipeline with the specified processing model .
40+ // / @param model
41+ // / The processing model to use for the stereo matching pipeline.
4242 // / @return
4343 // / A Status object indicating whether initialization succeeded.
44- [[nodiscard]] auto Initialize (Resolution resolution = Resolution ::LARGE ) noexcept -> Status;
44+ [[nodiscard]] auto Initialize (Model model = Model ::LARGE ) noexcept -> Status;
4545
4646 // / @brief
4747 // / Runs the stereo matching pipeline.
@@ -53,6 +53,9 @@ class RETINIFY_API StereoMatchingPipeline
5353 // / The output disparity map as a `cv::Mat`.
5454 // / @return
5555 // / A Status object indicating whether the operation succeeded.
56+ // / @note
57+ // / Input images are resized internally, so as long as the left and right
58+ // / images share the same dimensions, their original sizes don’t matter.
5659 [[nodiscard]] auto Run (const cv::Mat &leftImage, const cv::Mat &rightImage, cv::Mat &disparity) const noexcept -> Status;
5760
5861 // / @brief
@@ -68,6 +71,9 @@ class RETINIFY_API StereoMatchingPipeline
6871 // / If the value is less than or equal to 0, the check will be skipped.
6972 // / @return
7073 // / A Status object indicating whether the operation succeeded.
74+ // / @note
75+ // / Input images are resized internally, so as long as the left and right
76+ // / images share the same dimensions, their original sizes don’t matter.
7177 [[nodiscard]] auto RunWithLeftRightConsistencyCheck (const cv::Mat &leftImage, const cv::Mat &rightImage, cv::Mat &disparity, //
7278 float maxDisparityDifference = 1 .0F ) const noexcept -> Status;
7379
0 commit comments