mirror of
https://github.com/storytold/LiveScan3D.git
synced 2026-10-12 23:48:55 +00:00
Initial commit
This commit is contained in:
@@ -0,0 +1,49 @@
|
||||
// Copyright (C) 2015 Marek Kowalski (M.Kowalski@ire.pw.edu.pl), Jacek Naruniec (J.Naruniec@ire.pw.edu.pl)
|
||||
// License: MIT Software License See LICENSE.txt for the full license.
|
||||
|
||||
// If you use this software in your research, then please use the following citation:
|
||||
|
||||
// Kowalski, M.; Naruniec, J.; Daniluk, M.: "LiveScan3D: A Fast and Inexpensive 3D Data
|
||||
// Acquisition System for Multiple Kinect v2 Sensors". in 3D Vision (3DV), 2015 International Conference on, Lyon, France, 2015
|
||||
|
||||
// @INPROCEEDINGS{Kowalski15,
|
||||
// author={Kowalski, M. and Naruniec, J. and Daniluk, M.},
|
||||
// booktitle={3D Vision (3DV), 2015 International Conference on},
|
||||
// title={LiveScan3D: A Fast and Inexpensive 3D Data Acquisition System for Multiple Kinect v2 Sensors},
|
||||
// year={2015},
|
||||
// }
|
||||
#pragma once
|
||||
|
||||
#include "stdafx.h"
|
||||
#include <opencv2/opencv.hpp>
|
||||
#include "utils.h"
|
||||
#include "IMarker.h"
|
||||
|
||||
using namespace std;
|
||||
|
||||
class MarkerDetector : public IMarker
|
||||
{
|
||||
public:
|
||||
MarkerDetector();
|
||||
|
||||
bool GetMarker(RGB *img, int height, int width, MarkerInfo &marker);
|
||||
private:
|
||||
int nMarkerCorners;
|
||||
vector<cv::Point2f> vPts;
|
||||
|
||||
int nMinSize;
|
||||
int nMaxSize;
|
||||
int nThreshold;
|
||||
double dApproxPolyCoef;
|
||||
double dMarkerFrame;
|
||||
bool bDraw;
|
||||
|
||||
bool GetMarker(cv::Mat &img, MarkerInfo &marker);
|
||||
bool OrderCorners(vector<cv::Point2f> &corners);
|
||||
int GetCode(cv::Mat &img, vector<cv::Point2f> points, vector<cv::Point2f> corners);
|
||||
void CornersSubPix(vector<cv::Point2f> &corners, vector<cv::Point> contour, bool order);
|
||||
cv::Point2f GetIntersection(cv::Vec4f lin1, cv::Vec4f lin2);
|
||||
void GetMarkerPoints(vector<Point3f> &pts);
|
||||
void GetMarkerPointsForWarp(vector<cv::Point2f> &pts);
|
||||
double GetMarkerArea(MarkerInfo &marker);
|
||||
};
|
||||
Reference in New Issue
Block a user