Functions
core/vil/algo/vil_sobel_3x3.h File Reference

Apply 3x3 sobel operator to image data. More...

#include <vil/vil_image_view.h>

Go to the source code of this file.

Functions

template<class srcT , class destT >
void vil_sobel_3x3 (const vil_image_view< srcT > &src, vil_image_view< destT > &grad_i, vil_image_view< destT > &grad_j)
 Compute gradients of an image using 3x3 Sobel filters.
template<class srcT , class destT >
void vil_sobel_3x3 (const vil_image_view< srcT > &src, vil_image_view< destT > &grad_ij)
 Compute gradients of an image using 3x3 Sobel filters.
template<class srcT , class destT >
void vil_sobel_3x3_1plane (const srcT *src, vcl_ptrdiff_t s_istep, vcl_ptrdiff_t s_jstep, destT *gi, vcl_ptrdiff_t gi_istep, vcl_ptrdiff_t gi_jstep, destT *gj, vcl_ptrdiff_t gj_istep, vcl_ptrdiff_t gj_jstep, unsigned ni, unsigned nj)
 Compute gradients of single plane of 2D data using 3x3 Sobel filters.
VCL_DEFINE_SPECIALIZATION void vil_sobel_3x3_1plane (const unsigned char *src, vcl_ptrdiff_t s_istep, vcl_ptrdiff_t s_jstep, float *gi, vcl_ptrdiff_t gi_istep, vcl_ptrdiff_t gi_jstep, float *gj, vcl_ptrdiff_t gj_istep, vcl_ptrdiff_t gj_jstep, unsigned ni, unsigned nj)
 Compute gradients of single plane of 2D data using 3x3 Sobel filters.
VCL_DEFINE_SPECIALIZATION void vil_sobel_3x3_1plane (const unsigned char *src, vcl_ptrdiff_t s_istep, vcl_ptrdiff_t s_jstep, double *gi, vcl_ptrdiff_t gi_istep, vcl_ptrdiff_t gi_jstep, double *gj, vcl_ptrdiff_t gj_istep, vcl_ptrdiff_t gj_jstep, unsigned ni, unsigned nj)
 Compute gradients of single plane of 2D data using 3x3 Sobel filters.
VCL_DEFINE_SPECIALIZATION void vil_sobel_3x3_1plane (const float *src, vcl_ptrdiff_t s_istep, vcl_ptrdiff_t s_jstep, float *gi, vcl_ptrdiff_t gi_istep, vcl_ptrdiff_t gi_jstep, float *gj, vcl_ptrdiff_t gj_istep, vcl_ptrdiff_t gj_jstep, unsigned ni, unsigned nj)
 Compute gradients of single plane of 2D data using 3x3 Sobel filters.
VCL_DEFINE_SPECIALIZATION void vil_sobel_3x3_1plane (const double *src, vcl_ptrdiff_t s_istep, vcl_ptrdiff_t s_jstep, double *gi, vcl_ptrdiff_t gi_istep, vcl_ptrdiff_t gi_jstep, double *gj, vcl_ptrdiff_t gj_istep, vcl_ptrdiff_t gj_jstep, unsigned ni, unsigned nj)
 Compute gradients of single plane of 2D data using 3x3 Sobel filters.

Detailed Description

Apply 3x3 sobel operator to image data.

Author:
Tim Cootes

Definition in file vil_sobel_3x3.h.


Function Documentation

template<class srcT , class destT >
void vil_sobel_3x3 ( const vil_image_view< srcT > &  src,
vil_image_view< destT > &  grad_i,
vil_image_view< destT > &  grad_j 
)

Compute gradients of an image using 3x3 Sobel filters.

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

Definition at line 35 of file vil_sobel_3x3.txx.

template<class srcT , class destT >
void vil_sobel_3x3 ( const vil_image_view< srcT > &  src,
vil_image_view< destT > &  grad_ij 
)

Compute gradients of an image using 3x3 Sobel filters.

