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

class cv::videostab::FastMarchingMethod

Describes the Fast Marching Method implementation.

Class cv::videostab::FastMarchingMethod#

Describes the Fast Marching Method implementation.

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

INSIDE

BAND

KNOWN

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:

cv::videostab::FastMarchingMethod::run Node1 cv::videostab::FastMarching Method::run Node2 cv::Mat::create Node1->Node2 Node3 cv::Mat_::create Node1->Node3 Node4 cv::inpaint Node1->Node4

cv::videostab::FastMarchingMethod::run Node1 cv::videostab::FastMarching Method::run Node2 cv::Mat::create Node1->Node2 Node3 cv::Mat_::create Node1->Node3 Node4 cv::inpaint Node1->Node4

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: