triskele/include/Attributes/WeightAttributes.hpp
2018-08-06 10:53:08 +02:00

32 lines
999 B
C++

#include "CompAttribute.hpp"
#ifndef _OTB_TRISKELE_WEIGHT_ATTRIBUTES_HPP
#define _OTB_TRISKELE_WEIGHT_ATTRIBUTES_HPP
#include <boost/chrono.hpp>
#include "triskeleBase.hpp"
namespace otb {
namespace triskele {
/*! Fonction monotonne strict croissante ou décroissante en fonction de la fonction de poid. */
template<typename WeightT>
class WeightAttributes : public CompAttribute<WeightT> {
public:
inline WeightAttributes (const Tree &tree, const bool &decr);
inline ~WeightAttributes ();
inline void setWeightBounds (Tree &tree);
template<typename PixelT>
inline void cut (vector<vector<PixelT> > &allBands, const AttributeProfiles<PixelT> &attributeProfiles,
const vector<WeightT> &thresholds) const;
virtual inline ostream &print (ostream &out) const { CompAttribute<WeightT>::print (out, "weight"); return out; }
};
#include "WeightAttributes.tpp"
} // triskele
} // otb
#endif // _OTB_TRISKELE_WEIGHT_ATTRIBUTES_HPP