Functions
contrib/mul/vil3d/vil3d_clamp.h File Reference
#include <vil3d/vil3d_image_view.h>
#include <vcl_cassert.h>

Go to the source code of this file.

Functions

template<class T >
void vil3d_clamp (vil3d_image_view< T > &src, vil3d_image_view< T > &dest, T lo, T hi)
 Clamp an image view between two values.
template<class T >
void vil3d_clamp_below (vil3d_image_view< T > &src, T t, T v)
 Clamp an image view above a given value t, setting it to v if below or on t.
template<class T >
void vil3d_clamp_below (vil3d_image_view< T > &src, T t)
 Clamp an image view above a given value t, setting it to this t if below t.
template<class T >
void vil3d_clamp_above (vil3d_image_view< T > &src, T t, T v)
 Clamp an image view below a given value t, setting it to v if above or on t.
template<class T >
void vil3d_clamp_above (vil3d_image_view< T > &src, T t)
 Clamp an image view below a given value t, setting it to this t if above t.

Detailed Description

Author:
Ian Scott.

Definition in file vil3d_clamp.h.


Function Documentation

template<class T >
void vil3d_clamp ( vil3d_image_view< T > &  src,
vil3d_image_view< T > &  dest,
lo,
hi 
) [inline]

Clamp an image view between two values.

Definition at line 18 of file vil3d_clamp.h.

template<class T >
void vil3d_clamp_above ( vil3d_image_view< T > &  src,
t,
v 
) [inline]

Clamp an image view below a given value t, setting it to v if above or on t.

Definition at line 71 of file vil3d_clamp.h.

template<class T >
void vil3d_clamp_above ( vil3d_image_view< T > &  src,
t 
) [inline]

Clamp an image view below a given value t, setting it to this t if above t.

Definition at line 96 of file vil3d_clamp.h.

template<class T >
void vil3d_clamp_below ( vil3d_image_view< T > &  src,
t,
v 
) [inline]

Clamp an image view above a given value t, setting it to v if below or on t.

Definition at line 38 of file vil3d_clamp.h.

template<class T >
void vil3d_clamp_below ( vil3d_image_view< T > &  src,
t 
) [inline]

Clamp an image view above a given value t, setting it to this t if below t.

Definition at line 63 of file vil3d_clamp.h.