boost::gil::any_image_view

Represents a run‐time specified image view. Models HasDynamicXStepTypeConcept, HasDynamicYStepTypeConcept, Note that this class does NOT model ImageViewConcept

Synopsis

template<typename... Views>
class any_image_view
    : public variant2::variant<Views...>

Description

///////////////////////////////////////////////////////////////////////////////////// CLASS any_image_view

Represents a view whose type (color space, layout, planar/interleaved organization, etc) can be specified at run time. It is the runtime equivalent of image_view. Some of the requirements of ImageViewConcept, such as the value_type alias cannot be fulfilled, since the language does not allow runtime type specification. Other requirements, such as access to the pixels, would be inefficient to provide. Thus any_image_view does not fully model ImageViewConcept. However, many algorithms provide overloads taking runtime specified views and thus in many cases any_image_view can be used in places taking a view.

To perform an algorithm on any_image_view, put the algorithm in a function object and invoke it by calling variant2::visit(algorithm_fn, runtime_view);/////////////////////////////////////////////////////////////////////////////////////

Base Classes

Name

Description

variant2::variant<Views...>

Member Functions

Non-Member Functions

Name

Description

any_color_converted_view

overload of generic color_converted_view with the default color‐converter These are workarounds for GCC 3.4, which thinks color_converted_view is ambiguous with the same method for templated views (in gil/image_view_factory.hpp)

any_color_converted_view

overload of generic color_converted_view with user defined color‐converter These are workarounds for GCC 3.4, which thinks color_converted_view is ambiguous with the same method for templated views (in gil/image_view_factory.hpp)

color_converted_view

overload of generic color_converted_view with user defined color‐converter

color_converted_view

overload of generic color_converted_view with the default color‐converter

copy_and_convert_pixels

Copies and color‐converts pixels between two run‐time typed image views, using the default color converter.

copy_and_convert_pixels

Copies and color‐converts pixels from a run‐time typed image view into a statically‐typed view, using the given color converter.

copy_and_convert_pixels

Copies and color‐converts pixels between two run‐time typed image views, using the given color converter.

copy_and_convert_pixels

Copies and color‐converts pixels from a run‐time typed image view into a statically‐typed view, using the default color converter.

copy_pixels

Copies pixels from a run‐time typed image view into a statically‐typed view.

copy_pixels

Copies pixels between two run‐time typed image views.

equal_pixels

Compares two run‐time typed image views for equality.

equal_pixels

Compares a run‐time typed image view to a statically‐typed view for equality.

fill_pixels

fill_pixels for any image view. The pixel to fill with must be compatible with the current view

flipped_left_right_view

Returns a runtime‐typed view of a runtime source image view, flipped horizontally.

flipped_up_down_view

Returns a runtime‐typed view of a runtime source image view, flipped vertically.

for_each_pixel

std::for_each for any image views

nth_channel_view

Returns a runtime‐typed view over a single channel of a runtime source image view.

rotated180_view

Returns a runtime‐typed view of a runtime source image view, rotated 180 degrees.

rotated90ccw_view

Returns a runtime‐typed view of a runtime source image view, rotated 90 degrees counterclockwise.

rotated90cw_view

Returns a runtime‐typed view of a runtime source image view, rotated 90 degrees clockwise.

subimage_view

Returns a runtime‐typed view over a rectangular subimage of a runtime source image view.

subimage_view

Returns a runtime‐typed view over a rectangular subimage of a runtime source image view.

subsampled_view

Returns a runtime‐typed subsampled view of a runtime source image view.

subsampled_view

Returns a runtime‐typed subsampled view of a runtime source image view.

transposed_view

Returns a runtime‐typed transposed view of a runtime source image view.

Created with MrDocs