core/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-2006
Last updated on September 24, 2006 / 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"

Go to the source code of this file.


Namespaces

namespace  detail

Classes

class  color_convert_deref_fn
 Function object that dereferences a pixel iterator and returns the pixel, color 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. 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...


interleaved_view, planar_xxx_view

Constructing image views from raw pixel data

template<typename Iterator>
type_from_x_iterator< Iterator
>::view_t 
interleaved_view (int width, int height, Iterator pixels, std::ptrdiff_t rowsize_in_bytes)
 from raw interleaved data

From existing views

constructing views from existing views

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 for GIL default color-convertr
template<typename View>
View::dynamic_y_step_t flipped_up_down_view (const View &src)
 view of a view flipped up-to-down
template<typename View>
View::dynamic_x_step_t flipped_left_right_view (const View &src)
 view of a view flipped left-to-right
template<typename View>
View::dynamic_xy_step_transposed_t transposed_view (const View &src)
 view of a view transposed
template<typename View>
View::dynamic_xy_step_transposed_t rotated90cw_view (const View &src)
 view of a view rotated 90 degrees clockwise
template<typename View>
View::dynamic_xy_step_transposed_t rotated90ccw_view (const View &src)
 view of an image_view rotated 90 degrees counter-clockwise
template<typename View>
View::dynamic_xy_step_t rotated180_view (const View &src)
 view of an image_view rotated 180 degrees
template<typename View>
View subimage_view (const View &src, const typename View::point_t &topleft, const typename View::point_t &dimensions)
 view of an axis-aligned rectangular area within an image_view
template<typename View>
View subimage_view (const View &src, int xMin, int yMin, int width, int height)
 view of a different color space with a user defined color-converter
template<typename View>
View::dynamic_xy_step_t subsampled_view (const View &src, typename View::coord_t xStep, typename View::coord_t yStep)
 view of a subsampled version of an image_view, stepping over a number of channels in X and number of rows in Y
template<typename View>
View::dynamic_xy_step_t subsampled_view (const View &src, const typename View::point_t &step)
 view of a subsampled version of an image_view, stepping over a number of channels in X and number of rows in Y
template<typename View>
nth_channel_view_type< View
>::type 
nth_channel_view (const View &src, int n)
 single-channel (grayscale) view of the N-th channel of a given image_view

Copyright © 2006 Adobe Systems Incorporated.

Use of this website signifies your agreement to the Terms of Use and Online Privacy Policy.

Search powered by Google