DGtal
2.2.0
Toggle main menu visibility
Loading...
Searching...
No Matches
CImage.h
1
16
17
#pragma once
18
30
31
#if defined(CImageRECURSES)
32
#error Recursive header files inclusion detected in CImage.h
33
#else
// defined(CImageRECURSES)
35
#define CImageRECURSES
36
37
#if !defined CImage_h
39
#define CImage_h
40
41
#include <boost/concept_check.hpp>
42
#include <boost/concept/assert.hpp>
43
#include <boost/concept/requires.hpp>
44
45
#include "DGtal/kernel/domains/CDomain.h"
46
#include "DGtal/images/CConstImage.h"
47
#include "DGtal/base/CConstBidirectionalRangeFromPoint.h"
48
#include "DGtal/base/CBidirectionalRangeWithWritableIteratorFromPoint.h"
49
#include "DGtal/images/CTrivialImage.h"
50
51
namespace
DGtal
52
{
53
namespace
concepts
54
{
56
// struct CImage
100
101
template
<
typename
I>
102
struct
CImage
:
CConstImage
<I>,
CTrivialImage
<I>
103
{
104
105
public
:
106
107
typedef
typename
I::Range
Range
;
108
BOOST_CONCEPT_ASSERT
((
CConstBidirectionalRangeFromPoint<Range>
));
109
BOOST_CONCEPT_ASSERT
((
CBidirectionalRangeWithWritableIteratorFromPoint
<
Range
,
typename
110
I::Value>));
111
112
public
:
113
114
BOOST_CONCEPT_USAGE
(
CImage
)
115
{
116
ConceptUtils::sameType
(
myI
.range(),
myR
);
117
}
118
119
private
:
120
121
I
myI
;
122
Range
myR
;
123
124
};
125
}
126
}
// namespace DGtal
127
128
// //
130
131
#endif
// !defined CImage_h
132
133
#undef CImageRECURSES
134
#endif
// else defined(CImageRECURSES)
DGtal::concepts::ConceptUtils::sameType
void sameType(const T &, const T &)
Definition
ConceptUtils.h:117
DGtal::concepts
Aim: Gathers several functions useful for concept checks.
Definition
CPositiveIrreducibleFraction.h:54
DGtal
DGtal is the top-level namespace which contains all DGtal functions and types.
Definition
ClosedIntegerHalfPlane.h:49
DGtal::concepts::CBidirectionalRangeWithWritableIteratorFromPoint
Aim: refined concept of single pass range with an routputIterator() method from a point.
Definition
CBidirectionalRangeWithWritableIteratorFromPoint.h:93
DGtal::concepts::CConstBidirectionalRangeFromPoint
Aim: refined concept of const bidirectional range with a begin() method from a point.
Definition
CConstBidirectionalRangeFromPoint.h:93
DGtal::concepts::CConstImage
Aim: Defines the concept describing a read-only image, which is a refinement of CPointFunctor.
Definition
CConstImage.h:95
DGtal::concepts::CImage
Aim: Defines the concept describing a read/write image, having an output iterator.
Definition
CImage.h:103
DGtal::concepts::CImage::BOOST_CONCEPT_ASSERT
BOOST_CONCEPT_ASSERT((CBidirectionalRangeWithWritableIteratorFromPoint< Range, typename I::Value >))
DGtal::concepts::CImage::BOOST_CONCEPT_ASSERT
BOOST_CONCEPT_ASSERT((CConstBidirectionalRangeFromPoint< Range >))
DGtal::concepts::CImage::myI
I myI
Definition
CImage.h:121
DGtal::concepts::CImage::Range
I::Range Range
Definition
CImage.h:107
DGtal::concepts::CImage::myR
Range myR
Definition
CImage.h:122
DGtal::concepts::CImage::BOOST_CONCEPT_USAGE
BOOST_CONCEPT_USAGE(CImage)
Definition
CImage.h:114
DGtal::concepts::CTrivialImage
Aim: Defines the concept describing an image without extra ranges, which is a refinement of CTrivialC...
Definition
CTrivialImage.h:85
src
DGtal
images
CImage.h
Generated on
for DGtal by
1.18.0