mirror of
https://github.com/storytold/LiveScan3D.git
synced 2026-10-18 00:32:59 +00:00
Moved to Visual Studio 2015, OpenCV 3.2.0, x64
This commit is contained in:
@@ -40,28 +40,44 @@
|
||||
//
|
||||
//M*/
|
||||
|
||||
#ifndef __OPENCV_VIDEOSTAB_FAST_MARCHING_HPP__
|
||||
#define __OPENCV_VIDEOSTAB_FAST_MARCHING_HPP__
|
||||
#ifndef OPENCV_VIDEOSTAB_FAST_MARCHING_HPP
|
||||
#define OPENCV_VIDEOSTAB_FAST_MARCHING_HPP
|
||||
|
||||
#include <cmath>
|
||||
#include <queue>
|
||||
#include <algorithm>
|
||||
#include "opencv2/core/core.hpp"
|
||||
#include "opencv2/core.hpp"
|
||||
|
||||
namespace cv
|
||||
{
|
||||
namespace videostab
|
||||
{
|
||||
|
||||
// See http://iwi.eldoc.ub.rug.nl/FILES/root/2004/JGraphToolsTelea/2004JGraphToolsTelea.pdf
|
||||
//! @addtogroup videostab_marching
|
||||
//! @{
|
||||
|
||||
/** @brief Describes the Fast Marching Method implementation.
|
||||
|
||||
See http://iwi.eldoc.ub.rug.nl/FILES/root/2004/JGraphToolsTelea/2004JGraphToolsTelea.pdf
|
||||
*/
|
||||
class CV_EXPORTS FastMarchingMethod
|
||||
{
|
||||
public:
|
||||
FastMarchingMethod() : inf_(1e6f) {}
|
||||
|
||||
/** @brief Template method that runs the Fast Marching Method.
|
||||
|
||||
@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).
|
||||
@return Inpainting functor.
|
||||
*/
|
||||
template <typename Inpaint>
|
||||
Inpaint run(const Mat &mask, Inpaint inpaint);
|
||||
|
||||
/**
|
||||
@return Distance map that's created during working of the method.
|
||||
*/
|
||||
Mat distanceMap() const { return dist_; }
|
||||
|
||||
private:
|
||||
@@ -95,6 +111,8 @@ private:
|
||||
int size_; // narrow band size
|
||||
};
|
||||
|
||||
//! @}
|
||||
|
||||
} // namespace videostab
|
||||
} // namespace cv
|
||||
|
||||
|
||||
Reference in New Issue
Block a user