Fix acf feature evaluator types

pull/21/head
Vlad Shakhuro 11 years ago
parent dda5b88589
commit 42f6355530
  1. 17
      apps/icf/acffeature.hpp

@ -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
/* 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:
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:
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_;
}; };

Loading…
Cancel
Save