Commit 42f63555 authored by Vlad Shakhuro's avatar Vlad Shakhuro

Fix acf feature evaluator types

parent dda5b885
...@@ -42,6 +42,9 @@ the use of this software, even if advised of the possibility of such damage. ...@@ -42,6 +42,9 @@ the use of this software, even if advised of the possibility of such damage.
#ifndef __OPENCV_ADAS_ACFFEATURE_HPP__ #ifndef __OPENCV_ADAS_ACFFEATURE_HPP__
#define __OPENCV_ADAS_ACFFEATURE_HPP__ #define __OPENCV_ADAS_ACFFEATURE_HPP__
#include <opencv2/core.hpp>
#include <vector>
namespace cv namespace cv
{ {
namespace adas namespace adas
...@@ -49,14 +52,12 @@ namespace adas ...@@ -49,14 +52,12 @@ namespace adas
/* Compute channel pyramid for acf features /* Compute channel pyramid for acf features
image — image, for which pyramid should be computed image — image, for which channels should be computed
params — pyramid computing parameters channels — output array for computed channels
Returns vector of computed channels
*/ */
std::vector<Mat> void computeChannels(cv::InputArray image, cv::OutputArrayOfArrays channels);
computeChannels(const Mat& image);
class ACFFeatureEvaluator class ACFFeatureEvaluator
{ {
...@@ -65,7 +66,7 @@ public: ...@@ -65,7 +66,7 @@ public:
ACFFeatureEvaluator(const std::vector<Point>& features); ACFFeatureEvaluator(const std::vector<Point>& features);
/* Set channels for feature evaluation */ /* Set channels for feature evaluation */
void setChannels(const std::vector<Mat>& channels); void setChannels(cv::InputArrayOfArrays channels);
/* Set window position */ /* Set window position */
void setPosition(Size position); void setPosition(Size position);
...@@ -78,13 +79,13 @@ public: ...@@ -78,13 +79,13 @@ public:
Returns matrix-column of features Returns matrix-column of features
*/ */
Mat evaluateAll() const; void evaluateAll(cv::OutputArray) const;
private: private:
/* Features to evaluate */ /* Features to evaluate */
std::vector<Point> features_; std::vector<Point> features_;
/* Channels for feature evaluation */ /* Channels for feature evaluation */
std::vector<Mat> channels; std::vector<cv::Mat> channels;
/* Channels window position */ /* Channels window position */
Size position_; Size position_;
}; };
......
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