Apply grad gradient filter to an image. More...
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. |
Apply grad gradient filter to an image.
Definition in file vil3d_grad_1x3.txx.
#define vil3d_GRAD_1X3_INSTANTIATE | ( | srcT, | |
destT | |||
) |
template void vil3d_grad_1x3(const vil3d_image_view< srcT >& src, \ vil3d_image_view<destT >& grad_ijk); \ template 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); \ template void vil3d_grad_1x3_mag_sq(const vil3d_image_view<srcT >& src, \ vil3d_image_view<destT >& grad_mag2)
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.
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.
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.
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.
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.