Classes | Functions
core/vil/vil_clamp.h File Reference
#include <vil/vil_image_resource.h>
#include <vil/vil_image_view.h>
#include <vcl_cassert.h>

Go to the source code of this file.

Classes

class  vil_clamp_image_resource
 A generic_image adaptor that behaves like a clamped version of its input. More...

Functions

template<class T >
void vil_clamp (const vil_image_view< T > &src, vil_image_view< T > &dest, T lo, T hi)
 Clamp an image view between two values.
vil_image_resource_sptr vil_clamp (const vil_image_resource_sptr &src, double low, double hi)
 Clamp an image resource between two values.
template<class T >
void vil_clamp_below (vil_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 vil_clamp_below (vil_image_view< T > &src, T t)
 Clamp an image view above a given value t, setting it to this t if below t.

Detailed Description

Author:
Ian Scott.
    Modifications
     06 May 2004 Jocelyn Marchadier - added vil_clamp_below
   

Definition in file vil_clamp.h.


Function Documentation

template<class T >
void vil_clamp ( const vil_image_view< T > &  src,
vil_image_view< T > &  dest,
lo,
hi 
) [inline]

Clamp an image view between two values.

Definition at line 23 of file vil_clamp.h.

vil_image_resource_sptr vil_clamp ( const vil_image_resource_sptr src,
double  low,
double  hi 
)

Clamp an image resource between two values.

Definition at line 22 of file vil_clamp.cxx.

template<class T >
void vil_clamp_below ( vil_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 85 of file vil_clamp.h.

template<class T >
void vil_clamp_below ( vil_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 105 of file vil_clamp.h.