Classes | Functions
contrib/mul/vil3d/algo/vil3d_structuring_element.h File Reference

Structuring element for 3D morphology represented as a list of non-zero pixels. More...

#include <vcl_vector.h>
#include <vcl_iosfwd.h>
#include <vcl_cstddef.h>

Go to the source code of this file.

Classes

class  vil3d_structuring_element
 Structuring element for morphology represented as a list of non-zero pixels. More...

Functions

vcl_ostream & operator<< (vcl_ostream &, const vil3d_structuring_element &element)
 Write details to stream.
void vil3d_compute_offsets (vcl_vector< vcl_ptrdiff_t > &offset, const vil3d_structuring_element &element, vcl_ptrdiff_t istep, vcl_ptrdiff_t jstep, vcl_ptrdiff_t kstep)
 Generate a list of offsets for use on image with istep,jstep.

Detailed Description

Structuring element for 3D morphology represented as a list of non-zero pixels.

Author:
Tim Cootes

Definition in file vil3d_structuring_element.h.


Function Documentation

vcl_ostream& operator<< ( vcl_ostream &  ,
const vil3d_structuring_element element 
)

Write details to stream.

Definition at line 206 of file vil3d_structuring_element.cxx.

void vil3d_compute_offsets ( vcl_vector< vcl_ptrdiff_t > &  offset,
const vil3d_structuring_element element,
vcl_ptrdiff_t  istep,
vcl_ptrdiff_t  jstep,
vcl_ptrdiff_t  kstep 
)

Generate a list of offsets for use on image with istep,jstep.

On exit offset[a] = element.p_i()[a]*istep + element.p_j()[a]*jstep + element.p_k()[a]*kstep

Gives an efficient way of looping through all the pixels in the structuring element

Definition at line 221 of file vil3d_structuring_element.cxx.