Boost  v1.57.0
doxygen for www.boost.org
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
boost::gil::image< Pixel, IsPlanar, Alloc > Singleton Reference

container interface over image view. More...

#include <typedefs.hpp>

Collaboration diagram for boost::gil::image< Pixel, IsPlanar, Alloc >:

Public Types

typedef Alloc::template rebind
< unsigned char >::other 
allocator_type
 
typedef view_type_from_pixel
< Pixel, IsPlanar >::type 
view_t
 
typedef view_t::const_t const_view_t
 
typedef view_t::point_t point_t
 
typedef view_t::coord_t coord_t
 
typedef view_t::value_type value_type
 
typedef coord_t x_coord_t
 
typedef coord_t y_coord_t
 

Public Member Functions

const point_tdimensions () const
 
x_coord_t width () const
 
y_coord_t height () const
 
 image (std::size_t alignment=0, const Alloc alloc_in=Alloc())
 
 image (const point_t &dimensions, std::size_t alignment=0, const Alloc alloc_in=Alloc())
 
 image (x_coord_t width, y_coord_t height, std::size_t alignment=0, const Alloc alloc_in=Alloc())
 
 image (const point_t &dimensions, const Pixel &p_in, std::size_t alignment, const Alloc alloc_in=Alloc())
 
 image (x_coord_t width, y_coord_t height, const Pixel &p_in, std::size_t alignment, const Alloc alloc_in=Alloc())
 
 image (const image &img)
 
template<typename P2 , bool IP2, typename Alloc2 >
 image (const image< P2, IP2, Alloc2 > &img)
 
imageoperator= (const image &img)
 
template<typename Img >
imageoperator= (const Img &img)
 
 ~image ()
 
Alloc & allocator ()
 
Alloc const & allocator () const
 
void swap (image &img)
 
void recreate (const point_t &dims, std::size_t alignment=0, const Alloc alloc_in=Alloc())
 
void recreate (x_coord_t width, y_coord_t height, std::size_t alignment=0, const Alloc alloc_in=Alloc())
 
void recreate (const point_t &dims, const Pixel &p_in, std::size_t alignment, const Alloc alloc_in=Alloc())
 
void recreate (x_coord_t width, y_coord_t height, const Pixel &p_in, std::size_t alignment, const Alloc alloc_in=Alloc())
 

Public Attributes

view_t _view
 

Detailed Description

template<typename Pixel, bool IsPlanar = false, typename Alloc = std::allocator<unsigned char>>
singleton boost::gil::image< Pixel, IsPlanar, Alloc >

container interface over image view.

Models ImageConcept, PixelBasedConcept

A 2D container whose elements are pixels. It is templated over the pixel type, a boolean indicating whether it should be planar, and an optional allocator.

Note that its element type does not have to be a pixel. image can be instantiated with any Regular element, in which case it models the weaker RandomAccess2DImageConcept and does not model PixelBasedConcept

Member Typedef Documentation

template<typename Pixel, bool IsPlanar = false, typename Alloc = std::allocator<unsigned char>>
typedef Alloc::template rebind<unsigned char>::other boost::gil::image< Pixel, IsPlanar, Alloc >::allocator_type
template<typename Pixel, bool IsPlanar = false, typename Alloc = std::allocator<unsigned char>>
typedef view_t::const_t boost::gil::image< Pixel, IsPlanar, Alloc >::const_view_t
template<typename Pixel, bool IsPlanar = false, typename Alloc = std::allocator<unsigned char>>
typedef view_t::coord_t boost::gil::image< Pixel, IsPlanar, Alloc >::coord_t
template<typename Pixel, bool IsPlanar = false, typename Alloc = std::allocator<unsigned char>>
typedef view_t::point_t boost::gil::image< Pixel, IsPlanar, Alloc >::point_t
template<typename Pixel, bool IsPlanar = false, typename Alloc = std::allocator<unsigned char>>
typedef view_t::value_type boost::gil::image< Pixel, IsPlanar, Alloc >::value_type
template<typename Pixel, bool IsPlanar = false, typename Alloc = std::allocator<unsigned char>>
typedef view_type_from_pixel<Pixel, IsPlanar>::type boost::gil::image< Pixel, IsPlanar, Alloc >::view_t
template<typename Pixel, bool IsPlanar = false, typename Alloc = std::allocator<unsigned char>>
typedef coord_t boost::gil::image< Pixel, IsPlanar, Alloc >::x_coord_t
template<typename Pixel, bool IsPlanar = false, typename Alloc = std::allocator<unsigned char>>
typedef coord_t boost::gil::image< Pixel, IsPlanar, Alloc >::y_coord_t

Constructor & Destructor Documentation

