double minDistance(Point A, Point B, Point E);
double lineLength(Point p1, Point p2);
void findBaseLine(Mat src, Point& A, Point& B, double max_a=1.0);
void findTriangle(Mat src, Point A, Point B, Point2f (&triangle)[3], double& line_len);

vector<cv::Point> findHighestWhitePixels(int img_height, vector<int> vector_of_heights, float min_val_height=0.7);
Mat createMapOfMaxHeights(Mat src, vector<int>& vector_of_heights);