Functions
core/vil/algo/vil_structuring_element.cxx File Reference

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

#include "vil_structuring_element.h"
#include <vcl_cassert.h>
#include <vcl_iostream.h>

Go to the source code of this file.

Functions

vcl_ostream & operator<< (vcl_ostream &os, 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.cxx.


Function Documentation

vcl_ostream& operator<< ( vcl_ostream &  os,
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.

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

Definition at line 85 of file vil_structuring_element.cxx.