template<typename Pixel, bool IsPlanar = false, typename Alloc = std::allocator<unsigned char>>
boost::gil::image< Pixel, IsPlanar, Alloc >::image ( std::size_t  alignment = 0,
const Alloc  alloc_in = Alloc() 
)
inlineexplicit
template<typename Pixel, bool IsPlanar = false, typename Alloc = std::allocator<unsigned char>>
boost::gil::image< Pixel, IsPlanar, Alloc >::image ( const point_t dimensions,
std::size_t  alignment = 0,
const Alloc  alloc_in = Alloc() 
)
inline
template<typename Pixel, bool IsPlanar = false, typename Alloc = std::allocator<unsigned char>>
boost::gil::image< Pixel, IsPlanar, Alloc >::image ( x_coord_t  width,
y_coord_t  height,
std::size_t  alignment = 0,
const Alloc  alloc_in = Alloc() 
)
inline
template<typename Pixel, bool IsPlanar = false, typename Alloc = std::allocator<unsigned char>>
boost::gil::image< Pixel, IsPlanar, Alloc >::image ( const point_t dimensions,
const Pixel &  p_in,
std::size_t  alignment,
const Alloc  alloc_in = Alloc() 
)
inline
template<typename Pixel, bool IsPlanar = false, typename Alloc = std::allocator<unsigned char>>
boost::gil::image< Pixel, IsPlanar, Alloc >::image ( x_coord_t  width,
y_coord_t  height,
const Pixel &  p_in,
std::size_t  alignment,
const Alloc  alloc_in = Alloc() 
)
inline
template<typename Pixel, bool IsPlanar = false, typename Alloc = std::allocator<unsigned char>>
boost::gil::image< Pixel, IsPlanar, Alloc >::image ( const image< Pixel, IsPlanar, Alloc > &  img)
inline
template<typename Pixel, bool IsPlanar = false, typename Alloc = std::allocator<unsigned char>>
template<typename P2 , bool IP2, typename Alloc2 >
boost::gil::image< Pixel, IsPlanar, Alloc >::image ( const image< P2, IP2, Alloc2 > &  img)
inline
template<typename Pixel, bool IsPlanar = false, typename Alloc = std::allocator<unsigned char>>
boost::gil::image< Pixel, IsPlanar, Alloc >::~image ( )
inline

Member Function Documentation

template<typename Pixel, bool IsPlanar = false, typename Alloc = std::allocator<unsigned char>>
Alloc& boost::gil::image< Pixel, IsPlanar, Alloc >::allocator ( )
inline
template<typename Pixel, bool IsPlanar = false, typename Alloc = std::allocator<unsigned char>>
Alloc const& boost::gil::image< Pixel, IsPlanar, Alloc >::allocator ( ) const
inline
template<typename Pixel, bool IsPlanar = false, typename Alloc = std::allocator<unsigned char>>
const point_t& boost::gil::image< Pixel, IsPlanar, Alloc >::dimensions ( ) const
inline
template<typename Pixel, bool IsPlanar = false, typename Alloc = std::allocator<unsigned char>>
y_coord_t boost::gil::image< Pixel, IsPlanar, Alloc >::height ( ) const
inline
template<typename Pixel, bool IsPlanar = false, typename Alloc = std::allocator<unsigned char>>
image& boost::gil::image< Pixel, IsPlanar, Alloc >::operator= ( const image< Pixel, IsPlanar, Alloc > &  img)
inline
template<typename Pixel, bool IsPlanar = false, typename Alloc = std::allocator<unsigned char>>
template<typename Img >
image& boost::gil::image< Pixel, IsPlanar, Alloc >::operator= ( const Img &  img)
inline
template<typename Pixel, bool IsPlanar = false, typename Alloc = std::allocator<unsigned char>>
void boost::gil::image< Pixel, IsPlanar, Alloc >::recreate ( const point_t dims,
std::size_t  alignment = 0,
const Alloc  alloc_in = Alloc() 
)
inline
template<typename Pixel, bool IsPlanar = false, typename Alloc = std::allocator<unsigned char>>
void boost::gil::image< Pixel, IsPlanar, Alloc >::recreate ( x_coord_t  width,
y_coord_t  height,
std::size_t  alignment = 0,
const Alloc  alloc_in = Alloc() 
)
inline
template<typename Pixel, bool IsPlanar = false, typename Alloc = std::allocator<unsigned char>>
void boost::gil::image< Pixel, IsPlanar, Alloc >::recreate ( const point_t dims,
const Pixel &  p_in,
std::size_t  alignment,
const Alloc  alloc_in = Alloc() 
)
inline
template<typename Pixel, bool IsPlanar = false, typename Alloc = std::allocator<unsigned char>>
void boost::gil::image< Pixel, IsPlanar, Alloc >::recreate ( x_coord_t  width,
y_coord_t  height,
const Pixel &  p_in,
std::size_t  alignment,
const Alloc  alloc_in = Alloc() 
)
inline
template<typename Pixel, bool IsPlanar = false, typename Alloc = std::allocator<unsigned char>>
void boost::gil::image< Pixel, IsPlanar, Alloc >::swap ( image< Pixel, IsPlanar, Alloc > &  img)
inline
template<typename Pixel, bool IsPlanar = false, typename Alloc = std::allocator<unsigned char>>
x_coord_t boost::gil::image< Pixel, IsPlanar, Alloc >::width ( ) const
inline

Member Data Documentation


The documentation for this singleton was generated from the following file: