14 #pragma warning (push) 15 #pragma warning (disable : 4231) // nonstandard extension used : 'extern' before template explicit instantiation 24 template <
typename T, std::
size_t D >
70 #ifdef TIL_EXPORT_SOME_CLASSES 74 template <
typename T, std::
size_t D >
80 template <
typename T, std::
size_t D >
83 this->set_bounds(minBounds, maxBounds);
86 template <
typename T, std::
size_t D >
89 for (std::size_t i = 0; i < D; ++i) assert(minBounds[i] <= maxBounds[i]);
90 m_minBounds = minBounds;
91 m_maxBounds = maxBounds;
94 template <
typename T, std::
size_t D >
97 assert(minBound <= maxBound);
98 m_minBounds[i] = minBound;
99 m_maxBounds[i] = maxBound;
102 template <
typename T, std::
size_t D >
105 for (
int i = 0; i < D; ++i) assert(minBounds[i] <= m_maxBounds[i]);
106 m_minBounds = minBounds;
109 template <
typename T, std::
size_t D >
112 for (
int i = 0; i < D; ++i) assert(maxBounds[i] >= m_minBounds[i]);
113 m_maxBounds = maxBounds;
116 template <
typename T, std::
size_t D >
119 assert(value <= m_maxBounds[i]);
120 m_minBounds[i] = value;
123 template <
typename T, std::
size_t D >
126 assert(value >= m_minBounds[i]);
127 m_maxBounds[i] = value;
133 #pragma warning (pop) boost::enable_if< is_Image< TImage >, typename TImage::value_type >::type min(const TImage &im)
void set_bounds(const numeric_array< T, D > &minBounds, const numeric_array< T, D > &maxBounds)
Set min and max bounds.
void set_min_bound(std::size_t i, T value)
Set min bound on axis i.
void set_max_bound(std::size_t i, T value)
Set max bound on axis i.
Belongs to package Box Do not include directly, include til/Box.h instead.
General macros, definitions and functions.
void set_min_bounds(const numeric_array< T, D > &min)
Set min bounds.
const numeric_array< T, D > & min_bounds() const
Get min bounds.
void set_max_bounds(const numeric_array< T, D > &min)
Set max bounds.
This file contains forward declarations of classes defined in the TIL library.
const numeric_array< T, D > & max_bounds() const
Get max bounds.
Box()
Default constructor. All coordinates are set to zero.
TImage::value_type max(const TImage &im)
Returns the maximum intensity of the input image.
A 3D box parallel to canonical axes.