Functions
Point based image transforms

Functions

template<class VOXEL >
void i3d::Negative (Image3d< VOXEL > &img)
template<class VOXELIN , class VOXELOUT >
void i3d::SemiThreshold (const Image3d< VOXELIN > &imgin, Image3d< VOXELOUT > &imgout, VOXELIN t)
template<class T >
void i3d::Threshold (Image3d< T > &i, T t1, T t2=std::numeric_limits< T >::max(), T lower_value=std::numeric_limits< T >::min(), T upper_value=std::numeric_limits< T >::max())
template<class VOXELIN , class VOXELOUT >
void i3d::Threshold (const Image3d< VOXELIN > &imgin, Image3d< VOXELOUT > &imgout, VOXELIN t1, VOXELIN t2=std::numeric_limits< VOXELIN >::max())
template<class VOXELIN , class VOXELOUT , class TF >
void i3d::Threshold (const Image3d< VOXELIN > &imgin, Image3d< VOXELOUT > &imgout, const TF &tf)
template<class T , class OUTVOXEL , class TF >
void i3d::LocalThreshold (const Image3d< T > &, Image3d< OUTVOXEL > &, size_t nx, size_t ny, size_t nz, const TF &)

Function Documentation

template<class VOXEL >
I3D_ALGO_EXPORT void i3d::Negative ( Image3d< VOXEL > &  img)
Todo:
Where this function move to? Function necessary to inverse image colors.
template<class VOXELIN , class VOXELOUT >
I3D_ALGO_EXPORT void i3d::SemiThreshold ( const Image3d< VOXELIN > &  imgin,
Image3d< VOXELOUT > &  imgout,
VOXELIN  t 
)

Set intensities of voxels whose intensities are lower or equal to `t` to minimun.

The rest ot htem is left unchanged.

template<class T >
I3D_ALGO_EXPORT void i3d::Threshold ( Image3d< T > &  img,
t1,
t2,
lower_value,
upper_value 
)

Set intensities of voxels whose intesities are >=t1 and <=t2 to maximum and the others to minimum of the voxel type.

template<class VOXELIN , class VOXELOUT >
I3D_ALGO_EXPORT void i3d::Threshold ( const Image3d< VOXELIN > &  imgin,
Image3d< VOXELOUT > &  imgout,
VOXELIN  t1,
VOXELIN  t2 
)

Thresholding with creation of a new image, possibly of other voxel type.

template<class VOXELIN , class VOXELOUT , class TF >
I3D_ALGO_EXPORT void i3d::Threshold ( const Image3d< VOXELIN > &  imgin,
Image3d< VOXELOUT > &  imgout,
const TF &  tf 
)

Thresholding with creation of a new image, possibly of other voxel type.

The lower threshold is obtained using specified ThresholdFinder tf. The upper threshold is taken as the maximal value of the input image type.

template<class T , class OUTVOXEL , class TF >
I3D_ALGO_EXPORT void i3d::LocalThreshold ( const Image3d< T > &  ,
Image3d< OUTVOXEL > &  ,
size_t  nx,
size_t  ny,
size_t  nz,
const TF &   
)

Perform local thresholding on image in and store its result to binary image out.

The image is devided to nx*ny*nz subregions and a threshold is computed for each such subregion by the threshold finder (see above). An individual threshold for each voxel is computed from the computed thresholds by trilinear interpolation.