33 lines
1005 B
C++
33 lines
1005 B
C++
#ifndef _OTB_TRISKELE_SD_ATTRIBUTES_HPP
|
|
#define _OTB_TRISKELE_SD_ATTRIBUTES_HPP
|
|
|
|
#include <boost/chrono.hpp>
|
|
|
|
#include "triskeleDebug.hpp"
|
|
#include "triskeleBase.hpp"
|
|
#include "CompAttribute.hpp"
|
|
#include "Attributes/AreaAttributes.hpp"
|
|
|
|
namespace otb {
|
|
namespace triskele {
|
|
|
|
/*! Fonction non monotonne, globalement croissante. */
|
|
class SDAttributes : public CompAttribute<double> {
|
|
public:
|
|
inline SDAttributes (const Tree &tree, const AreaAttributes &areaAttributes);
|
|
inline ~SDAttributes ();
|
|
virtual inline ostream &print (ostream &out) const { CompAttribute::print (out, "sd"); return out; }
|
|
|
|
template<typename PixelT>
|
|
inline void cut (vector<vector<PixelT> > &allBands, const AttributeProfiles<PixelT> &attributeProfiles,
|
|
const vector<double> &thresholds) const;
|
|
protected:
|
|
inline void compute (const AreaAttributes &areaAttributes);
|
|
};
|
|
|
|
#include "SDAttributes.tpp"
|
|
} // triskele
|
|
} // otb
|
|
|
|
#endif // _OTB_TRISKELE_SD_ATTRIBUTES_HPP
|