Macros | Functions
vil_sobel_3x3.hxx File Reference

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

#include "vil_sobel_3x3.h"

Go to the source code of this file.

Macros

#define VIL_SOBEL_3X3_INSTANTIATE(srcT, destT)
 

Functions

template<class srcT , class destT >
void vil_sobel_3x3 (const vil_image_view< srcT > &src, vil_image_view< destT > &grad_ij)
 Apply Sobel 3x3 gradient filter to image. More...
 
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)
 Apply Sobel 3x3 gradient filter to 2D image. More...
 
template<class srcT , class destT >
void vil_sobel_3x3_1plane (const srcT *src, std::ptrdiff_t s_istep, std::ptrdiff_t s_jstep, destT *gi, std::ptrdiff_t gi_istep, std::ptrdiff_t gi_jstep, destT *gj, std::ptrdiff_t gj_istep, std::ptrdiff_t gj_jstep, unsigned ni, unsigned nj)
 run Sobel 3x3 gradient filter on a single plane of an image. More...
 

Detailed Description

Apply sobel gradient filter to an image.

Author
Tim Cootes

Definition in file vil_sobel_3x3.hxx.

Macro Definition Documentation

◆ VIL_SOBEL_3X3_INSTANTIATE

#define VIL_SOBEL_3X3_INSTANTIATE (   srcT,
  destT 
)
Value:
template void vil_sobel_3x3(const vil_image_view< srcT >& src, \
template void vil_sobel_3x3(const vil_image_view< srcT >& src, \
Concrete view of image data of type T held in memory.
Definition: vil_fwd.h:13
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.

Definition at line 165 of file vil_sobel_3x3.hxx.

Function Documentation

◆ vil_sobel_3x3() [1/2]

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

Apply Sobel 3x3 gradient filter to image.

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.hxx.

◆ vil_sobel_3x3() [2/2]

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 
)

Apply Sobel 3x3 gradient filter to 2D image.

Compute gradients of an image using 3x3 Sobel filters.

Definition at line 35 of file vil_sobel_3x3.hxx.

◆ vil_sobel_3x3_1plane()

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

run Sobel 3x3 gradient filter on a single plane of an image.

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.hxx.