DGtal 2.1.0
Loading...
Searching...
No Matches
Objects2D Struct Reference

Public Types

using Object8_4 = DGtal::Z2i::Object8_4
 
using Object4_8 = DGtal::Z2i::Object4_8
 

Public Member Functions

 Objects2D ()
 

Data Fields

Object8_4 obj8_4
 
Object4_8 obj4_8
 

Detailed Description

Definition at line 201 of file testNeighborhoodConfigurations.cpp.

Member Typedef Documentation

◆ Object4_8

◆ Object8_4

Constructor & Destructor Documentation

◆ Objects2D()

Objects2D::Objects2D ( )
inline

Definition at line 207 of file testNeighborhoodConfigurations.cpp.

208 {
209 using namespace DGtal;
210 using namespace Z2i;
211 Point p1( -17, -17 );
212 Point p2( 17, 17 );
213 Domain domain( p1, p2 );
214 DigitalSet shape_set( domain );
215 Shapes<Domain>::addNorm1Ball( shape_set, Point( -10, -8 ), 7 );
216 Shapes<Domain>::addNorm1Ball( shape_set, Point( 10, 8 ), 7 );
217 Shapes<Domain>::addNorm1Ball( shape_set, Point( 3, 0 ), 6 );
218 Shapes<Domain>::addNorm1Ball( shape_set, Point( 0, -3 ), 7 );
219 Shapes<Domain>::addNorm1Ball( shape_set, Point( -10, 0 ), 6 );
220 Shapes<Domain>::addNorm1Ball( shape_set, Point( -8, 8 ), 6 );
221 Shapes<Domain>::addNorm1Ball( shape_set, Point( 0, 9 ), 6 );
222 Shapes<Domain>::addNorm1Ball( shape_set, Point( 15, -2 ), 6 );
223 Shapes<Domain>::addNorm1Ball( shape_set, Point( 12, -10 ), 4 );
224 shape_set.erase( Point( 5, 0 ) );
225 shape_set.erase( Point( -1, -2 ) );
226 obj8_4 = Object8_4( dt8_4, shape_set );
227 obj4_8 = Object4_8( dt4_8, shape_set );
228 }
Aim: A wrapper class around a STL associative container for storing sets of digital points within som...
static void addNorm1Ball(TDigitalSet &aSet, const Point &aCenter, UnsignedInteger aRadius)
DGtal is the top-level namespace which contains all DGtal functions and types.
DGtal::Z2i::Object8_4 Object8_4
DGtal::Z2i::Object4_8 Object4_8
MyPointD Point
Domain domain

References DGtal::Shapes< TDomain >::addNorm1Ball(), domain, DGtal::DigitalSetByAssociativeContainer< TDomain, TContainer >::erase(), obj4_8, and obj8_4.

Field Documentation

◆ obj4_8

Object4_8 Objects2D::obj4_8

Definition at line 205 of file testNeighborhoodConfigurations.cpp.

Referenced by Objects2D().

◆ obj8_4

Object8_4 Objects2D::obj8_4

Definition at line 204 of file testNeighborhoodConfigurations.cpp.

Referenced by Objects2D().


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