Adobe Systems, Inc.

image_view_factory.hpp File Reference

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

#include <cassert>
#include "gil_config.hpp"
#include "image.hpp"
#include "color_convert.hpp"

Go to the source code of this file.


Namespaces

namespace  detail

Classes

struct  detail::__nth_channel_view< VIEW, CHANNELS_TOGETHER >
struct  detail::__nth_channel_view< VIEW, true >
struct  detail::_color_convert_view_type< SRC_VIEW, DST_P, SRC_P >
struct  detail::_color_convert_view_type< SRC_VIEW, DST_P, DST_P >
struct  color_convert_view_type< SRC_VIEW, DST_P >
 Returns the type of a view that does color conversion upon dereferencing its pixels. More...
struct  nth_channel_view_type< VIEW >
 Given a source image view type VIEW, returns the related types of an image view and x_iterator over a single channel of VIEW. More...

From existing views

constructing views from existing views

template<typename DST_P, typename VIEW>
color_convert_view_type< VIEW,
DST_P >::type 
color_converted_view (const VIEW &src)
template<typename VIEW>
VIEW::dynamic_step_t flipped_left_right_view (const VIEW &src)
template<typename VIEW>
VIEW flipped_up_down_view (const VIEW &src)
template<typename VIEW>
nth_channel_view_type< VIEW
>::type 
nth_channel_view (const VIEW &src, int n)
template<typename VIEW>
VIEW::dynamic_step_t rotated180_view (const VIEW &src)
template<typename VIEW>
VIEW::dynamic_step_t rotated90ccw_view (const VIEW &src)
template<typename VIEW>
VIEW::dynamic_step_t rotated90cw_view (const VIEW &src)
template<typename VIEW>
VIEW subimage_view (const VIEW &src, int xMin, int yMin, int width, int height)
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::dynamic_step_t subsampled_view (const VIEW &src, const typename VIEW::point_t &step)
template<typename VIEW>
VIEW::dynamic_step_t subsampled_view (const VIEW &src, typename VIEW::coord_t xStep, typename VIEW::coord_t yStep)
template<typename VIEW>
VIEW::dynamic_step_t transposed_view (const VIEW &src)

interleaved_view, planar_xxx_view

Constructing image views from raw pixel data

template<typename IT>
type_from_x_iterator< IT
>::view_t 
interleaved_view (int width, int height, IT pixels, std::ptrdiff_t rowsize_in_bytes)
template<typename IC>
type_from_x_iterator< planar_ptr<
IC, cmyk_t > >::view_t 
planar_cmyk_view (int width, int height, IC c, IC m, IC y, IC k, std::ptrdiff_t rowsize_in_bytes)
template<typename IC>
type_from_x_iterator< planar_ptr<
IC, hsb_t > >::view_t 
planar_hsb_view (int width, int height, IC h, IC s, IC b, std::ptrdiff_t rowsize_in_bytes)
template<typename IC>
type_from_x_iterator< planar_ptr<
IC, lab_t > >::view_t 
planar_lab_view (int width, int height, IC l, IC a, IC b, std::ptrdiff_t rowsize_in_bytes)
template<typename IC>
type_from_x_iterator< planar_ptr<
IC, rgb_t > >::view_t 
planar_rgb_view (int width, int height, IC r, IC g, IC b, std::ptrdiff_t rowsize_in_bytes)
template<typename IC>
type_from_x_iterator< planar_ptr<
IC, rgba_t > >::view_t 
planar_rgba_view (int width, int height, IC r, IC g, IC b, IC a, std::ptrdiff_t rowsize_in_bytes)

Detailed Description

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

Definition in file core/image_view_factory.hpp.

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