merged ICFPreprocessor and Channels -> ChannelFeatureBuilder

This commit is contained in:
marina.kolpakova
2013-01-29 16:55:01 +04:00
parent 49ec664238
commit f3227c3f1a
10 changed files with 151 additions and 241 deletions

View File

@@ -51,11 +51,12 @@ sft::ICFFeaturePool::ICFFeaturePool(cv::Size m, int n) : FeaturePool(), model(m)
{
CV_Assert(m != cv::Size() && n > 0);
fill(nfeatures);
builder = cv::ChannelFeatureBuilder::create();
}
void sft::ICFFeaturePool::preprocess(cv::InputArray frame, cv::OutputArray integrals) const
{
preprocessor.apply(frame, integrals);
(*builder)(frame, integrals);
}
float sft::ICFFeaturePool::apply(int fi, int si, const Mat& integrals) const

View File

@@ -119,7 +119,7 @@ private:
static const unsigned int seed = 0;
cv::ICFPreprocessor preprocessor;
cv::Ptr<cv::ChannelFeatureBuilder> builder;
enum { N_CHANNELS = 10 };
};