47 CHArea(
const std::pair<std::string, std::vector<Eigen::Vector3f>>& points) :
CHFeature(points)
74 const CHArea* casted =
dynamic_cast<const CHArea*
>(&other);
78 return std::pow(m_area - casted->
area(), 2.0);
82 return std::numeric_limits<double>::max();
87 serialize(
const ObjectSerializerBasePtr& serializer,
const Ice::Current&)
const
97 featureObj->setDouble(
m_name, m_area);
101 featureObj = obj->createElement();
102 featureObj->setDouble(
m_name, m_area);
108 deserialize(
const ObjectSerializerBasePtr& serializer,
const Ice::Current&)
113 m_area = featureObj->getDouble(
m_name);
116 virtual std::ostream&
119 return out << m_area;
const std::string FEATURE_FIELD_NAME
std::shared_ptr< Feature > FeaturePtr
double compare(const Feature &other) const
FeaturePtr calculate(const TaggedPoints &points)
FeaturePtr calculate(const Points &points)
CHArea(const std::vector< Eigen::Vector3f > &points)
CHArea(const std::pair< std::string, std::vector< Eigen::Vector3f > > &points)
virtual void serialize(const ObjectSerializerBasePtr &serializer, const Ice::Current &) const
virtual void deserialize(const ObjectSerializerBasePtr &serializer, const Ice::Current &)
virtual std::ostream & output(std::ostream &out) const
ConvexHull< Eigen::Vector3f >::type m_convexHull
std::vector< Eigen::Vector3f > Points
std::shared_ptr< Feature > FeaturePtr
std::pair< std::string, Points > TaggedPoints
IceInternal::Handle< AbstractObjectSerializer > AbstractObjectSerializerPtr