#ifndef __IMAGELOCATION_H__ #define __IMAGELOCATION_H__ #include #include #include #include #include #include "ImgLocateDryChemistry.h" class ImageLocation { public: ImageLocation(); virtual ~ImageLocation(); private: ImgLocateDryChemistry imgLocDryChemistry; int score; public: /* *be just used for all */ Mat& GetPaperImg(); /* *be just used for all */ double GetDefinition(); /* *be just used for ImageLocation14i */ int GetPaperColor();//RED, GREEN,BLUE int GetPaperItems();//14,12,11,10 int GetPaperLocLength();//2/3/0 /************************************************************************/ /*get the score of the location */ /************************************************************************/ int GetScore() { return score; } public: cv::Mat LocationProc(cv::Mat& image, cv::Rect roi, bool bDraw,cv::Scalar& paperParams, cv::Scalar& wbAvgRgb, std::vector& roiPositions, cv::Mat& rotRoiImage); }; #endif