DGtal  1.3.beta
StdDefs.h
1 
17 #pragma once
18 
32 #if defined(StdDefs_RECURSES)
33 #error Recursive header files inclusion detected in StdDefs.h
34 #else // defined(StdDefs_RECURSES)
35 
36 #define StdDefs_RECURSES
37 
38 #if !defined StdDefs_h
39 
40 #define StdDefs_h
41 
43 // Inclusions
44 #include <iostream>
45 #include "DGtal/base/Common.h"
46 #include "DGtal/kernel/SpaceND.h"
47 #include "DGtal/kernel/domains/HyperRectDomain.h"
48 #include "DGtal/kernel/sets/DigitalSetSelector.h"
49 #include "DGtal/topology/DigitalTopology.h"
50 #include "DGtal/topology/MetricAdjacency.h"
51 #include "DGtal/topology/Object.h"
52 #include "DGtal/topology/KhalimskySpaceND.h"
53 #include "DGtal/topology/KhalimskyPreSpaceND.h"
54 #include "DGtal/geometry/curves/GridCurve.h"
55 #include "DGtal/geometry/volumes/distance/ExactPredicateLpSeparableMetric.h"
56 #include "DGtal/geometry/volumes/distance/ExactPredicateLpPowerSeparableMetric.h"
58 
59 namespace DGtal
60 {
73  namespace Z2i {
76  typedef Space Z2;
78  typedef KSpace K2;
79  typedef KSpace::Cell Cell;
84  typedef KPreSpace KP2;
109 
110 
111  static const Adj4 adj4;
112  static const Adj8 adj8;
113  static const DT4_8 dt4_8 = DT4_8( adj4, adj8, JORDAN_DT );
114  static const DT8_4 dt8_4 = DT8_4( adj8, adj4, JORDAN_DT );
115 
117 
122 
123  static const L2Metric l2Metric;
124  static const L1Metric l1Metric;
127 
128  } // namespace Z2i
129 
142  namespace Z3i {
145  typedef Space Z3;
147  typedef KSpace K3;
153  typedef KPreSpace KP3;
190 
191  static const Adj6 adj6;
192  static const Adj18 adj18;
193  static const Adj26 adj26;
194  static const DT6_18 dt6_18 = DT6_18( adj6, adj18, JORDAN_DT );
195  static const DT18_6 dt18_6 = DT18_6( adj18, adj6, JORDAN_DT );
196  static const DT6_26 dt6_26 = DT6_26( adj6, adj26, JORDAN_DT );
197  static const DT26_6 dt26_6 = DT26_6( adj26, adj6, JORDAN_DT );
198 
203 
204  static const L2Metric l2Metric;
205  static const L1Metric l1Metric;
208 
209  } // namespace Z3i
210 
211 
212 
213 
214 } // namespace DGtal
215 
216 
217 // //
219 
220 #endif // !defined StdDefs_h
221 
222 #undef StdDefs_RECURSES
223 #endif // else defined(StdDefs_RECURSES)
DGtal::Z2i::KP2
KPreSpace KP2
Definition: StdDefs.h:84
DGtal::KhalimskyPreCell< dim, Integer >
DGtal::Z2i::dt8_4
static const DT8_4 dt8_4
Definition: StdDefs.h:114
DGtal::Z3i::DT6_26
DigitalTopology< Adj6, Adj26 > DT6_26
Definition: StdDefs.h:166
DGtal::Z3i::ComplementObject26_6
Object< DT26_6, DigitalSet >::ComplementObject ComplementObject26_6
Definition: StdDefs.h:187
DGtal::Z2i::SCells
KSpace::SCells SCells
Definition: StdDefs.h:82
DGtal::KhalimskySpaceND::SCells
AnyCellCollection< SCell > SCells
Definition: KhalimskySpaceND.h:440
DGtal::ExactPredicateLpPowerSeparableMetric
Aim: implements weighted separable l_p metrics with exact predicates.
Definition: ExactPredicateLpPowerSeparableMetric.h:87
DGtal::Z2i::PreCells
KPreSpace::Cells PreCells
Definition: StdDefs.h:87
DGtal::DigitalTopology
Aim: Represents a digital topology as a couple of adjacency relations.
Definition: DigitalTopology.h:95
DGtal::Z2i::SmallObject8_4
Object< DT8_4, DigitalSet >::SmallObject SmallObject8_4
Definition: StdDefs.h:107
DGtal::HyperRectDomain< Space >
DGtal::Z2i::Point
Space::Point Point
Definition: StdDefs.h:95
DGtal::Z3i::Integer
DGtal::int32_t Integer
Definition: StdDefs.h:143
DGtal::Z3i::PreCells
KPreSpace::Cells PreCells
Definition: StdDefs.h:156
DGtal::Z2i::Z2
Space Z2
Definition: StdDefs.h:76
DGtal::Z3i::DT26_6
DigitalTopology< Adj26, Adj6 > DT26_6
Definition: StdDefs.h:167
DGtal::Z3i::SCells
KSpace::SCells SCells
Definition: StdDefs.h:151
DGtal::Z2i::ComplementObject4_8
Object< DT4_8, DigitalSet >::ComplementObject ComplementObject4_8
Definition: StdDefs.h:102
DGtal::Z3i::adj6
static const Adj6 adj6
Definition: StdDefs.h:191
DGtal::Z2i::L2PowerMetric
ExactPredicateLpPowerSeparableMetric< Space, 2 > L2PowerMetric
Definition: StdDefs.h:120
DGtal::int32_t
boost::int32_t int32_t
signed 32-bit integer.
Definition: BasicTypes.h:72
DGtal::Z3i::dt26_6
static const DT26_6 dt26_6
Definition: StdDefs.h:197
DGtal::Z3i::adj18
static const Adj18 adj18
Definition: StdDefs.h:192
DGtal::Z3i::SmallObject6_18
Object< DT6_18, DigitalSet >::SmallObject SmallObject6_18
Definition: StdDefs.h:176
DGtal::Z3i::ComplementObject6_18
Object< DT6_18, DigitalSet >::ComplementObject ComplementObject6_18
Definition: StdDefs.h:175
DGtal::Z2i::SmallComplementObject8_4
Object< DT8_4, DigitalSet >::SmallComplementObject SmallComplementObject8_4
Definition: StdDefs.h:108
DGtal::KhalimskySpaceND::Cells
AnyCellCollection< Cell > Cells
Definition: KhalimskySpaceND.h:439
DGtal::Z2i::ComplementObject8_4
Object< DT8_4, DigitalSet >::ComplementObject ComplementObject8_4
Definition: StdDefs.h:106
DGtal::Z3i::SmallComplementObject18_6
Object< DT18_6, DigitalSet >::SmallComplementObject SmallComplementObject18_6
Definition: StdDefs.h:181
DGtal::Z3i::Object18_6
Object< DT18_6, DigitalSet > Object18_6
Definition: StdDefs.h:178
DGtal::Z3i::SmallComplementObject6_18
Object< DT6_18, DigitalSet >::SmallComplementObject SmallComplementObject6_18
Definition: StdDefs.h:177
DGtal::GridCurve
Aim: describes, in a cellular space of dimension n, a closed or open sequence of signed d-cells (or d...
Definition: GridCurve.h:172
DGtal::Z3i::Cell
KSpace::Cell Cell
Definition: StdDefs.h:148
DGtal::Z3i::Point
Space::Point Point
Definition: StdDefs.h:168
DGtal::Z3i::KSpace
KhalimskySpaceND< 3, Integer > KSpace
Definition: StdDefs.h:146
DGtal::Z2i::Cell
KSpace::Cell Cell
Definition: StdDefs.h:79
DGtal::Z2i::PreCell
KPreSpace::Cell PreCell
Definition: StdDefs.h:85
DGtal::Z3i::l2Metric
static const L2Metric l2Metric
Definition: StdDefs.h:204
DGtal::Z2i::l1PowerMetric
static const L1PowerMetric l1PowerMetric
Definition: StdDefs.h:126
DGtal::Z3i::Vector
Space::Vector Vector
Definition: StdDefs.h:169
DGtal::KhalimskyPreSpaceND::AnyCellCollection
Definition: KhalimskyPreSpaceND.h:410
DGtal::Z3i::SmallComplementObject26_6
Object< DT26_6, DigitalSet >::SmallComplementObject SmallComplementObject26_6
Definition: StdDefs.h:189
DGtal::SignedKhalimskyCell
Represents a signed cell in a cellular grid space by its Khalimsky coordinates and a boolean value.
Definition: KhalimskySpaceND.h:208
DGtal::Z2i::RealPoint
Space::RealPoint RealPoint
Definition: StdDefs.h:97
DGtal::Z3i::SPreCells
KPreSpace::SCells SPreCells
Definition: StdDefs.h:157
DGtal::Z3i::SmallObject26_6
Object< DT26_6, DigitalSet >::SmallObject SmallObject26_6
Definition: StdDefs.h:188
DGtal::Z2i::RealVector
Space::RealVector RealVector
Definition: StdDefs.h:98
DGtal::Z3i::dt6_18
static const DT6_18 dt6_18
Definition: StdDefs.h:194
DGtal::Z2i::Vector
Space::Vector Vector
Definition: StdDefs.h:96
DGtal::Z3i::Object6_26
Object< DT6_26, DigitalSet > Object6_26
Definition: StdDefs.h:182
DGtal::Z2i::DT4_8
DigitalTopology< Adj4, Adj8 > DT4_8
Definition: StdDefs.h:93
DGtal::Z2i::SPreCells
KPreSpace::SCells SPreCells
Definition: StdDefs.h:88
DGtal::SpaceND< 2, Integer >
DGtal::Z3i::l1Metric
static const L1Metric l1Metric
Definition: StdDefs.h:205
DGtal::Z3i::Cells
KSpace::Cells Cells
Definition: StdDefs.h:150
DGtal::KhalimskyPreSpaceND
Aim: This class is a model of CPreCellularGridSpaceND. It represents the cubical grid as a cell compl...
Definition: KhalimskyPreSpaceND.h:61
DGtal::MetricAdjacency
Aim: Describes digital adjacencies in digital spaces that are defined with the 1-norm and the infinit...
Definition: MetricAdjacency.h:79
DGtal::Z2i::SPreCell
KPreSpace::SCell SPreCell
Definition: StdDefs.h:86
DGtal::Z3i::Space
SpaceND< 3, Integer > Space
Definition: StdDefs.h:144
DGtal::Z3i::L1Metric
ExactPredicateLpSeparableMetric< Space, 1 > L1Metric
Definition: StdDefs.h:200
DGtal::Z2i::DigitalSet
DigitalSetSelector< Domain, BIG_DS+HIGH_BEL_DS >::Type DigitalSet
Definition: StdDefs.h:100
DGtal::Z3i::L2PowerMetric
ExactPredicateLpPowerSeparableMetric< Space, 2 > L2PowerMetric
Definition: StdDefs.h:201
DGtal::Z3i::L1PowerMetric
ExactPredicateLpPowerSeparableMetric< Space, 1 > L1PowerMetric
Definition: StdDefs.h:202
DGtal::Z2i::DT8_4
DigitalTopology< Adj8, Adj4 > DT8_4
Definition: StdDefs.h:94
DGtal::Z3i::SPreCell
KPreSpace::SCell SPreCell
Definition: StdDefs.h:155
DGtal::Z2i::Integer
DGtal::int32_t Integer
Definition: StdDefs.h:74
DGtal::Z2i::l2Metric
static const L2Metric l2Metric
Definition: StdDefs.h:123
DGtal::JORDAN_DT
@ JORDAN_DT
Definition: DigitalTopology.h:57
DGtal::Z3i::RealPoint
Space::RealPoint RealPoint
Definition: StdDefs.h:170
DGtal::Z2i::l1Metric
static const L1Metric l1Metric
Definition: StdDefs.h:124
DGtal::Z2i::dt4_8
static const DT4_8 dt4_8
Definition: StdDefs.h:113
DGtal::Z2i::L1Metric
ExactPredicateLpSeparableMetric< Space, 1 > L1Metric
Definition: StdDefs.h:119
DGtal::Z3i::KPreSpace
KhalimskyPreSpaceND< 3, Integer > KPreSpace
Definition: StdDefs.h:152
DGtal
DGtal is the top-level namespace which contains all DGtal functions and types.
DGtal::Z3i::Adj18
MetricAdjacency< Space, 2 > Adj18
Definition: StdDefs.h:161
DGtal::Z3i::dt6_26
static const DT6_26 dt6_26
Definition: StdDefs.h:196
DGtal::Z3i::DT6_18
DigitalTopology< Adj6, Adj18 > DT6_18
Definition: StdDefs.h:164
DGtal::Z2i::Adj8
MetricAdjacency< Space, 2 > Adj8
Definition: StdDefs.h:92
DGtal::Z3i::PreCell
KPreSpace::Cell PreCell
Definition: StdDefs.h:154
DGtal::Z2i::Object4_8
Object< DT4_8, DigitalSet > Object4_8
Definition: StdDefs.h:101
DGtal::Z3i::Domain
HyperRectDomain< Space > Domain
Definition: StdDefs.h:172
DGtal::Z3i::SmallComplementObject6_26
Object< DT6_26, DigitalSet >::SmallComplementObject SmallComplementObject6_26
Definition: StdDefs.h:185
DGtal::Z2i::Space
SpaceND< 2, Integer > Space
Definition: StdDefs.h:75
DGtal::Z3i::adj26
static const Adj26 adj26
Definition: StdDefs.h:193
DGtal::Z2i::adj4
static const Adj4 adj4
Definition: StdDefs.h:111
DGtal::Z3i::ComplementObject6_26
Object< DT6_26, DigitalSet >::ComplementObject ComplementObject6_26
Definition: StdDefs.h:183
DGtal::Z3i::Object6_18
Object< DT6_18, DigitalSet > Object6_18
Definition: StdDefs.h:174
DGtal::Z2i::KSpace
KhalimskySpaceND< 2, Integer > KSpace
Definition: StdDefs.h:77
DGtal::Z3i::RealVector
Space::RealVector RealVector
Definition: StdDefs.h:171
DGtal::Z3i::K3
KSpace K3
Definition: StdDefs.h:147
DGtal::Z2i::Curve
GridCurve< K2 > Curve
Definition: StdDefs.h:116
DGtal::Z2i::SmallComplementObject4_8
Object< DT4_8, DigitalSet >::SmallComplementObject SmallComplementObject4_8
Definition: StdDefs.h:104
DGtal::Z3i::SCell
KSpace::SCell SCell
Definition: StdDefs.h:149
DGtal::Z2i::Domain
HyperRectDomain< Space > Domain
Definition: StdDefs.h:99
DGtal::Z3i::KP3
KPreSpace KP3
Definition: StdDefs.h:153
DGtal::Z3i::DT18_6
DigitalTopology< Adj18, Adj6 > DT18_6
Definition: StdDefs.h:165
DGtal::Z2i::L2Metric
ExactPredicateLpSeparableMetric< Space, 2 > L2Metric
Definition: StdDefs.h:118
DGtal::Z2i::l2PowerMetric
static const L2PowerMetric l2PowerMetric
Definition: StdDefs.h:125
DGtal::Z3i::Object26_6
Object< DT26_6, DigitalSet > Object26_6
Definition: StdDefs.h:186
DGtal::SignedKhalimskyPreCell< dim, Integer >
DGtal::Z2i::KPreSpace
KhalimskyPreSpaceND< 2, Integer > KPreSpace
Definition: StdDefs.h:83
DGtal::Z3i::l1PowerMetric
static const L1PowerMetric l1PowerMetric
Definition: StdDefs.h:207
DGtal::ExactPredicateLpSeparableMetric
Aim: implements separable l_p metrics with exact predicates.
Definition: ExactPredicateLpSeparableMetric.h:87
DGtal::Z2i::Cells
KSpace::Cells Cells
Definition: StdDefs.h:81
DGtal::Z2i::SmallObject4_8
Object< DT4_8, DigitalSet >::SmallObject SmallObject4_8
Definition: StdDefs.h:103
DGtal::Z2i::adj8
static const Adj8 adj8
Definition: StdDefs.h:112
DGtal::Z2i::Object8_4
Object< DT8_4, DigitalSet > Object8_4
Definition: StdDefs.h:105
DGtal::PointVector< dim, Integer >
DGtal::Z2i::SCell
KSpace::SCell SCell
Definition: StdDefs.h:80
DGtal::Z3i::l2PowerMetric
static const L2PowerMetric l2PowerMetric
Definition: StdDefs.h:206
DGtal::Z3i::Z3
Space Z3
Definition: StdDefs.h:145
DGtal::Z2i::Adj4
MetricAdjacency< Space, 1 > Adj4
Definition: StdDefs.h:90
DGtal::Z2i::K2
KSpace K2
Definition: StdDefs.h:78
DGtal::Object
Aim: An object (or digital object) represents a set in some digital space associated with a digital t...
Definition: Object.h:119
DGtal::Z2i::L1PowerMetric
ExactPredicateLpPowerSeparableMetric< Space, 1 > L1PowerMetric
Definition: StdDefs.h:121
DGtal::Z3i::SmallObject6_26
Object< DT6_26, DigitalSet >::SmallObject SmallObject6_26
Definition: StdDefs.h:184
DGtal::Z3i::Adj6
MetricAdjacency< Space, 1 > Adj6
Definition: StdDefs.h:159
DGtal::Z3i::L2Metric
ExactPredicateLpSeparableMetric< Space, 2 > L2Metric
Definition: StdDefs.h:199
DGtal::Z3i::DigitalSet
DigitalSetSelector< Domain, BIG_DS+HIGH_BEL_DS >::Type DigitalSet
Definition: StdDefs.h:173
DGtal::KhalimskyCell< dim, Integer >
DGtal::Z3i::ComplementObject18_6
Object< DT18_6, DigitalSet >::ComplementObject ComplementObject18_6
Definition: StdDefs.h:179
DGtal::DigitalSetByAssociativeContainer
Aim: A wrapper class around a STL associative container for storing sets of digital points within som...
Definition: DigitalSetByAssociativeContainer.h:89
DGtal::Z3i::dt18_6
static const DT18_6 dt18_6
Definition: StdDefs.h:195
DGtal::KhalimskySpaceND
Aim: This class is a model of CCellularGridSpaceND. It represents the cubical grid as a cell complex,...
Definition: KhalimskySpaceND.h:64
DGtal::Z3i::Adj26
MetricAdjacency< Space, 3 > Adj26
Definition: StdDefs.h:163
DGtal::Z3i::SmallObject18_6
Object< DT18_6, DigitalSet >::SmallObject SmallObject18_6
Definition: StdDefs.h:180