3 #include <DGtal/base/Common.h>
4 #include <DGtal/math/linalg/EigenSupport.h>
19 const Vector vector_(point[0], point[1], point[2]);
21 vector = vector.cwiseAbs();
22 if (vector.maxCoeff() <=
size-
radius)
return true;
24 for (
int kk=0; kk<projected.size(); kk++)
27 return (vector-projected).norm() <=
radius;
48 const Vector vector_(point[0], point[1], point[2]);
52 if (projected.norm() == 0)
return false;
103 template <
typename ImageType>
106 typedef typename ImageType::Point
Point;
118 if (!
image->domain().isInside(point))
return false;
119 return (*
image)(point) > 0;
Component dot(const Self &v) const
double norm(const NormType type=L_2) const
CapsuleShape(const double &radius_, const double &length_, const RealPoint &direction_)
bool operator()(const Point &point) const
DGtal::Z3i::RealPoint RealPoint
ImageShape(const ImageType *image_, const Point &shift_)
bool operator()(const Point &point_) const
DGtal::Z3i::RealPoint RealPoint
PlaneShape(const RealPoint &normal_)
bool operator()(const Point &point) const
bool operator()(const Point &point) const
RoundedCubeShape(const Matrix &transform_, const double &size_, const double &radius_)
DGtal::Z3i::RealPoint RealPoint
SphereShape(const double &radius_, const RealPoint ¢er_)
bool operator()(const Point &point) const
bool operator()(const Point &point) const
TorusShape(const Matrix &transform_, const double &radius_large_, const double &radius_small_)