From 4f161937bab7bca5fba93c18531f145ee9f07d38 Mon Sep 17 00:00:00 2001 From: Vlad Shakhuro Date: Tue, 10 Jun 2014 16:40:24 +0400 Subject: [PATCH] Fix interface for acf feature --- apps/icf/acffeature.hpp | 18 ++++++++---------- 1 file changed, 8 insertions(+), 10 deletions(-) diff --git a/apps/icf/acffeature.hpp b/apps/icf/acffeature.hpp index e993e8aa4..82ad9635a 100644 --- a/apps/icf/acffeature.hpp +++ b/apps/icf/acffeature.hpp @@ -57,16 +57,16 @@ namespace adas channels — output array for computed channels */ -void computeChannels(cv::InputArray image, cv::OutputArrayOfArrays channels); +void computeChannels(InputArray image, OutputArrayOfArrays channels); class ACFFeatureEvaluator { public: /* Construct evaluator, set features to evaluate */ - ACFFeatureEvaluator(const std::vector& features); + ACFFeatureEvaluator(const std::vector& features); /* Set channels for feature evaluation */ - void setChannels(cv::InputArrayOfArrays channels); + void setChannels(InputArrayOfArrays channels); /* Set window position */ void setPosition(Size position); @@ -79,13 +79,13 @@ public: Returns matrix-column of features */ - void evaluateAll(cv::OutputArray) const; + void evaluateAll(OutputArray feature_values) const; private: /* Features to evaluate */ - std::vector features_; + std::vector features_; /* Channels for feature evaluation */ - std::vector channels; + std::vector channels_; /* Channels window position */ Size position_; }; @@ -97,12 +97,10 @@ private: count — number of features to generate. Max number of features is min(count, # possible distinct features) - seed — random number generator initializer - Returns vector of distinct acf features */ -std::vector -generateFeatures(Size window_size, size_t count = UINT_MAX, int seed = 0); +std::vector +generateFeatures(Size window_size, int count = INT_MAX); } /* namespace adas */ } /* namespace cv */