Direct Graphical Models  v.1.7.0
NDVI.h
1 // NDVI feature extraction class interface
2 // Written by Sergey G. Kosov in 2015 for Project X
3 #pragma once
4 
5 #include "ILocalFeatureExtractor.h"
6 
7 namespace DirectGraphicalModels { namespace fex
8 {
9  // ================================ NDVI Class ==============================
15  {
16  public:
21  DllExport CNDVI(const Mat &img) : ILocalFeatureExtractor(img) {}
22  DllExport virtual ~CNDVI(void) {}
23 
24  DllExport virtual Mat get(void) const { return get(m_img); }
25 
43  DllExport static Mat get(const Mat &img, byte midPoint = 127);
44  };
45 } }
NDVI (normalized difference vegetation index) feature extraction class.
Definition: NDVI.h:14
CNDVI(const Mat &img)
Constructor.
Definition: NDVI.h:21
Interface class for local feature extraction algorithms.
const Mat m_img
Container for the image, from which the features are to be extracted.