triskele/include/AttributeProfiles.hpp
Git Merciol 7722357a1b nouveau fichier : data/levelThresholds.txt
modifié :         include/Appli/Option.hpp
	modifié :         include/AttributeProfiles.hpp
	modifié :         include/AttributeProfiles.tpp
	modifié :         include/Attributes/AverageAttributes.hpp
	modifié :         src/Appli/Option.cpp
	modifié :         src/apGenerator.cpp
2018-04-20 16:27:52 +02:00

40 lines
984 B
C++

#ifndef _OTB_TRISKELE_ATTRIBUTE_PROFILES_HPP
#define _OTB_TRISKELE_ATTRIBUTE_PROFILES_HPP
#include "Tree.hpp"
namespace otb {
namespace triskele {
template<typename PixelT>
class AttributeProfiles {
public:
inline AttributeProfiles (const Tree &tree);
inline ~AttributeProfiles ();
inline void updateTranscient ();
inline PixelT *getValues ();
inline const PixelT *getValues () const;
template<typename WeightT>
inline void setValues (const PixelT *pixels, const WeightT *weights);
protected:
const Tree &tree;
DimNodeId leafCount;
vector<PixelT> values;
inline void free ();
inline void book (const DimImg &leafCount);
ostream &print (ostream &out) const;
friend ostream &operator << (ostream& out, const AttributeProfiles &ap) { return ap.print (out); }
};
#include "AttributeProfiles.tpp"
} // triskele
} // otb
#endif // _OTB_TRISKELE_ATTRIBUTE_PROFILES_HPP