imutils-cpp
Loading...
Searching...
No Matches
perspective.h
Go to the documentation of this file.
1//
2// Created by jonsnow on 09/02/22.
3//
4
5#pragma once
6
7#include <opencv2/core/mat.hpp>
8#include "vector"
9
10typedef std::vector<cv::Point2f> vectorpair;
11
13/***************************************************************************/
22private:
28 static vectorpair orderPoints(vectorpair points);
29
30public:
31
38 static cv::Mat fourPointTransformation(cv::Mat &img, vectorpair points);
39
40};
The class helps to implement four point transformation on a given image.
Definition: perspective.h:21
static cv::Mat fourPointTransformation(cv::Mat &img, vectorpair points)
Applying four point transformation to the image.
Definition: perspective.cpp:32