Apply thresholds to image data. More...
#include "vil3d_threshold.h"
Go to the source code of this file.
Defines | |
#define | vil3d_threshold_txx_ |
#define | VIL3D_THRESHOLD_INSTANTIATE(srcT) |
Functions | |
template<class srcT > | |
void | vil3d_threshold_above (const vil3d_image_view< srcT > &src, vil3d_image_view< bool > &dest, srcT t) |
Apply threshold such that dest(i,j,k,p)=true if src(i,j,k,p)>=t. | |
template<class srcT > | |
void | vil3d_threshold_below (const vil3d_image_view< srcT > &src, vil3d_image_view< bool > &dest, srcT t) |
Apply threshold such that dest(i,j,k,p)=true if src(i,j,k,p)<=t. | |
template<class srcT > | |
void | vil3d_threshold_inside (const vil3d_image_view< srcT > &src, vil3d_image_view< bool > &dest, srcT t0, srcT t1) |
Apply threshold such that dest(i,j,k,p)=true if t0<=src(i,j,k,p)<=t1. | |
template<class srcT > | |
void | vil3d_threshold_outside (const vil3d_image_view< srcT > &src, vil3d_image_view< bool > &dest, srcT t0, srcT t1) |
Apply threshold such that dest(i,j,k,p)=true if src(i,j,k,p)<=t0 or src(i,j,k,p)>=t1. |
Apply thresholds to image data.
Definition in file vil3d_threshold.txx.
#define VIL3D_THRESHOLD_INSTANTIATE | ( | srcT | ) |
template void vil3d_threshold_above(const vil3d_image_view<srcT >& src, \ vil3d_image_view<bool >& dest, srcT t); \ template void vil3d_threshold_below(const vil3d_image_view<srcT >& src, \ vil3d_image_view<bool >& dest, srcT t); \ template void vil3d_threshold_inside(const vil3d_image_view<srcT >& src, \ vil3d_image_view<bool >& dest, srcT t0, srcT t1); \ template void vil3d_threshold_outside(const vil3d_image_view<srcT >& src, \ vil3d_image_view<bool >& dest, srcT t0, srcT t1)
Definition at line 143 of file vil3d_threshold.txx.
#define vil3d_threshold_txx_ |
Definition at line 2 of file vil3d_threshold.txx.
void vil3d_threshold_above | ( | const vil3d_image_view< srcT > & | src, |
vil3d_image_view< bool > & | dest, | ||
srcT | t | ||
) |
Apply threshold such that dest(i,j,k,p)=true if src(i,j,k,p)>=t.
Definition at line 12 of file vil3d_threshold.txx.
void vil3d_threshold_below | ( | const vil3d_image_view< srcT > & | src, |
vil3d_image_view< bool > & | dest, | ||
srcT | t | ||
) |
Apply threshold such that dest(i,j,k,p)=true if src(i,j,k,p)<=t.
Definition at line 45 of file vil3d_threshold.txx.
void vil3d_threshold_inside | ( | const vil3d_image_view< srcT > & | src, |
vil3d_image_view< bool > & | dest, | ||
srcT | t0, | ||
srcT | t1 | ||
) |
Apply threshold such that dest(i,j,k,p)=true if t0<=src(i,j,k,p)<=t1.
Definition at line 78 of file vil3d_threshold.txx.
void vil3d_threshold_outside | ( | const vil3d_image_view< srcT > & | src, |
vil3d_image_view< bool > & | dest, | ||
srcT | t0, | ||
srcT | t1 | ||
) |
Apply threshold such that dest(i,j,k,p)=true if src(i,j,k,p)<=t0 or src(i,j,k,p)>=t1.
Definition at line 111 of file vil3d_threshold.txx.