-
Notifications
You must be signed in to change notification settings - Fork 1
/
createFourPointsForIPM.hpp
37 lines (32 loc) · 1.09 KB
/
createFourPointsForIPM.hpp
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
//
// createFourPointsForIPM.hpp
// HistogramSegmentation
//
// Created by Maitham Dib on 02/03/2016.
// Copyright © 2016 HelloOpenCV. All rights reserved.
//
#ifndef createFourPointsForIPM_hpp
#define createFourPointsForIPM_hpp
#include <stdio.h>
#include "matrixMethods.hpp"
struct trapeziumCoordinates{
Matrix point1,point2,point3,point4;
};
trapeziumCoordinates createFourPointsForIPM(const float vanishingPointXCoordinate, const float vanishingPointYCoordinate );
trapeziumCoordinates createFourPointsForIPMLeftLane(const float vanishingPointXCoordinate, const float vanishingPointYCoordinate);
trapeziumCoordinates createFourPointsForIPMRightLane(const float vanishingPointXCoordinate, const float vanishingPointYCoordinate);
struct cameraInfo{
float imageWidth_M;
float imageHeight_N;
double verticalAperture_fy;
double horizontalAperture_fx;
double principalPointX_u;
double principalPointY_v;
float cameraHeight;
float pitchAngle;
float yawAngle;
float rollAngle;
float imageWidth;
float imageHeight;
};
#endif /* createFourPointsForIPM_hpp */