diff --git a/modules/stitching/doc/motion_estimation.rst b/modules/stitching/doc/motion_estimation.rst index 6cda27522d..d8ef015f7e 100644 --- a/modules/stitching/doc/motion_estimation.rst +++ b/modules/stitching/doc/motion_estimation.rst @@ -18,12 +18,11 @@ Rotation estimator base class. It takes features of all images, pairwise matches public: virtual ~Estimator() {} - void operator ()(const std::vector &features, const std::vector &pairwise_matches, - std::vector &cameras) - { estimate(features, pairwise_matches, cameras); } + bool operator ()(const std::vector &features, const std::vector &pairwise_matches, + std::vector &cameras); protected: - virtual void estimate(const std::vector &features, const std::vector &pairwise_matches, + virtual bool estimate(const std::vector &features, const std::vector &pairwise_matches, std::vector &cameras) = 0; }; @@ -40,6 +39,8 @@ Estimates camera parameters. :param cameras: Estimated camera parameters + :return: True in case of success, false otherwise + detail::Estimator::estimate --------------------------- @@ -53,6 +54,8 @@ This method must implement camera parameters estimation logic in order to make t :param cameras: Estimated camera parameters + :return: True in case of success, false otherwise + detail::HomographyBasedEstimator -------------------------------- .. ocv:class:: detail::HomographyBasedEstimator : public detail::Estimator