iRoCS Toolbox
1.1.0
|
The DistanceTransform class computes the exact euclidean distance transform of binary images. More...
#include "libArrayToolbox/DistanceTransform.hh"
Static Public Member Functions | |
static void | getDistanceInPixels (Array< double, Dim > &distances, Array< DataT, Dim > const &data, EuclideanDistanceTransformBase::Mode mode=EuclideanDistanceTransformBase::DistanceToForeground, DataT fg=traits< DataT >::one, iRoCS::ProgressReporter *pr=NULL) |
Binary n-D euclidean distance transform. More... | |
static void | getDistanceInPixels (blitz::Array< double, Dim > &distances, blitz::Array< DataT, Dim > const &data, blitz::TinyVector< double, Dim > const &, EuclideanDistanceTransformBase::Mode mode=EuclideanDistanceTransformBase::DistanceToForeground, DataT fg=traits< DataT >::one, iRoCS::ProgressReporter *pr=NULL) |
Binary n-D euclidean distance transform. More... | |
static void | getNearestPixels (Array< blitz::TinyVector< BlitzIndexT, Dim >, Dim > &nearestPixels, Array< DataT, Dim > const &data, EuclideanDistanceTransformBase::Mode mode=EuclideanDistanceTransformBase::DistanceToForeground, DataT fg=traits< DataT >::one, iRoCS::ProgressReporter *pr=NULL) |
Binary n-D euclidean distance transform. More... | |
static void | getNearestPixels (blitz::Array< blitz::TinyVector< BlitzIndexT, Dim >, Dim > &nearestPixels, blitz::Array< DataT, Dim > const &data, blitz::TinyVector< double, Dim > const &, EuclideanDistanceTransformBase::Mode mode=EuclideanDistanceTransformBase::DistanceToForeground, DataT fg=traits< DataT >::one, iRoCS::ProgressReporter *pr=NULL) |
Binary n-D euclidean distance transform. More... | |
The DistanceTransform class computes the exact euclidean distance transform of binary images.
Definition at line 161 of file DistanceTransform.hh.
|
static |
Binary n-D euclidean distance transform.
The given fg value is treated as foreground, all other values as background.
distances | The euclidean distances to either foreground or background |
data | The Array to compute the distance transform for |
mode | Distances can be computed to foreground pixels (EuclideanDistanceTransformBase.DistanceToForeground) or to background pixels (EuclideanDistanceTransformBase.DistanceToBackground) |
fg | The value of foreground pixels |
pr | A progress reporter to output progress to |
|
static |
Binary n-D euclidean distance transform.
The given fg value is treated as foreground, all other values as background.
nearestPixels | The output Array returning the position of the nearest foreground/background pixel |
data | The Array to compute the distance transform for |
mode | Distances can be computed to foreground pixels (EuclideanDistanceTransformBase.DistanceToForeground) or to background pixels (EuclideanDistanceTransformBase.DistanceToBackground) |
fg | The value of foreground pixels |
pr | A progress reporter to output progress to |
|
static |
Binary n-D euclidean distance transform.
The given fg value is treated as foreground, all other values as background.
distances | The euclidean distances to either foreground or background |
data | The Array to compute the distance transform for |
elementSizeUm | The voxel size in micrometers |
mode | Distances can be computed to foreground pixels (EuclideanDistanceTransformBase.DistanceToForeground) or to background pixels (EuclideanDistanceTransformBase.DistanceToBackground) |
fg | The value of foreground pixels |
pr | A progress reporter to output progress to |
|
static |
Binary n-D euclidean distance transform.
The given fg value is treated as foreground, all other values as background.
nearestPixels | The output Array returning the position of the nearest foreground/background pixel for every pixel |
data | The Array to compute the distance transform for |
elementSizeUm | The voxel size in micrometers |
mode | Distances can be computed to foreground pixels (EuclideanDistanceTransformBase.DistanceToForeground) or to background pixels (EuclideanDistanceTransformBase.DistanceToBackground) |
fg | The value of foreground pixels |
pr | A progress reporter to output progress to |