Commit 22b165ca authored by Vlad Shakhuro's avatar Vlad Shakhuro

Use cv::Point instead of ACFFeature

parent 43061d75
...@@ -47,27 +47,6 @@ namespace cv ...@@ -47,27 +47,6 @@ namespace cv
namespace adas namespace adas
{ {
class ACFFeature
{
public:
/* Initialize feature with zero row and col */
ACFFeature();
/* Initialize feature with given row and col */
ACFFeature(int row, int col);
private:
/* Feature row */
int row_;
/* Feature col */
int col_;
};
/* Save ACFFeature to FileStorage */
FileStorage& operator<< (FileStorage& out, const ACFFeature& feature);
/* Load ACFFeature from FileStorage */
FileStorage& operator>> (FileStorage& in, ACFFeature& feature);
/* Compute channel pyramid for acf features /* Compute channel pyramid for acf features
image — image, for which pyramid should be computed image — image, for which pyramid should be computed
...@@ -85,7 +64,7 @@ class ACFFeatureEvaluator ...@@ -85,7 +64,7 @@ class ACFFeatureEvaluator
{ {
public: public:
/* Construct evaluator, set features to evaluate */ /* Construct evaluator, set features to evaluate */
ACFFeatureEvaluator(const std::vector<ACFFeature>& features); ACFFeatureEvaluator(const std::vector<Point>& features);
/* Set channels for feature evaluation */ /* Set channels for feature evaluation */
void setChannels(const std::vector<Mat_<int>>& channels); void setChannels(const std::vector<Mat_<int>>& channels);
...@@ -105,7 +84,7 @@ public: ...@@ -105,7 +84,7 @@ public:
private: private:
/* Features to evaluate */ /* Features to evaluate */
std::vector<ACFFeature> features_; std::vector<Point> features_;
/* Channels for feature evaluation */ /* Channels for feature evaluation */
std::vector<Mat_<int>> channels std::vector<Mat_<int>> channels
/* Channels window position */ /* Channels window position */
...@@ -123,7 +102,7 @@ private: ...@@ -123,7 +102,7 @@ private:
Returns vector of distinct acf features Returns vector of distinct acf features
*/ */
std::vector<ACFFeature> std::vector<Point>
generateFeatures(Size window_size, size_t count = UINT_MAX, int seed = 0); generateFeatures(Size window_size, size_t count = UINT_MAX, int seed = 0);
} /* namespace adas */ } /* namespace adas */
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment