Boost GIL


Functions
Image View From Raw Data

Methods for constructing image views from raw data and for getting raw data from views. More...

Functions

template<typename IC >
type_from_x_iterator< planar_pixel_iterator< IC, cmyk_t > >::view_t planar_cmyk_view (std::size_t width, std::size_t height, IC c, IC m, IC y, IC k, std::ptrdiff_t rowsize_in_bytes)
 from raw CMYK planar data
 
template<typename IC >
type_from_x_iterator< planar_pixel_iterator< IC, devicen_t< 2 > > >::view_t planar_devicen_view (std::size_t width, std::size_t height, IC c0, IC c1, std::ptrdiff_t rowsize_in_bytes)
 from 2-channel planar data
 
template<typename IC >
auto planar_devicen_view (std::size_t width, std::size_t height, IC c0, IC c1, IC c2, std::ptrdiff_t rowsize_in_bytes) -> typename type_from_x_iterator< planar_pixel_iterator< IC, devicen_t< 3 >>>::view_t
 from 3-channel planar data
 
template<typename IC >
auto planar_devicen_view (std::size_t width, std::size_t height, IC c0, IC c1, IC c2, IC c3, std::ptrdiff_t rowsize_in_bytes) -> typename type_from_x_iterator< planar_pixel_iterator< IC, devicen_t< 4 >>>::view_t
 from 4-channel planar data
 
template<typename IC >
auto planar_devicen_view (std::size_t width, std::size_t height, IC c0, IC c1, IC c2, IC c3, IC c4, std::ptrdiff_t rowsize_in_bytes) -> typename type_from_x_iterator< planar_pixel_iterator< IC, devicen_t< 5 >>>::view_t
 from 5-channel planar data
 
template<typename Iterator >
type_from_x_iterator< Iterator >::view_t interleaved_view (std::size_t width, std::size_t height, Iterator pixels, std::ptrdiff_t rowsize_in_bytes)
 Constructing image views from raw interleaved pixel data.
 
template<typename Iterator >
auto interleaved_view (point< std::size_t > dim, Iterator pixels, std::ptrdiff_t rowsize_in_bytes) -> typename type_from_x_iterator< Iterator >::view_t
 Constructing image views from raw interleaved pixel data.
 
template<typename HomogeneousView >
detail::channel_pointer_type< HomogeneousView >::type interleaved_view_get_raw_data (const HomogeneousView &view)
 Returns C pointer to the the channels of an interleaved homogeneous view.
 
template<typename HomogeneousView >
detail::channel_pointer_type< HomogeneousView >::type planar_view_get_raw_data (const HomogeneousView &view, int plane_index)
 Returns C pointer to the the channels of a given color plane of a planar homogeneous view.
 
template<typename IC >
auto planar_rgb_view (std::size_t width, std::size_t height, IC r, IC g, IC b, std::ptrdiff_t rowsize_in_bytes) -> typename type_from_x_iterator< planar_pixel_iterator< IC, rgb_t > >::view_t
 from raw RGB planar data
 
template<typename ChannelPtr >
auto planar_rgba_view (std::size_t width, std::size_t height, ChannelPtr r, ChannelPtr g, ChannelPtr b, ChannelPtr a, std::ptrdiff_t rowsize_in_bytes) -> typename type_from_x_iterator< planar_pixel_iterator< ChannelPtr, rgba_t > >::view_t
 from raw RGBA planar data
 

Detailed Description

Methods for constructing image views from raw data and for getting raw data from views.

Methods for creating shallow image views from raw pixel data or from other image views - flipping horizontally or vertically, axis-aligned rotation, a subimage, subsampled or n-th channel image view. Derived image views are shallow copies and are fast to construct.