31 lines
872 B
C++
31 lines
872 B
C++
#ifndef _OTB_TRISKELE_AREA_ATTRIBUTES_HPP
|
|
#define _OTB_TRISKELE_AREA_ATTRIBUTES_HPP
|
|
|
|
#include <boost/chrono.hpp>
|
|
|
|
#include "triskeleBase.hpp"
|
|
#include "CompAttribute.hpp"
|
|
|
|
namespace otb {
|
|
namespace triskele {
|
|
|
|
/*! Fonction monotonne strictement croissante. */
|
|
class AreaAttributes : public CompAttribute<DimImg> {
|
|
public:
|
|
inline AreaAttributes (const Tree &tree);
|
|
inline ~AreaAttributes ();
|
|
|
|
template<typename PixelT>
|
|
inline void cut (vector<vector<PixelT> > &allBands, const AttributeProfiles<PixelT> &attributeProfiles,
|
|
const vector<DimImg> &thresholds) const;
|
|
virtual inline ostream &print (ostream &out) const { CompAttribute::print (out, "area"); return out; }
|
|
protected:
|
|
inline void compute ();
|
|
};
|
|
|
|
#include "AreaAttributes.tpp"
|
|
} // triskele
|
|
} // otb
|
|
|
|
#endif // _OTB_TRISKELE_AREA_ATTRIBUTES_HPP
|