DGtal
2.2.0
Toggle main menu visibility
Loading...
Searching...
No Matches
BoundaryPredicate.h
1
16
17
#pragma once
18
30
31
#if defined(BoundaryPredicate_RECURSES)
32
#error Recursive header files inclusion detected in BoundaryPredicate.h
33
#else
// defined(BoundaryPredicate_RECURSES)
35
#define BoundaryPredicate_RECURSES
36
37
#if !defined BoundaryPredicate_h
39
#define BoundaryPredicate_h
40
42
// Inclusions
43
#include <iostream>
44
#include <boost/array.hpp>
45
46
#include "DGtal/base/Common.h"
47
#include "DGtal/base/ConstAlias.h"
48
#include "DGtal/images/CConstImage.h"
49
#include "DGtal/topology/CCellularGridSpaceND.h"
51
52
// @since 0.8 In DGtal::functors
53
namespace
DGtal
{
54
namespace
functors
{
55
57
// class BoundaryPredicate
68
template
<
typename
TKSpace,
typename
TImage>
69
class
BoundaryPredicate
70
{
71
// ----------------------- public types ------------------------------
72
public
:
73
BOOST_CONCEPT_ASSERT
((
concepts::CCellularGridSpaceND< TKSpace >
));
74
BOOST_CONCEPT_ASSERT
((
concepts::CConstImage< TImage >
));
75
typedef
TKSpace
KSpace
;
76
typedef
TImage
Image
;
77
typedef
typename
KSpace::Surfel
Surfel
;
78
typedef
typename
KSpace::Point
Point
;
79
typedef
typename
KSpace::SCell
SCell
;
80
typedef
typename
Image::Value
Value
;
81
// KSpace::Point same type as Image::Point
82
BOOST_STATIC_ASSERT
83
((
concepts::ConceptUtils::SameType
<
typename
KSpace::Point
,
84
typename
Image::Point
>::value ));
85
86
87
// ----------------------- Standard services ------------------------------
88
public
:
89
93
~BoundaryPredicate
();
94
103
BoundaryPredicate
(
ConstAlias<KSpace>
aSpace,
ConstAlias<Image>
anImage,
104
const
Value
& l1 );
105
110
BoundaryPredicate
(
const
BoundaryPredicate
& other );
111
117
BoundaryPredicate
&
operator=
(
const
BoundaryPredicate
& other );
118
128
bool
operator()
(
const
Surfel
& s )
const
;
129
130
// ----------------------- Interface --------------------------------------
131
public
:
132
137
void
selfDisplay
( std::ostream & out )
const
;
138
143
bool
isValid
()
const
;
144
145
// ------------------------- Private Data --------------------------------
146
private
:
147
149
const
KSpace
*
myPtrSpace
;
150
// the image of interest
151
const
Image
*
myPtrImage
;
153
Value
myLabel1
;
154
155
// ------------------------- Hidden services ------------------------------
156
protected
:
157
// ------------------------- Internals ------------------------------------
158
private
:
159
160
};
// end of class BoundaryPredicate
161
162
}
// namespace functors
163
170
template
<
typename
TKSpace,
typename
TImage>
171
std::ostream&
172
operator<<
( std::ostream & out,
173
const
DGtal::functors::BoundaryPredicate<TKSpace,TImage>
&
object
);
174
175
176
}
// namespace DGtal
177
178
180
// Includes inline functions.
181
#include "DGtal/topology/helpers/BoundaryPredicate.ih"
182
183
// //
185
186
#endif
// !defined BoundaryPredicate_h
187
188
#undef BoundaryPredicate_RECURSES
189
#endif
// else defined(BoundaryPredicate_RECURSES)
DGtal::ConstAlias
Aim: This class encapsulates its parameter class so that to indicate to the user that the object/poin...
Definition
ConstAlias.h:187
DGtal::ImageContainerBySTLVector< Domain, Value >::Value
Value Value
Definition
ImageContainerBySTLVector.h:153
DGtal::ImageContainerBySTLVector< Domain, Value >::Point
Domain::Point Point
Definition
ImageContainerBySTLVector.h:138
DGtal::KhalimskySpaceND< 3, Integer >::Point
PointVector< dim, Integer > Point
Definition
KhalimskySpaceND.h:425
DGtal::KhalimskySpaceND< 3, Integer >::SCell
SignedKhalimskyCell< dim, Integer > SCell
Definition
KhalimskySpaceND.h:417
DGtal::KhalimskySpaceND< 3, Integer >::Surfel
SCell Surfel
Definition
KhalimskySpaceND.h:420
DGtal::functors::BoundaryPredicate
Aim: The predicate on surfels that represents the frontier between a region and its complementary in ...
Definition
BoundaryPredicate.h:70
DGtal::functors::BoundaryPredicate::selfDisplay
void selfDisplay(std::ostream &out) const
DGtal::functors::BoundaryPredicate::myPtrImage
const Image * myPtrImage
Definition
BoundaryPredicate.h:151
DGtal::functors::BoundaryPredicate::BoundaryPredicate
BoundaryPredicate(ConstAlias< KSpace > aSpace, ConstAlias< Image > anImage, const Value &l1)
DGtal::functors::BoundaryPredicate::BOOST_STATIC_ASSERT
BOOST_STATIC_ASSERT((concepts::ConceptUtils::SameType< typename KSpace::Point, typename Image::Point >::value))
DGtal::functors::BoundaryPredicate::BOOST_CONCEPT_ASSERT
BOOST_CONCEPT_ASSERT((concepts::CConstImage< TImage >))
DGtal::functors::BoundaryPredicate::~BoundaryPredicate
~BoundaryPredicate()
DGtal::functors::BoundaryPredicate::BOOST_CONCEPT_ASSERT
BOOST_CONCEPT_ASSERT((concepts::CCellularGridSpaceND< TKSpace >))
DGtal::functors::BoundaryPredicate::SCell
KSpace::SCell SCell
Definition
BoundaryPredicate.h:79
DGtal::functors::BoundaryPredicate::operator=
BoundaryPredicate & operator=(const BoundaryPredicate &other)
DGtal::functors::BoundaryPredicate::BoundaryPredicate
BoundaryPredicate(const BoundaryPredicate &other)
DGtal::functors::BoundaryPredicate::Surfel
KSpace::Surfel Surfel
Definition
BoundaryPredicate.h:77
DGtal::functors::BoundaryPredicate::Image
TImage Image
Definition
BoundaryPredicate.h:76
DGtal::functors::BoundaryPredicate::Point
KSpace::Point Point
Definition
BoundaryPredicate.h:78
DGtal::functors::BoundaryPredicate::myLabel1
Value myLabel1
the label of the inner region that defines the boundary.
Definition
BoundaryPredicate.h:153
DGtal::functors::BoundaryPredicate::myPtrSpace
const KSpace * myPtrSpace
the cellular space where lies the image.
Definition
BoundaryPredicate.h:149
DGtal::functors::BoundaryPredicate::Value
Image::Value Value
Definition
BoundaryPredicate.h:80
DGtal::functors::BoundaryPredicate::KSpace
TKSpace KSpace
Definition
BoundaryPredicate.h:75
DGtal::functors::BoundaryPredicate::operator()
bool operator()(const Surfel &s) const
DGtal::functors::BoundaryPredicate::isValid
bool isValid() const
DGtal::functors
functors namespace gathers all DGtal functors.
Definition
BasicBoolFunctors.h:49
DGtal
DGtal is the top-level namespace which contains all DGtal functions and types.
Definition
ClosedIntegerHalfPlane.h:49
DGtal::operator<<
std::ostream & operator<<(std::ostream &out, const ClosedIntegerHalfPlane< TSpace > &object)
DGtal::concepts::CCellularGridSpaceND
Aim: This concept describes a cellular grid space in nD. In these spaces obtained by cartesian produc...
Definition
CCellularGridSpaceND.h:164
DGtal::concepts::CConstImage
Aim: Defines the concept describing a read-only image, which is a refinement of CPointFunctor.
Definition
CConstImage.h:95
DGtal::concepts::ConceptUtils::SameType
Definition
ConceptUtils.h:107
src
DGtal
topology
helpers
BoundaryPredicate.h
Generated on
for DGtal by
1.18.0