Classes | Functions
vil_structuring_element.h File Reference

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

#include <vector>
#include <iosfwd>
#include <cstddef>

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

std::ostream & operator<< (std::ostream &, const vil_structuring_element &element)
 Write details to stream. More...
 
void vil_compute_offsets (std::vector< std::ptrdiff_t > &offset, const vil_structuring_element &element, std::ptrdiff_t istep, std::ptrdiff_t jstep)
 Generate a list of offsets for use on image with istep,jstep. More...
 

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

◆ operator<<()

std::ostream& operator<< ( std::ostream &  ,
const vil_structuring_element element 
)

Write details to stream.

Definition at line 76 of file vil_structuring_element.cxx.

◆ vil_compute_offsets()

void vil_compute_offsets ( std::vector< std::ptrdiff_t > &  offset,
const vil_structuring_element element,
std::ptrdiff_t  istep,
std::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 88 of file vil_structuring_element.cxx.