43 #ifndef __OPENCV_VIDEOSTAB_FAST_MARCHING_HPP__
44 #define __OPENCV_VIDEOSTAB_FAST_MARCHING_HPP__
62 template <
typename Inpa
int>
68 enum { INSIDE = 0, BAND = 1, KNOWN = 255 };
75 DXY() :
dist(0),
x(0),
y(0) {}
76 DXY(
float _dist,
int _x,
int _y) :
dist(_dist),
x(_x),
y(_y) {}
80 float solve(
int x1,
int y1,
int x2,
int y2)
const;
81 int& indexOf(
const DXY &dxy) {
return index_(dxy.y, dxy.x); }
84 void heapDown(
int idx);
85 void heapAdd(
const DXY &dxy);
94 std::vector<DXY> narrowBand_;
GLenum GLint GLint y
Definition: core_c.h:613
CV_EXPORTS_W void inpaint(InputArray src, InputArray inpaintMask, OutputArray dst, double inpaintRadius, int flags)
restores the damaged image areas using one of the available intpainting algorithms ...
const int * idx
Definition: core_c.h:323
CV_EXPORTS_W bool solve(InputArray src1, InputArray src2, OutputArray dst, int flags=DECOMP_LU)
solves linear system or a least-square problem
FastMarchingMethod()
Definition: fast_marching.hpp:60
Mat distanceMap() const
Definition: fast_marching.hpp:65
Definition: fast_marching.hpp:57
GLenum GLint x
Definition: core_c.h:632
CV_EXPORTS MatExpr operator<(const Mat &a, const Mat &b)
The n-dimensional matrix class.
Definition: core.hpp:1688
int int y
Definition: highgui_c.h:186
int x
Definition: highgui_c.h:186
GLenum GLint GLuint mask
Definition: tracking.hpp:132
CvPoint3D64f double * dist
Definition: legacy.hpp:556