boost::gil::binary_operation_obj

A generic binary operation on views

Synopsis

Declared in <boost/gil/algorithm.hpp>

template<
    typename Derived,
    typename Result = void>
struct binary_operation_obj;

Description

Use this class as a convenience superclass when defining an operation for any image views. Many operations have different behavior when the two views are compatible. This class checks for compatibility and invokes apply_compatible(V1,V2) or apply_incompatible(V1,V2) of the subclass. You must provide apply_compatible(V1,V2) method in your subclass, but apply_incompatible(V1,V2) is not required and the default throws std::bad_cast.

Type Aliases

Member Functions

Name

Description

operator()

Function call operators

Created with MrDocs