DGtal
2.2.0
Toggle main menu visibility
Loading...
Searching...
No Matches
ImageSelector.h
1
16
17
#pragma once
18
30
31
#if defined(ImageSelector_RECURSES)
32
#error Recursive header files inclusion detected in ImageSelector.h
33
#else
// defined(ImageSelector_RECURSES)
35
#define ImageSelector_RECURSES
36
37
#if !defined ImageSelector_h
39
#define ImageSelector_h
40
42
// Inclusions
43
#include <iostream>
44
#include "DGtal/base/Common.h"
45
#include "DGtal/base/CLabel.h"
46
#include "DGtal/images/ImageContainerBySTLMap.h"
47
#include "DGtal/images/ImageContainerBySTLVector.h"
48
#include "DGtal/images/ImageContainerByHashTree.h"
49
#ifdef DGTAL_WITH_ITK
50
#include "DGtal/images/ImageContainerByITKImage.h"
51
#endif
53
54
namespace
DGtal
55
{
56
57
// Since c++20, arithmetic between different enums types are disabled
58
// (https://eel.is/c++draft/diff.iso#diff.expr-2)
59
inline
constexpr
int
HIGH_ITER_IMAGE
= 0;
60
inline
constexpr
int
LOW_ITER_I
= 1;
61
inline
constexpr
int
HIGH_BEL_I
= 0;
62
inline
constexpr
int
LOW_BEL_I
= 2;
63
inline
constexpr
int
NORMAL_CONTAINER_I
= 0;
64
inline
constexpr
int
VTKIMAGEDATA_CONTAINER_I
= 4;
65
inline
constexpr
int
ITKIMAGEDATA_CONTAINER_I
= 5;
66
68
// template class ImageSelector
74
template
<
typename
Domain,
typename
Value,
int
Preferences = 0 >
75
struct
ImageSelector
76
{
77
78
BOOST_CONCEPT_ASSERT
((
concepts::CLabel<Value>
));
79
80
// ----------------------- Local types ------------------------------
84
typedef
ImageContainerBySTLVector<Domain,Value>
Type
;
85
86
};
87
}
// namespace DGtal
88
90
// Includes inline functions.
91
#include "DGtal/images//ImageSelector.ih"
92
93
// //
95
96
#endif
// !defined ImageSelector_h
97
98
#undef ImageSelector_RECURSES
99
#endif
// else defined(ImageSelector_RECURSES)
DGtal::ImageContainerBySTLVector
Definition
ImageContainerBySTLVector.h:127
DGtal
DGtal is the top-level namespace which contains all DGtal functions and types.
Definition
ClosedIntegerHalfPlane.h:49
DGtal::ITKIMAGEDATA_CONTAINER_I
constexpr int ITKIMAGEDATA_CONTAINER_I
Definition
ImageSelector.h:65
DGtal::LOW_ITER_I
constexpr int LOW_ITER_I
Definition
ImageSelector.h:60
DGtal::LOW_BEL_I
constexpr int LOW_BEL_I
Definition
ImageSelector.h:62
DGtal::NORMAL_CONTAINER_I
constexpr int NORMAL_CONTAINER_I
Definition
ImageSelector.h:63
DGtal::HIGH_ITER_IMAGE
constexpr int HIGH_ITER_IMAGE
Definition
ImageSelector.h:59
DGtal::VTKIMAGEDATA_CONTAINER_I
constexpr int VTKIMAGEDATA_CONTAINER_I
Definition
ImageSelector.h:64
DGtal::HIGH_BEL_I
constexpr int HIGH_BEL_I
Definition
ImageSelector.h:61
DGtal::ImageSelector
Aim: Automatically defines an adequate image type according to the hints given by the user.
Definition
ImageSelector.h:76
DGtal::ImageSelector::BOOST_CONCEPT_ASSERT
BOOST_CONCEPT_ASSERT((concepts::CLabel< Value >))
DGtal::ImageSelector::Type
ImageContainerBySTLVector< Domain, Value > Type
Definition
ImageSelector.h:84
DGtal::concepts::CLabel
Aim: Define the concept of DGtal labels. Models of CLabel can be default-constructible,...
Definition
CLabel.h:93
src
DGtal
images
ImageSelector.h
Generated on
for DGtal by
1.18.0