Fast Marching Method#
The Fast Marching Method [301] 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.
Classes#
Name |
Description |
|---|---|
Describes the Fast Marching Method implementation. |
Class cv::videostab::FastMarchingMethod#
Describes the Fast Marching Method implementation.
#include <opencv2/videostab/fast_marching.hpp>Collaboration diagram for cv::videostab::FastMarchingMethod:
Detailed Description#
-
class FastMarchingMethod#
Describes the Fast Marching Method implementation.
See http://iwi.eldoc.ub.rug.nl/FILES/root/2004/JGraphToolsTelea/2004JGraphToolsTelea.pdf
Member Enumeration Documentation#
enum FastMarchingMethod
|
|
|
Constructor & Destructor Documentation#
FastMarchingMethod()#
cv::videostab::FastMarchingMethod::FastMarchingMethod()
Member Function Documentation#
distanceMap()#
Mat cv::videostab::FastMarchingMethod::distanceMap()
Returns
Distance map that’s created during working of the method.
run()#
template<typename Inpaint>
Inpaint cv::videostab::FastMarchingMethod::run(
const Mat & mask,
Inpaint inpaint )
Template method that runs the Fast Marching Method.
Parameters
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.inpaint— Inpainting functor that overloads void operator ()(int x, int y).
Returns
Inpainting functor.
Here is the call graph for this function:
heapAdd()#
void cv::videostab::FastMarchingMethod::heapAdd(const DXY & dxy)
heapDown()#
void cv::videostab::FastMarchingMethod::heapDown(int idx)
heapRemoveMin()#
void cv::videostab::FastMarchingMethod::heapRemoveMin()
heapUp()#
void cv::videostab::FastMarchingMethod::heapUp(int idx)
indexOf()#
int & cv::videostab::FastMarchingMethod::indexOf(const DXY & dxy)
solve()#
float cv::videostab::FastMarchingMethod::solve(
int x1,
int y1,
int x2,
int y2 )
Member Data Documentation#
dist_#
cv::Mat_< float > cv::videostab::FastMarchingMethod::dist_
flag_#
cv::Mat_< uchar > cv::videostab::FastMarchingMethod::flag_
index_#
cv::Mat_< int > cv::videostab::FastMarchingMethod::index_
inf_#
float cv::videostab::FastMarchingMethod::inf_
narrowBand_#
std::vector< DXY > cv::videostab::FastMarchingMethod::narrowBand_
size_#
int cv::videostab::FastMarchingMethod::size_
Source file#
The documentation for this class was generated from the following file:
opencv2/videostab/fast_marching.hpp