Macros | Functions
vil_threshold.hxx File Reference

Apply thresholds to image data. More...

#include "vil_threshold.h"

Go to the source code of this file.

Macros

#define VIL_THRESHOLD_INSTANTIATE(srcT)
 

Functions

template<class srcT >
void vil_threshold_above (const vil_image_view< srcT > &src, vil_image_view< bool > &dest, srcT t)
 Apply threshold such that dest(i,j,p)=true if src(i,j,p)>=t. More...
 
template<class srcT >
void vil_threshold_below (const vil_image_view< srcT > &src, vil_image_view< bool > &dest, srcT t)
 Apply threshold such that dest(i,j,p)=true if src(i,j,p)<=t. More...
 
template<class srcT >
void vil_threshold_inside (const vil_image_view< srcT > &src, vil_image_view< bool > &dest, srcT t0, srcT t1)
 Apply threshold such that dest(i,j,p)=true if t0<=src(i,j,p)<=t1. More...
 
template<class srcT >
void vil_threshold_outside (const vil_image_view< srcT > &src, vil_image_view< bool > &dest, srcT t0, srcT t1)
 Apply threshold such that dest(i,j,p)=true if src(i,j,p)<=t0 or src(i,j,p)>=t1. More...
 

Detailed Description

Apply thresholds to image data.

Author
Tim Cootes

Definition in file vil_threshold.hxx.

Macro Definition Documentation

◆ VIL_THRESHOLD_INSTANTIATE

#define VIL_THRESHOLD_INSTANTIATE (   srcT)
Value:
template void vil_threshold_above(const vil_image_view<srcT >& src, \
vil_image_view<bool >& dest, srcT t); \
template void vil_threshold_below(const vil_image_view<srcT >& src, \
vil_image_view<bool >& dest, srcT t); \
template void vil_threshold_inside(const vil_image_view<srcT >& src, \
vil_image_view<bool >& dest, srcT t0, srcT t1); \
template void vil_threshold_outside(const vil_image_view<srcT >& src, \
vil_image_view<bool >& dest, srcT t0, srcT t1)
void vil_threshold_below(const vil_image_view< srcT > &src, vil_image_view< bool > &dest, srcT t)
Apply threshold such that dest(i,j,p)=true if src(i,j,p)<=t.
void vil_threshold_above(const vil_image_view< srcT > &src, vil_image_view< bool > &dest, srcT t)
Apply threshold such that dest(i,j,p)=true if src(i,j,p)>=t.
Concrete view of image data of type T held in memory.
Definition: vil_fwd.h:13
void vil_threshold_inside(const vil_image_view< srcT > &src, vil_image_view< bool > &dest, srcT t0, srcT t1)
Apply threshold such that dest(i,j,p)=true if t0<=src(i,j,p)<=t1.
void vil_threshold_outside(const vil_image_view< srcT > &src, vil_image_view< bool > &dest, srcT t0, srcT t1)
Apply threshold such that dest(i,j,p)=true if src(i,j,p)<=t0 or src(i,j,p)>=t1.

Definition at line 115 of file vil_threshold.hxx.

Function Documentation

◆ vil_threshold_above()

template<class srcT >
void vil_threshold_above ( const vil_image_view< srcT > &  src,
vil_image_view< bool > &  dest,
srcT  t 
)

Apply threshold such that dest(i,j,p)=true if src(i,j,p)>=t.

Definition at line 12 of file vil_threshold.hxx.

◆ vil_threshold_below()

template<class srcT >
void vil_threshold_below ( const vil_image_view< srcT > &  src,
vil_image_view< bool > &  dest,
srcT  t 
)

Apply threshold such that dest(i,j,p)=true if src(i,j,p)<=t.

Definition at line 38 of file vil_threshold.hxx.

◆ vil_threshold_inside()

template<class srcT >
void vil_threshold_inside ( const vil_image_view< srcT > &  src,
vil_image_view< bool > &  dest,
srcT  t0,
srcT  t1 
)

Apply threshold such that dest(i,j,p)=true if t0<=src(i,j,p)<=t1.

Definition at line 64 of file vil_threshold.hxx.

◆ vil_threshold_outside()

template<class srcT >
void vil_threshold_outside ( const vil_image_view< srcT > &  src,
vil_image_view< bool > &  dest,
srcT  t0,
srcT  t1 
)

Apply threshold such that dest(i,j,p)=true if src(i,j,p)<=t0 or src(i,j,p)>=t1.

Definition at line 90 of file vil_threshold.hxx.