Classes | Functions
core/vil/algo/vil_structuring_element.h File Reference

Structuring element for 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  vil_structuring_element
 Structuring element for morphology represented as a list of non-zero pixels. More...

Functions

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

Detailed Description

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

Author:
Tim Cootes

Definition in file vil_structuring_element.h.


Function Documentation

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

Write details to stream.

Definition at line 73 of file vil_structuring_element.cxx.

void vil_compute_offsets ( vcl_vector< vcl_ptrdiff_t > &  offset,
const vil_structuring_element element,
vcl_ptrdiff_t  istep,
vcl_ptrdiff_t  jstep 
)

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

On exit offset[k] = element.p_i()[k]*istep + element.p_j()[k]*jstep Gives an efficient way of looping through all the pixels in the structuring element

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

Definition at line 85 of file vil_structuring_element.cxx.