43
#ifndef OPENCV_VIDEOSTAB_FAST_MARCHING_HPP
44
#define OPENCV_VIDEOSTAB_FAST_MARCHING_HPP
49
#include "opencv2/core.hpp"
75
template
<
typename
Inpa
int>
84
enum
{ INSIDE = 0, BAND = 1, KNOWN = 255 };
91
DXY() : dist(0), x(0), y(0) {}
92
DXY(
float
_dist,
int
_x,
int
_y) : dist(_dist), x(_x), y(_y) {}
93
bool
operator <(
const
DXY &dxy)
const
{
return
dist < dxy.dist; }
96
float
solve(
int
x1,
int
y1,
int
x2,
int
y2)
const;
97
int& indexOf(
const
DXY &dxy) {
return
index_(dxy.y, dxy.x); }
100
void
heapDown(
int
idx);
101
void
heapAdd(
const
DXY &dxy);
102
void
heapRemoveMin();
110
std::vector<DXY> narrowBand_;
119
#include "fast_marching_inl.hpp"
Template matrix class derived from Mat
Definition:
mat.hpp:2199
n-dimensional dense array class
Definition:
mat.hpp:802
Describes the Fast Marching Method implementation.
Definition:
fast_marching.hpp:64
Mat distanceMap() const
Definition:
fast_marching.hpp:81
CV_EXPORTS_W bool solve(InputArray src1, InputArray src2, OutputArray dst, int flags=DECOMP_LU)
Solves one or more linear systems or least-squares problems.
CV_EXPORTS_W void inpaint(InputArray src, InputArray inpaintMask, OutputArray dst, double inpaintRadius, int flags)
Restores the selected region in an image using the region neighborhood.
"black box" representation of the file storage associated with a file on disk.
Definition:
aruco.hpp:75