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.
#ifndef __OPENCV_ADAS_ACFFEATURE_HPP__
#define __OPENCV_ADAS_ACFFEATURE_HPP__
#include <opencv2/core.hpp>
#include <vector>
namespace cv
{
namespace adas
......@@ -49,14 +52,12 @@ namespace adas
/* 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>
computeChannels(const Mat& image);
void computeChannels(cv::InputArray image, cv::OutputArrayOfArrays channels);
class ACFFeatureEvaluator
{
......@@ -65,7 +66,7 @@ public:
ACFFeatureEvaluator(const std::vector<Point>& features);
/* Set channels for feature evaluation */
void setChannels(const std::vector<Mat>& channels);
void setChannels(cv::InputArrayOfArrays channels);
/* Set window position */
void setPosition(Size position);
......@@ -78,13 +79,13 @@ public:
Returns matrix-column of features
*/
Mat evaluateAll() const;
void evaluateAll(cv::OutputArray) const;
private:
/* Features to evaluate */
std::vector<Point> features_;
/* Channels for feature evaluation */
std::vector<Mat> channels;
std::vector<cv::Mat> channels;
/* Channels window 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