1 #ifndef TIL_BASIC_PIXEL_ACTIONS_H 2 #define TIL_BASIC_PIXEL_ACTIONS_H 16 template <
class _TImage >
33 void setValue(value_type value) { m_value = value; }
34 void setImage(
const TImage &im) { m_im.shallowCopy(im); }
36 value_type
getValue()
const {
return m_value; }
37 TImage &
image()
const {
return m_im; }
52 template <
class TImage >
80 template <
class TImage >
97 void apply(
const VolumetricIterator &iIm)
104 (*(this->
image()))(pos) = m_im.getValue(pos);
A trait class to assign iterators to image types.
void setImage(const TImage &im)
value_type getValue() const
PA_SingleValue(value_type value)
Belongs to package Box Do not include directly, include til/Box.h instead.
Iterator< TImage >::Volumetric VolumetricIterator
INLINE void apply(const VolumetricIterator &iIm) const
General macros, definitions and functions.
void setValue(value_type value)
TImage::value_type value_type
void apply(const VolumetricIterator &iIm)
PA_SetValue(value_type value)
Iterator< TImage >::Volumetric VolumetricIterator
void apply(const numeric_array< int, 3 > &pos)
TImage::value_type value_type
Iterator< TImage >::Volumetric VolumetricIterator
void apply(const numeric_array< int, 3 > &pos) const
TImage::value_type value_type