STIRA  0.1
Public Member Functions | List of all members
stira::imageanalysis::DistanceTransform Class Reference

class to compute distance transform based on method below Distance Transforms of Sampled Functions P. Felzenszwalb, D. Huttenlocher Theory of Computing, Vol. 8, No. 19, September 2012 http://cs.brown.edu/~pff/dt/ More...

#include <DistanceTransform.h>

Public Member Functions

 DistanceTransform ()
 constructor
 
 ~DistanceTransform ()
 destructor
 
ArrayGrid< double > * Run (ArrayGrid< double > *pGridIn)
 run that computes distance transform of binary image using squared distance More...
 

Detailed Description

class to compute distance transform based on method below Distance Transforms of Sampled Functions P. Felzenszwalb, D. Huttenlocher Theory of Computing, Vol. 8, No. 19, September 2012 http://cs.brown.edu/~pff/dt/

Member Function Documentation

ArrayGrid< double > * stira::imageanalysis::DistanceTransform::Run ( ArrayGrid< double > *  pGridIn)

run that computes distance transform of binary image using squared distance

Parameters
pGridIngrid containing binary input image
Returns
grid with values of distance transform of input image

References stira::imagedata::ArrayGrid< T >::GetHeight(), stira::imagedata::ArrayGrid< T >::GetValue(), stira::imagedata::ArrayGrid< T >::GetWidth(), and stira::imagedata::ArrayGrid< T >::SetValue().


The documentation for this class was generated from the following files: