modifié : include/Attributes/SDAttributes.hpp modifié : include/Attributes/XYAttributes.hpp modifié : src/testMain.cpp
28 lines
718 B
C++
28 lines
718 B
C++
#ifndef _OTB_TRISKELE_XY_ATTRIBUTES_HPP
|
|
#define _OTB_TRISKELE_XY_ATTRIBUTES_HPP
|
|
|
|
#include "triskeleBase.hpp"
|
|
#include "CompAttribute.hpp"
|
|
#include "Attributes/AreaAttributes.hpp"
|
|
|
|
namespace otb {
|
|
namespace triskele {
|
|
|
|
struct AverageXY {
|
|
double x, y;
|
|
inline AverageXY () : x(0), y(0) {}
|
|
};
|
|
class XYAttributes : public CompAttributeC<AverageXY> {
|
|
public:
|
|
inline XYAttributes (const Tree &tree, const AreaAttributes &areaAttributes, const unsigned int &treeCoreCount);
|
|
inline ~XYAttributes ();
|
|
protected:
|
|
inline void compute (const AreaAttributes &areaAttributes);
|
|
};
|
|
|
|
#include "XYAttributes.tpp"
|
|
} // triskele
|
|
} // otb
|
|
|
|
#endif // _OTB_TRISKELE_XY_ATTRIBUTES_HPP
|