triskele/include/Attributes/AverageAttributes.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

31 lines
928 B
C++

#ifndef _OTB_TRISKELE_AVERAGE_ATTRIBUTES_HPP
#define _OTB_TRISKELE_AVERAGE_ATTRIBUTES_HPP
#include <boost/chrono.hpp>
#include "triskeleBase.hpp"
#include "CompAttribute.hpp"
#include "Attributes/AreaAttributes.hpp"
#include "Attributes/XYAttributes.hpp"
namespace otb {
namespace triskele {
class AverageAttributes : public CompAttribute<double> {
public:
template<typename PixelT>
inline AverageAttributes (const Tree &tree, const Raster<PixelT> &raster, const AreaAttributes &areaAttributes);
inline ~AverageAttributes ();
virtual inline ostream &print (ostream &out) const { CompAttribute::print (out, "average"); return out; }
protected:
template<typename PixelT>
inline void compute (const Raster<PixelT> &raster, const AreaAttributes &areaAttributes);
};
#include "AverageAttributes.tpp"
} // triskele
} // otb
#endif // _OTB_TRISKELE_AVERAGE_ATTRIBUTES_HPP