6 The Fast Marching Method [T04]_ is used in of the video stabilization routines to do motion and color inpainting. The method is implemented is a flexible way and it's made public for other users.
8 videostab::FastMarchingMethod
9 -----------------------------
11 .. ocv:class:: videostab::FastMarchingMethod
13 Describes the Fast Marching Method implementation.
17 class CV_EXPORTS FastMarchingMethod
22 template <typename Inpaint>
23 Inpaint run(const Mat &mask, Inpaint inpaint);
25 Mat distanceMap() const;
29 videostab::FastMarchingMethod::FastMarchingMethod
30 -------------------------------------------------
34 .. ocv:function:: videostab::FastMarchingMethod::FastMarchingMethod()
37 videostab::FastMarchingMethod::run
38 ----------------------------------
40 Template method that runs the Fast Marching Method.
42 .. ocv:function:: Inpaint FastMarchingMethod::run(const Mat &mask, Inpaint inpaint)
44 :param mask: Image mask. ``0`` value indicates that the pixel value must be inpainted, ``255`` indicates that the pixel value is known, other values aren't acceptable.
46 :param inpaint: Inpainting functor that overloads ``void operator ()(int x, int y)``.
48 :return: Inpainting functor.
51 videostab::FastMarchingMethod::distanceMap
52 ------------------------------------------
54 .. ocv:function:: Mat videostab::FastMarchingMethod::distanceMap() const
56 :return: Distance map that's created during working of the method.