DGtal 2.1.0
Loading...
Searching...
No Matches
testDigitalSetToCellularGridConverter Class Reference

Public Member Functions

 testDigitalSetToCellularGridConverter ()
 
bool extractCells ()
 

Private Types

typedef Flower2D< SpaceMyEuclideanShape
 
typedef map< Cell, CubicalCellDataMap
 
typedef CubicalComplex< KSpace, MapCC
 
typedef GaussDigitizer< Space, MyEuclideanShapeMyGaussDigitizer
 

Private Attributes

KSpace K
 
MyGaussDigitizer digShape
 

Detailed Description

Definition at line 53 of file testDigitalSetToCellularGridConverter.cpp.

Member Typedef Documentation

◆ CC

◆ Map

◆ MyEuclideanShape

◆ MyGaussDigitizer

Constructor & Destructor Documentation

◆ testDigitalSetToCellularGridConverter()

testDigitalSetToCellularGridConverter::testDigitalSetToCellularGridConverter ( )
inline

Definition at line 63 of file testDigitalSetToCellularGridConverter.cpp.

63{}

Member Function Documentation

◆ extractCells()

bool testDigitalSetToCellularGridConverter::extractCells ( )
inline

Definition at line 64 of file testDigitalSetToCellularGridConverter.cpp.

65 {
66 MyEuclideanShape shape( RealPoint( 0.0, 0.0 ), 16, 5, 5, M_PI_2/2. );
67 digShape.attach( shape );
68 digShape.init ( shape.getLowerBound(), shape.getUpperBound(), 1.0 );
69 Domain domainShape = digShape.getDomain();
70 K.init ( domainShape.lowerBound(), domainShape.upperBound(), true );
71 DigitalSet aSet ( domainShape );
73
74 CC complex ( K );
75 complex.construct < DigitalSet > ( aSet );
76 return true;
77 }
Aim: A wrapper class around a STL associative container for storing sets of digital points within som...
void attach(ConstAlias< EuclideanShape > shape)
void init(const RealPoint &xLow, const RealPoint &xUp, typename RealVector::Component gridStep)
Domain getDomain() const
const Point & lowerBound() const
const Point & upperBound() const
bool init(const Point &lower, const Point &upper, bool isClosed)
Specifies the upper and lower bounds for the maximal cells in this space.
static void digitalShaper(TDigitalSet &aSet, const TShapeFunctor &aFunctor)
Space::RealPoint RealPoint
Definition StdDefs.h:97
CubicalComplex< KSpace, Map > CC

References DGtal::GaussDigitizer< TSpace, TEuclideanShape >::attach(), DGtal::Shapes< TDomain >::digitalShaper(), digShape, DGtal::GaussDigitizer< TSpace, TEuclideanShape >::getDomain(), DGtal::KhalimskySpaceND< dim, TInteger >::init(), DGtal::GaussDigitizer< TSpace, TEuclideanShape >::init(), K, DGtal::HyperRectDomain< TSpace >::lowerBound(), and DGtal::HyperRectDomain< TSpace >::upperBound().

Field Documentation

◆ digShape

MyGaussDigitizer testDigitalSetToCellularGridConverter::digShape
private

Definition at line 61 of file testDigitalSetToCellularGridConverter.cpp.

Referenced by extractCells().

◆ K

KSpace testDigitalSetToCellularGridConverter::K
private

Definition at line 60 of file testDigitalSetToCellularGridConverter.cpp.

Referenced by extractCells().


The documentation for this class was generated from the following file: