Loading [MathJax]/extensions/TeX/AMSsymbols.js
DGtal 2.0.0
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
54namespace 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 >
76 {
77
79
80 // ----------------------- Local types ------------------------------
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 is the top-level namespace which contains all DGtal functions and types.
constexpr int ITKIMAGEDATA_CONTAINER_I
constexpr int LOW_ITER_I
constexpr int LOW_BEL_I
constexpr int NORMAL_CONTAINER_I
constexpr int HIGH_ITER_IMAGE
constexpr int VTKIMAGEDATA_CONTAINER_I
constexpr int HIGH_BEL_I
Aim: Automatically defines an adequate image type according to the hints given by the user.
BOOST_CONCEPT_ASSERT((concepts::CLabel< Value >))
ImageContainerBySTLVector< Domain, Value > Type
Aim: Define the concept of DGtal labels. Models of CLabel can be default-constructible,...
Definition CLabel.h:93