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;
23 Vector projected = vector;
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]);
50 Vector projected = vector;
52 if (projected.norm() == 0)
return false;
103 template <
typename ImageType>
106 typedef typename ImageType::Point
Point;
117 const Point point = point_+
shift;
118 if (!
image->domain().isInside(point))
return false;
119 return (*
image)(point) > 0;
TorusShape(const Matrix &transform_, const double &radius_large_, const double &radius_small_)
bool operator()(const Point &point) const
bool operator()(const Point &point) const
CapsuleShape(const double &radius_, const double &length_, const RealPoint &direction_)
bool operator()(const Point &point) const
ImageShape(const ImageType *image_, const Point &shift_)
bool operator()(const Point &point) const
RoundedCubeShape(const Matrix &transform_, const double &size_, const double &radius_)
double norm(const NormType type=L_2) const
bool operator()(const Point &point) const
SphereShape(const double &radius_, const RealPoint ¢er_)
DGtal::Z3i::RealPoint RealPoint
DGtal::Z3i::RealPoint RealPoint
DGtal::Z3i::RealPoint RealPoint
Component dot(const Self &v) const
PlaneShape(const RealPoint &normal_)
bool operator()(const Point &point_) const