75 #ifndef SLIP_MULTISPECTRALIMAGE_HPP
76 #define SLIP_MULTISPECTRALIMAGE_HPP
94 #include <boost/serialization/access.hpp>
95 #include <boost/serialization/split_member.hpp>
96 #include <boost/serialization/version.hpp>
97 #include <boost/serialization/base_object.hpp>
104 class stride_iterator;
107 class iterator2d_box;
110 class iterator2d_range;
113 class const_iterator2d_box;
116 class const_iterator2d_range;
127 template <
typename T, std::
size_t NB_COMPONENT>
152 template <
typename T, std::
size_t NB_COMPONENT>
176 static const std::size_t
DIM = 2;
209 base(height,width,val)
221 base(height,width,val)
234 base(height,width,val)
248 template<
typename InputIterator>
253 base(height,width,first,last)
270 template<
typename InputIterator>
273 std::vector<InputIterator> first_iterators_list,
275 base(height,width,first_iterators_list,last)
322 std::string
name()
const;
327 template<
class Archive>
328 void save(Archive & ar,
const unsigned int version)
const
330 ar & boost::serialization::base_object<slip::GenericMultiComponent2d<slip::block<T,NB_COMPONENT> > >(*this);
332 template<
class Archive>
333 void load(Archive & ar,
const unsigned int version)
335 ar & boost::serialization::base_object<slip::GenericMultiComponent2d<slip::block<T,NB_COMPONENT> > >(*this);
337 BOOST_SERIALIZATION_SPLIT_MEMBER()
353 template<
typename T, std::
size_t NB_COMPONENT>
355 MultispectralImage<T,NB_COMPONENT>&
358 std::fill_n(this->begin(),this->size(),val);
362 template<
typename T, std::
size_t NB_COMPONENT>
367 std::fill_n(this->begin(),this->size(),val);
371 template<
typename T, std::
size_t NB_COMPONENT>
379 #endif //SLIP_MULTISPECTRALIMAGE_HPP
friend class boost::serialization::access
This is a GenericMultiComponent2d class. This container statisfies the BidirectionnalContainer concep...
ptrdiff_t difference_type
MultispectralImage(const size_type height, const size_type width, const slip::block< T, NB_COMPONENT > *val)
Constructs a MultispectralImage initialized by an array val.
MultispectralImage(const size_type height, const size_type width, InputIterator first, InputIterator last)
Contructs a MultispectralImage from a range.
Provides a class to manipulate multicomponent 2d containers.
Provides a class to manipulate iterator2d within a slip::Box2d. It is used to iterate throw 2d contai...
~MultispectralImage()
Destructor of the MultispectralImage.
Provides a class to iterate a 1d range according to a constant step.
const_pointer const_iterator
const value_type * const_pointer
MultispectralImage(const self &rhs)
Constructs a copy of the MultispectralImage rhs.
MultispectralImage(const size_type height, const size_type width, const slip::block< T, NB_COMPONENT > &val)
Constructs a MultispectralImage initialized by the scalar value val.
Provides a class to manipulate 1d static and generic arrays.
size_type height() const
Returns the height (first dimension size) in the GenericMultiComponent2d.
std::string name() const
Returns the name of the class.
self & operator=(const slip::block< T, NB_COMPONENT > &val)
Affects all the element of the MulitspectralImage by val.
const value_type & const_reference
MultispectralImage(const size_type height, const size_type width, std::vector< InputIterator > first_iterators_list, InputIterator last)
Contructs a MultispectralImage from a N ranges.
GenericMultiComponent2d< slip::block< T, NB_COMPONENT > > base
slip::GenericMultiComponent2d< slip::block< T, NB_COMPONENT > >::value_type value_type
const MultispectralImage< T, NB_COMPONENT > const_self
size_type width() const
Returns the number of columns (second dimension size) in the GenericMultiComponent2d.
MultispectralImage()
Constructs a MultispectralImage.
MultispectralImage(const size_type height, const size_type width, const T *val)
Constructs a MultispectralImage initialized by an array val.
std::reverse_iterator< const_iterator > const_reverse_iterator
Provides some algorithms to apply C like functions to ranges.
Provides a class to iterate a 1d range according to a step.
std::reverse_iterator< iterator > reverse_iterator
This is a Multi Spectral Image container. This container statisfies the BidirectionnalContainer conce...
static const std::size_t DIM
Provides a class to manipulate iterator2d within a slip::Range. It is used to iterate throw 2d contai...
MultispectralImage(const size_type height, const size_type width)
Constructs a MultispectralImage.
This is a linear (one-dimensional) static container. This container statisfies the RandomAccessContai...