DGtal 2.0.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 }
static void digitalShaper(TDigitalSet &aSet, const TShapeFunctor &aFunctor)
Space::RealPoint RealPoint
Definition StdDefs.h:97
DigitalSetSelector< Domain, BIG_DS+HIGH_BEL_DS >::Type DigitalSet
Definition StdDefs.h:100
HyperRectDomain< Space > Domain
Definition StdDefs.h:99

References DGtal::Shapes< TDomain >::digitalShaper(), digShape, DGtal::Flower2D< TSpace >::getLowerBound(), DGtal::Flower2D< TSpace >::getUpperBound(), and K.

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: