2012-10-06 01:30:58 +08:00
Fast Marching Method
====================
.. highlight :: cpp
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.
videostab::FastMarchingMethod
-----------------------------
.. ocv:class :: videostab::FastMarchingMethod
2012-10-18 01:42:09 +08:00
Describes the Fast Marching Method implementation.
2012-10-06 01:30:58 +08:00
::
class CV_EXPORTS FastMarchingMethod
{
public:
FastMarchingMethod();
template <typename Inpaint>
Inpaint run(const Mat &mask, Inpaint inpaint);
Mat distanceMap() const;
};
videostab::FastMarchingMethod::FastMarchingMethod
-------------------------------------------------
2012-10-18 01:42:09 +08:00
Constructor.
2012-10-06 01:30:58 +08:00
.. ocv:function :: videostab::FastMarchingMethod::FastMarchingMethod()
videostab::FastMarchingMethod::run
----------------------------------
2012-10-18 01:42:09 +08:00
Template method that runs the Fast Marching Method.
2012-10-06 01:30:58 +08:00
2012-10-18 16:16:04 +08:00
.. ocv:function :: template<typename Inpaint> Inpaint videostab::FastMarchingMethod::run(const Mat &mask, Inpaint inpaint)
2012-10-06 01:30:58 +08:00
: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.
:param inpaint: Inpainting functor that overloads ``void operator ()(int x, int y)``.
2012-10-18 01:42:09 +08:00
:return: Inpainting functor.
2012-10-06 01:30:58 +08:00
videostab::FastMarchingMethod::distanceMap
------------------------------------------
.. ocv:function :: Mat videostab::FastMarchingMethod::distanceMap() const
:return: Distance map that's created during working of the method.