DGtal
0.6.devel
|
#include <SetFromImage.h>
Public Types | |
typedef TSet | Set |
Static Public Member Functions | |
template<typename Image , typename ForegroundPredicate > | |
static void | append (Set &aSet, const ForegroundPredicate &isForeground, typename Image::Domain::ConstIterator itBegin, typename Image::Domain::ConstIterator itEnd) |
template<typename Image > | |
static void | append (Set &aSet, const Image &aImage, const typename Image::Value minVal, const typename Image::Value maxVal, typename Image::Domain::ConstIterator itBegin, typename Image::Domain::ConstIterator itEnd) |
template<typename Image , typename ForegroundPredicate > | |
static void | append (Set &aSet, const Image &aImage, const ForegroundPredicate &isForeground) |
template<typename Image > | |
static void | append (Set &aSet, const Image &aImage, const typename Image::Value minVal, const typename Image::Value maxVal) |
Aim: Define utilities to convert a digital set into an image.
Description of template class 'SetFromImage'
TImage | an model of CImageContainer concept. |
Definition at line 63 of file SetFromImage.h.
typedef TSet DGtal::SetFromImage< TSet >::Set |
Definition at line 65 of file SetFromImage.h.
|
inlinestatic |
Append a Set to an existing image. Only points in the Set contained in the image domain are considered.
aSet | the set (maybe empty) to which points are added. |
isForeground | instance of ForegroundPredicate to decide |
itBegin | starting point in the input image Domain. |
itEnd | ending point in the input image domain. which points to copy. |
Definition at line 45 of file SetFromImage.ih.
Referenced by DGtal::SetFromImage< TSet >::append().
|
inlinestatic |
Append an Image value set to an existing Set (maybe empty). This method will construct a default ForegroundPredicate instance as a simple thresholding (SimpleForegroundPredicate) of values in ]minVal,maxVal].
aSet | the set (maybe empty) to which points are added. |
minVal | minimum value of the thresholding |
maxVal | maximum value of the thresholding |
itBegin | starting point in the input image Domain. |
itEnd | ending point in the input image domain. |
Definition at line 104 of file SetFromImage.h.
References DGtal::SetFromImage< TSet >::append().
|
inlinestatic |
Append a Set to an existing image. Only points in the Set contained in the image domain are considered.
aSet | the set (maybe empty) to which points are added. |
aImage | image to convert to a Set. |
isForeground | instance of ForegroundPredicate to decide which points to copy. |
Definition at line 127 of file SetFromImage.h.
References DGtal::Image< TImageContainer >::domain().
|
inlinestatic |
Append a Set to an existing image. Only points in the Set contained in the image domain are considered. This method will construct a default ForegroundPredicate instance as a simple thresholding (SimpleForegroundPredicate) of values in ]minVal,maxVal].
aSet | the set (maybe empty) to which points are added. |
aImage | image to convert to a Set. |
minVal | minimum value of the thresholding |
maxVal | maximum value of the thresholding |
Definition at line 149 of file SetFromImage.h.
References DGtal::SetFromImage< TSet >::append().