#pragma once #include struct HRLE { int row = -1; int startColumn = -1; int length = 0; }; struct VRLE { int col = -1; int startRow = -1; int length = 0; }; using HRegion = std::vector; using VRegion = std::vector; struct Template { cv::Mat img; HRegion hRegion; VRegion vRegion; cv::RotatedRect rect; double mean = 0; double normal = 0; double invArea = 0; }; struct Layer { double angleStep = 0; std::vector