Computes both i and j gradients of an nx x ny plane of data grad_ij has twice as many planes as src, with dest plane (2i) being the i-gradient of source plane i and dest plane (2i+1) being the j-gradient. 1 pixel border around grad images is set to zero

Compute gradients of an image using 3x3 Sobel filters.

dest has twice as many planes as src, with dest plane (2i) being the i-gradient of source plane i and dest plane (2i+1) being the j-gradient.

Definition at line 15 of file vil_sobel_3x3.txx.

template<class srcT , class destT >
void vil_sobel_3x3_1plane ( const srcT *  src,
vcl_ptrdiff_t  s_istep,
vcl_ptrdiff_t  s_jstep,
destT *  gi,
vcl_ptrdiff_t  gi_istep,
vcl_ptrdiff_t  gi_jstep,
destT *  gj,
vcl_ptrdiff_t  gj_istep,
vcl_ptrdiff_t  gj_jstep,
unsigned  ni,
unsigned  nj 
)

Compute gradients of single plane of 2D data using 3x3 Sobel filters.

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

Compute gradients of single plane of 2D data using 3x3 Sobel filters.

Computes both i and j gradients of an ni x nj plane of data

Definition at line 57 of file vil_sobel_3x3.txx.

VCL_DEFINE_SPECIALIZATION void vil_sobel_3x3_1plane ( const unsigned char *  src,
vcl_ptrdiff_t  s_istep,
vcl_ptrdiff_t  s_jstep,
float *  gi,
vcl_ptrdiff_t  gi_istep,
vcl_ptrdiff_t  gi_jstep,
float *  gj,
vcl_ptrdiff_t  gj_istep,
vcl_ptrdiff_t  gj_jstep,
unsigned  ni,
unsigned  nj 
)

Compute gradients of single plane of 2D data using 3x3 Sobel filters.

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

Computes both i and j gradients of an ni x nj plane of data

Definition at line 11 of file vil_sobel_3x3.cxx.

VCL_DEFINE_SPECIALIZATION void vil_sobel_3x3_1plane ( const unsigned char *  src,
vcl_ptrdiff_t  s_istep,
vcl_ptrdiff_t  s_jstep,
double *  gi,
vcl_ptrdiff_t  gi_istep,
vcl_ptrdiff_t  gi_jstep,
double *  gj,
vcl_ptrdiff_t  gj_istep,
vcl_ptrdiff_t  gj_jstep,
unsigned  ni,
unsigned  nj 
)

Compute gradients of single plane of 2D data using 3x3 Sobel filters.

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

Computes both i and j gradients of an ni x nj plane of data

Definition at line 116 of file vil_sobel_3x3.cxx.

VCL_DEFINE_SPECIALIZATION void vil_sobel_3x3_1plane ( const float *  src,
vcl_ptrdiff_t  s_istep,
vcl_ptrdiff_t  s_jstep,
float *  gi,
vcl_ptrdiff_t  gi_istep,
vcl_ptrdiff_t  gi_jstep,
float *  gj,
vcl_ptrdiff_t  gj_istep,
vcl_ptrdiff_t  gj_jstep,
unsigned  ni,
unsigned  nj 
)

Compute gradients of single plane of 2D data using 3x3 Sobel filters.

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

Computes both x and j gradients of an nx x nj plane of data

Definition at line 221 of file vil_sobel_3x3.cxx.

VCL_DEFINE_SPECIALIZATION void vil_sobel_3x3_1plane ( const double *  src,
vcl_ptrdiff_t  s_istep,
vcl_ptrdiff_t  s_jstep,
double *  gi,
vcl_ptrdiff_t  gi_istep,
vcl_ptrdiff_t  gi_jstep,
double *  gj,
vcl_ptrdiff_t  gj_istep,
vcl_ptrdiff_t  gj_jstep,
unsigned  ni,
unsigned  nj 
)

Compute gradients of single plane of 2D data using 3x3 Sobel filters.

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

Computes both x and j gradients of an nx x nj plane of data

Definition at line 322 of file vil_sobel_3x3.cxx.