image_view_factory.hpp File Reference


Detailed Description

Methods for constructing image views from raw data or other image views /.

/ /

Author:
Lubomir Bourdev and Hailin Jin
/ Adobe Systems Incorporated /
Date:
2005-2007
Last updated on March 9, 2007 / 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.

#include <cassert>
#include <cstddef>
#include "gil_config.hpp"
#include "metafunctions.hpp"
#include "gray.hpp"
#include "color_convert.hpp"

Go to the source code of this file.


Namespaces

namespace  boost
namespace  boost::gil
namespace  boost::gil::detail

Classes

struct  dynamic_xy_step_type
 Returns the type of a view that has a dynamic step along both X and Y. More...
struct  dynamic_xy_step_transposed_type
 Returns the type of a transposed view that has a dynamic step along both X and Y. More...
class  color_convert_deref_fn
 Function object that given a source pixel, returns it converted to a given color space and channel depth. Models: PixelDereferenceAdaptorConcept. More...
struct  color_converted_view_type
 Returns the type of a view that does color conversion upon dereferencing its pixels. More...
struct  nth_channel_deref_fn
 Function object that returns a grayscale reference of the N-th channel of a given reference. Models: PixelDereferenceAdaptorConcept.

If the input is a pixel value or constant reference, the function object is immutable. Otherwise it is mutable (and returns non-const reference to the n-th channel). More...

struct  nth_channel_view_type
 Given a source image view type View, returns the type of an image view over a single channel of View

If the channels in the source view are adjacent in memory (such as planar non-step view or single-channel view) then the return view is a single-channel non-step view. If the channels are non-adjacent (interleaved and/or step view) then the return view is a single-channel step view. More...

struct  kth_channel_deref_fn
 Function object that returns a grayscale reference of the K-th channel (specified as a template parameter) of a given reference. Models: PixelDereferenceAdaptorConcept.

If the input is a pixel value or constant reference, the function object is immutable. Otherwise it is mutable (and returns non-const reference to the k-th channel). More...

struct  kth_channel_view_type
 Given a source image view type View, returns the type of an image view over a given channel of View.

If the channels in the source view are adjacent in memory (such as planar non-step view or single-channel view) then the return view is a single-channel non-step view. If the channels are non-adjacent (interleaved and/or step view) then the return view is a single-channel step view. More...


Functions

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>
type_from_x_iterator< Iterator >
::view_t 
interleaved_view (point2< std::size_t > dim, Iterator pixels, std::ptrdiff_t rowsize_in_bytes)
 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 DstP, typename View, typename CC>
color_converted_view_type
< View, DstP, CC >::type 
color_converted_view (const View &src, CC cc)
 view of a different color space with a user defined color-converter
template<typename DstP, typename View>
color_converted_view_type
< View, DstP >::type 
color_converted_view (const View &src)
 overload of generic color_converted_view with the default color-converter
template<typename View>
dynamic_y_step_type< View >::type flipped_up_down_view (const View &src)
template<typename View>
dynamic_x_step_type< View >::type flipped_left_right_view (const View &src)
template<typename View>
dynamic_xy_step_transposed_type
< View >::type 
transposed_view (const View &src)
template<typename View>
dynamic_xy_step_transposed_type
< View >::type 
rotated90cw_view (const View &src)
template<typename View>
dynamic_xy_step_transposed_type
< View >::type 
rotated90ccw_view (const View &src)
template<typename View>
dynamic_xy_step_type< View >::type rotated180_view (const View &src)
template<typename View>
View subimage_view (const View &src, const typename View::point_t &topleft, const typename View::point_t &dimensions)
template<typename View>
View subimage_view (const View &src, int xMin, int yMin, int width, int height)
template<typename View>
dynamic_xy_step_type< View >::type subsampled_view (const View &src, typename View::coord_t xStep, typename View::coord_t yStep)
template<typename View>
dynamic_xy_step_type< View >::type subsampled_view (const View &src, const typename View::point_t &step)
template<typename View>
nth_channel_view_type< View >::type nth_channel_view (const View &src, int n)
template<int K, typename View>
kth_channel_view_type< K, View >
::type 
kth_channel_view (const View &src)

Generated on Sat May 2 13:50:16 2009 for Generic Image Library by  doxygen 1.5.6