TuttleOFX  1
terry::numeric Namespace Reference

Data Structures

struct  channel_assigns_t
struct  pixel_assigns_t
struct  pixel_assigns_color_t
struct  pixel_assigns_scalar_t
struct  pixel_assigns_min_t
 construct for setting a pixel to the min channel value (see channel_traits::min_value) More...
struct  pixel_assigns_max_t
 construct for setting a pixel to the max channel value (see channel_traits::max_value) More...
struct  channel_clamp_lower_than_t
struct  pixel_clamp_lower_than_t
struct  channel_zeros_t
struct  pixel_zeros_t
 construct for setting a pixel to zero (for whatever zero means) More...
struct  channel_ones_t
struct  pixel_ones_t
 construct for setting a pixel to zero (for whatever zero means) More...
struct  channel_log10_t
struct  pixel_log10_t
struct  pixel_matrix33_multiply_t
struct  channel_assign_min_t
 ch2 = min( ch1, ch2 ) structure for adding one channel to another this is a generic implementation; user should specialize it for better performance More...
struct  pixel_assign_min_t
 p2 = min( p1, p2 ) More...
struct  channel_assign_max_t
 ch2 = max( ch1, ch2 ) this is a generic implementation; user should specialize it for better performance More...
struct  pixel_assign_max_t
 p2 = max( p1, p2 ) More...
struct  pixel_minmax_by_channel_t
struct  channel_plus_t
struct  pixel_plus_t
 construct for adding two pixels More...
struct  channel_minus_t
struct  pixel_minus_t
 construct for subtracting two pixels More...
struct  channel_multiplies_t
struct  pixel_multiplies_t
 construct for adding two pixels More...
struct  channel_divides_t
struct  pixel_divides_t
 construct for subtracting two pixels More...
struct  channel_plus_scalar_t
struct  channel_minus_scalar_t
struct  channel_multiplies_scalar_t
struct  pixel_multiplies_scalar_t
 construct for multiplying scalar to a pixel More...
struct  channel_divides_scalar_t
struct  pixel_divides_scalar_t
 construct for dividing a pixel by a scalar More...
struct  channel_halves_t
struct  pixel_halves_t
 construct for dividing a pixel by 2 More...
struct  channel_plus_assign_t
 ch2 += ch1 structure for adding one channel to another this is a generic implementation; user should specialize it for better performance More...
struct  pixel_plus_assign_t
 p2 += p1 More...
struct  channel_minus_assign_t
 ch2 -= ch1 structure for subtracting one channel from another this is a generic implementation; user should specialize it for better performance More...
struct  pixel_minus_assign_t
 p2 -= p1 More...
struct  channel_multiplies_assign_t
 ch2 *= ch1 structure for multiplying one channel to another this is a generic implementation; user should specialize it for better performance More...
struct  channel_divides_assign_t
 ch2 /= ch1 structure for dividing channels this is a generic implementation; user should specialize it for better performance More...
struct  channel_plus_scalar_assign_t
 ch += s structure for adding a scalar to a channel this is a generic implementation; user should specialize it for better performance More...
struct  channel_minus_scalar_assign_t
 ch -= s structure for subtracting a scalar from a channel this is a generic implementation; user should specialize it for better performance More...
struct  channel_multiplies_scalar_assign_t
 ch *= s structure for multiplying a scalar to one channel this is a generic implementation; user should specialize it for better performance More...
struct  pixel_multiplies_scalar_assign_t
 p *= s More...
struct  channel_divides_scalar_assign_t
 ch /= s structure for dividing a channel by a scalar this is a generic implementation; user should specialize it for better performance More...
struct  pixel_divides_scalar_assign_t
 p /= s More...
struct  channel_pow_t
struct  pixel_pow_t
 construct to compute pow on a pixel More...
struct  channel_scalar_pow_t
struct  pixel_scalar_pow_t
 construct to compute pow of a scalar by the pixel value More...
