Jafar
|
00001 #ifndef _JAFAR_TEXTURES_TEXTURES_ATTRIBUTES_HPP_ 00002 #define _JAFAR_TEXTURES_TEXTURES_ATTRIBUTES_HPP_ 00003 00004 #include "image/Image.hpp" 00005 #include <kernel/jafarMacro.hpp> 00006 00007 #include "textures/libtexture.h" 00008 00009 namespace jafar { 00010 namespace textures { 00015 class Attributes { 00016 public: 00020 inline double mean() { return at(0); } 00024 inline double variance() { return at(1); } 00028 inline double energy() { return at(2); } 00032 inline double correlation() { return at(3); } 00036 inline double entropy() { return at(4); } 00040 inline double contrast() { return at(5); } 00044 inline double homogeneity() { return at(6); } 00048 inline double at(int i) { 00049 JFR_PRECOND(i < TX_NB_ATTRIBUTS, "Index out of bounds"); 00050 return m_attributes[i]; } 00051 inline double operator[](int i){ return at(i); } 00052 void print(); 00053 protected: 00054 double m_attributes[TX_NB_ATTRIBUTS]; 00055 }; 00061 class CoOccuringAttributes : public Attributes { 00062 public: 00063 CoOccuringAttributes(const jafar::image::Image& image); 00064 }; 00070 class DiffSumAttributes : public Attributes { 00071 public: 00072 DiffSumAttributes(const jafar::image::Image& image); 00073 }; 00074 } 00075 } 00076 00077 00078 #endif
Generated on Wed Oct 15 2014 00:37:29 for Jafar by doxygen 1.7.6.1 |