Darwin  1.10(beta)
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
drwnTextonFilterBank.h
1 /*****************************************************************************
2 ** DARWIN: A FRAMEWORK FOR MACHINE LEARNING RESEARCH AND DEVELOPMENT
3 ** Distributed under the terms of the BSD license (see the LICENSE file)
4 ** Copyright (c) 2007-2015, Stephen Gould
5 ** All rights reserved.
6 **
7 ******************************************************************************
8 ** FILENAME: drwnTextonFilterBank.h
9 ** AUTHOR(S): Stephen Gould <stephen.gould@anu.edu.au>
10 **
11 *****************************************************************************/
12 
13 #pragma once
14 
15 #include <vector>
16 
17 #include "cv.h"
18 
19 // drwnTextonFilterBank -----------------------------------------------------
20 
35 
37  protected:
38  double _kappa;
39 
40  public:
41  static const int NUM_FILTERS = 17;
42 
44  drwnTextonFilterBank(double k = 1.0);
45  virtual ~drwnTextonFilterBank();
46 
50  void filter(const cv::Mat& img, std::vector<cv::Mat>& response) const;
51 };
static const int NUM_FILTERS
number of filters in the filterbank
Definition: drwnTextonFilterBank.h:41
void filter(const cv::Mat &img, std::vector< cv::Mat > &response) const
Filtering function. The caller must provide a vector of CV32F destination matrices. The source image should be a 3-channel RGB color image (it is automatically converted to CIELab).
Definition: drwnTextonFilterBank.cpp:34
drwnTextonFilterBank(double k=1.0)
construct a filterbank with bandwidth k
Definition: drwnTextonFilterBank.cpp:23
double _kappa
base filter bandwidth
Definition: drwnTextonFilterBank.h:38
Implements a 17-dimensional filter bank.
Definition: drwnTextonFilterBank.h:36