Functions
vil_structuring_element.cxx File Reference

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

#include <iostream>
#include "vil_structuring_element.h"
#include <cassert>

Go to the source code of this file.

Functions

std::ostream & operator<< (std::ostream &os, 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.cxx.

Function Documentation

◆ operator<<()

std::ostream& operator<< ( std::ostream &  os,
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.

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

Definition at line 88 of file vil_structuring_element.cxx.