Functions
vil_sobel_3x3.cxx File Reference

Apply gradient operator to 2D planes of data. More...

#include "vil_sobel_3x3.h"

Go to the source code of this file.

Functions

template<>
void vil_sobel_3x3_1plane (const unsigned char *src, std::ptrdiff_t s_istep, std::ptrdiff_t s_jstep, float *gi, std::ptrdiff_t gi_istep, std::ptrdiff_t gi_jstep, float *gj, std::ptrdiff_t gj_istep, std::ptrdiff_t gj_jstep, unsigned ni, unsigned nj)
 Compute gradients of single plane of 2D data using 3x3 Sobel filters. More...
 
template<>
void vil_sobel_3x3_1plane (const unsigned char *src, std::ptrdiff_t s_istep, std::ptrdiff_t s_jstep, double *gi, std::ptrdiff_t gi_istep, std::ptrdiff_t gi_jstep, double *gj, std::ptrdiff_t gj_istep, std::ptrdiff_t gj_jstep, unsigned ni, unsigned nj)
 Compute gradients of single plane of 2D data using 3x3 Sobel filters. More...
 
template<>
void vil_sobel_3x3_1plane (const float *src, std::ptrdiff_t s_istep, std::ptrdiff_t s_jstep, float *gi, std::ptrdiff_t gi_istep, std::ptrdiff_t gi_jstep, float *gj, std::ptrdiff_t gj_istep, std::ptrdiff_t gj_jstep, unsigned ni, unsigned nj)
 Compute gradients of single plane of 2D data using 3x3 Sobel filters. More...
 
template<>
void vil_sobel_3x3_1plane (const double *src, std::ptrdiff_t s_istep, std::ptrdiff_t s_jstep, double *gi, std::ptrdiff_t gi_istep, std::ptrdiff_t gi_jstep, double *gj, std::ptrdiff_t gj_istep, std::ptrdiff_t gj_jstep, unsigned ni, unsigned nj)
 Compute gradients of single plane of 2D data using 3x3 Sobel filters. More...
 

Detailed Description

Apply gradient operator to 2D planes of data.

Author
Tim Cootes

Definition in file vil_sobel_3x3.cxx.

Function Documentation

◆ vil_sobel_3x3_1plane() [1/4]

template<>
void vil_sobel_3x3_1plane ( const unsigned char *  src,
std::ptrdiff_t  s_istep,
std::ptrdiff_t  s_jstep,
float *  gi,
std::ptrdiff_t  gi_istep,
std::ptrdiff_t  gi_jstep,
float *  gj,
std::ptrdiff_t  gj_istep,
std::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

Definition at line 11 of file vil_sobel_3x3.cxx.

◆ vil_sobel_3x3_1plane() [2/4]

template<>
void vil_sobel_3x3_1plane ( const unsigned char *  src,
std::ptrdiff_t  s_istep,
std::ptrdiff_t  s_jstep,
double *  gi,
std::ptrdiff_t  gi_istep,
std::ptrdiff_t  gi_jstep,
double *  gj,
std::ptrdiff_t  gj_istep,
std::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

Definition at line 116 of file vil_sobel_3x3.cxx.

◆ vil_sobel_3x3_1plane() [3/4]

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

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

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

Definition at line 221 of file vil_sobel_3x3.cxx.

◆ vil_sobel_3x3_1plane() [4/4]

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

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

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

Definition at line 322 of file vil_sobel_3x3.cxx.