Defines | Functions
contrib/mul/vil3d/algo/vil3d_grad_1x3.txx File Reference

Apply grad gradient filter to an image. More...

#include "vil3d_grad_1x3.h"
#include <vil3d/vil3d_plane.h>
#include <vil3d/vil3d_slice.h>

Go to the source code of this file.

Defines

#define vil3d_grad_1x3_txx_
#define vil3d_GRAD_1X3_INSTANTIATE(srcT, destT)

Functions

template<class srcT , class gradT , class accumT >
void vil3d_grad_1x3_1dir (const srcT *src, gradT *grad, vcl_ptrdiff_t delta_step, vcl_ptrdiff_t isrc, vcl_ptrdiff_t jsrc, vcl_ptrdiff_t ksrc, vcl_ptrdiff_t igrad, vcl_ptrdiff_t jgrad, vcl_ptrdiff_t kgrad, unsigned ni, unsigned nj, unsigned nk, accumT)
 Compute 1 gradient of single plane of 3D data using 1x3 grad filters.
template<class srcT , class destT >
void vil3d_grad_1x3 (const vil3d_image_view< srcT > &src, vil3d_image_view< destT > &grad_ijk)
 Compute gradients of an image using (-0.5 0 0.5) grad filters.
template<class srcT , class destT >
void vil3d_grad_1x3 (const vil3d_image_view< srcT > &src, vil3d_image_view< destT > &grad_i, vil3d_image_view< destT > &grad_j, vil3d_image_view< destT > &grad_k)
 Apply grad 1x3 gradient filter to 3D image.
template<class srcT , class destT >
void vil3d_grad_1x3_mag_sq (const vil3d_image_view< srcT > &src, vil3d_image_view< destT > &grad_mag2)
 Compute square gradient magnitude of 3D image.

Detailed Description

Apply grad gradient filter to an image.

Author:
Tim Cootes

Definition in file vil3d_grad_1x3.txx.


Define Documentation

#define vil3d_GRAD_1X3_INSTANTIATE (   srcT,
  destT 
)
Value:

Definition at line 147 of file vil3d_grad_1x3.txx.

#define vil3d_grad_1x3_txx_

Definition at line 3 of file vil3d_grad_1x3.txx.


Function Documentation

template<class srcT , class destT >
void vil3d_grad_1x3 ( const vil3d_image_view< srcT > &  src,
vil3d_image_view< destT > &  grad_ijk 
)

Compute gradients of an image using (-0.5 0 0.5) grad filters.

Compute gradients of an image using (-0.5 0 0.5) filters.

Computes both i,j and k gradients of an ni x nj x nk plane of data 1 pixel border around grad images is set to zero

Definition at line 54 of file vil3d_grad_1x3.txx.

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

Apply grad 1x3 gradient filter to 3D image.

Compute gradients of an image using (-0.5 0 0.5) Sobel filters.

Definition at line 91 of file vil3d_grad_1x3.txx.

template<class srcT , class gradT , class accumT >
void vil3d_grad_1x3_1dir ( const srcT *  src,
gradT *  grad,
vcl_ptrdiff_t  delta_step,
vcl_ptrdiff_t  isrc,
vcl_ptrdiff_t  jsrc,
vcl_ptrdiff_t  ksrc,
vcl_ptrdiff_t  igrad,
vcl_ptrdiff_t  jgrad,
vcl_ptrdiff_t  kgrad,
unsigned  ni,
unsigned  nj,
unsigned  nk,
accumT   
)

Compute 1 gradient of single plane of 3D data using 1x3 grad filters.

Definition at line 20 of file vil3d_grad_1x3.txx.

template<class srcT , class destT >
void vil3d_grad_1x3_mag_sq ( const vil3d_image_view< srcT > &  src,
vil3d_image_view< destT > &  grad_mag2 
)

Compute square gradient magnitude of 3D image.

Use (-0.5,0,+0.5) filters in i,j,k

Definition at line 130 of file vil3d_grad_1x3.txx.