struct  pixel_scale_t
 Rescale pixel values. Usefull to normalize an image. More...
struct  channel_sqrt_t
struct  pixel_sqrt_t

Functions

template<typename Pixel , typename PixelR >
GIL_FORCEINLINE void pixel_assigns (const Pixel &src, Pixel &dst)
template<typename Scalar , typename PixelR >
GIL_FORCEINLINE void pixel_assigns_scalar (const Scalar s, PixelR &dst)
template<typename SrcIterator , typename DstIterator >
GIL_FORCEINLINE DstIterator assign_pixels (SrcIterator src, SrcIterator src_end, DstIterator dst)
template<typename Pixel >
GIL_FORCEINLINE void pixel_assigns_min (Pixel &p)
template<typename Pixel >
GIL_FORCEINLINE void pixel_assigns_max (Pixel &p)
template<typename Pixel >
GIL_FORCEINLINE Pixel & pixel_zeros (Pixel &p)
template<typename Pixel >
GIL_FORCEINLINE Pixel pixel_zeros ()
template<typename Pixel >
GIL_FORCEINLINE Pixel & pixel_ones (Pixel &p)
template<typename Pixel >
GIL_FORCEINLINE Pixel pixel_ones ()
template<typename Pixel >
GIL_FORCEINLINE void pixel_halves (Pixel &p)
template<typename PixelAccum , typename SrcView , typename Scalar , typename DstView >
GIL_FORCEINLINE void view_multiplies_scalar (const SrcView &src, const Scalar &scalar, const DstView &dst)
 destination is set to be product of the source and a scalar

Function Documentation

template<typename SrcIterator , typename DstIterator >
GIL_FORCEINLINE DstIterator terry::numeric::assign_pixels ( SrcIterator  src,
SrcIterator  src_end,
DstIterator  dst 
)

Definition at line 108 of file assign.hpp.

References terry::algorithm::for_each().

Referenced by terry::filter::detail::correlate_rows_imp().

Here is the call graph for this function:

template<typename Pixel , typename PixelR >
GIL_FORCEINLINE void terry::numeric::pixel_assigns ( const Pixel &  src,
Pixel &  dst 
)

Definition at line 72 of file assign.hpp.

template<typename Pixel >
GIL_FORCEINLINE void terry::numeric::pixel_assigns_max ( Pixel &  p)
template<typename Pixel >
GIL_FORCEINLINE void terry::numeric::pixel_assigns_min ( Pixel &  p)
template<typename Scalar , typename PixelR >
GIL_FORCEINLINE void terry::numeric::pixel_assigns_scalar ( const Scalar  s,
PixelR &  dst 
)

Definition at line 100 of file assign.hpp.

template<typename Pixel >
GIL_FORCEINLINE void terry::numeric::pixel_halves ( Pixel &  p)

Definition at line 256 of file operations.hpp.

template<typename Pixel >
GIL_FORCEINLINE Pixel& terry::numeric::pixel_ones ( Pixel &  p)

Definition at line 82 of file init.hpp.

template<typename Pixel >
GIL_FORCEINLINE Pixel terry::numeric::pixel_ones ( )

Definition at line 89 of file init.hpp.

template<typename Pixel >
GIL_FORCEINLINE Pixel& terry::numeric::pixel_zeros ( Pixel &  p)

Definition at line 43 of file init.hpp.

Referenced by terry::color::color_transformation_step().

template<typename Pixel >
GIL_FORCEINLINE Pixel terry::numeric::pixel_zeros ( )

Definition at line 50 of file init.hpp.

template<typename PixelAccum , typename SrcView , typename Scalar , typename DstView >
GIL_FORCEINLINE void terry::numeric::view_multiplies_scalar ( const SrcView &  src,
const Scalar &  scalar,
const DstView &  dst 
)

destination is set to be product of the source and a scalar

Definition at line 13 of file scalar.hpp.

References height.