Functions
contrib/mul/vil3d/algo/vil3d_grad_3x3x3.h File Reference

Compute gradient using 3D version of sobel operator. More...

#include <vil3d/algo/vil3d_grad_1x3.h>
#include <vil3d/algo/vil3d_smooth_121.h>

Go to the source code of this file.

Functions

template<class srcT , class destT >
void vil3d_grad_3x3x3_i (const vil3d_image_view< srcT > &src_im, vil3d_image_view< destT > &grad_im)
 Compute i-gradient using 3D version of sobel operator.
template<class srcT , class destT >
void vil3d_grad_3x3x3_j (const vil3d_image_view< srcT > &src_im, vil3d_image_view< destT > &grad_im)
 Compute j-gradient using 3D version of sobel operator.
template<class srcT , class destT >
void vil3d_grad_3x3x3_k (const vil3d_image_view< srcT > &src_im, vil3d_image_view< destT > &grad_im)
 Compute k-gradient using 3D version of sobel operator.
template<class srcT , class destT >
void vil3d_grad_3x3x3 (const vil3d_image_view< srcT > &src_im, vil3d_image_view< destT > &grad_i, vil3d_image_view< destT > &grad_j, vil3d_image_view< destT > &grad_k)
 Compute gradients using 3D version of sobel operator.

Detailed Description

Compute gradient using 3D version of sobel operator.

Author:
Tim Cootes

Definition in file vil3d_grad_3x3x3.h.


Function Documentation

template<class srcT , class destT >
void vil3d_grad_3x3x3 ( const vil3d_image_view< srcT > &  src_im,
vil3d_image_view< destT > &  grad_i,
vil3d_image_view< destT > &  grad_j,
vil3d_image_view< destT > &  grad_k 
)

Compute gradients using 3D version of sobel operator.

Resulting images have same size as src_im. Border pixels set to zero. Smooths in two directions with 1-2-1 filters, then applies (-0.5 0 0.5) filter along the third. Intermediate images of type destT

Definition at line 60 of file vil3d_grad_3x3x3.h.

template<class srcT , class destT >
void vil3d_grad_3x3x3_i ( const vil3d_image_view< srcT > &  src_im,
vil3d_image_view< destT > &  grad_im 
)

Compute i-gradient using 3D version of sobel operator.

Resulting image has same size. Border pixels set to zero. Smooths in j and k with 1-2-1 filters, then applies (-0.5 0 0.5) filter along i. Intermediate images of type destT

Definition at line 17 of file vil3d_grad_3x3x3.h.

template<class srcT , class destT >
void vil3d_grad_3x3x3_j ( const vil3d_image_view< srcT > &  src_im,
vil3d_image_view< destT > &  grad_im 
)

Compute j-gradient using 3D version of sobel operator.

Resulting image has same size. Border pixels set to zero. Smooths in i and k with 1-2-1 filters, then applies (-0.5 0 0.5) filter along j. Intermediate images of type destT

Definition at line 31 of file vil3d_grad_3x3x3.h.

template<class srcT , class destT >
void vil3d_grad_3x3x3_k ( const vil3d_image_view< srcT > &  src_im,
vil3d_image_view< destT > &  grad_im 
)

Compute k-gradient using 3D version of sobel operator.

Resulting image has same size. Border pixels set to zero. Smooths in i and j with 1-2-1 filters, then applies (-0.5 0 0.5) filter along k. Intermediate images of type destT

Definition at line 46 of file vil3d_grad_3x3x3.h.