DGtal 0.3.0
Public Types | Static Public Member Functions

DGtal::SetFromImage< TSet > Struct Template Reference

Aim: Define utilities to convert a digital set into an image. More...

#include <SetFromImage.h>

Public Types

typedef TSet Set

Static Public Member Functions

template<typename Image , typename ForegroundPredicate >
static void append (Set &aSet, const Image &aImage, 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)

Detailed Description

template<typename TSet>
struct DGtal::SetFromImage< TSet >

Aim: Define utilities to convert a digital set into an image.

Description of template class 'SetFromImage'

Template Parameters:
TImagean model of CImageContainer concept.
Examples:

3dBorderExtractionImg.cpp, and digitalSetFromVol.cpp.

Definition at line 63 of file SetFromImage.h.


Member Typedef Documentation

template<typename TSet>
typedef TSet DGtal::SetFromImage< TSet >::Set

Definition at line 65 of file SetFromImage.h.


Member Function Documentation

template<typename TSet>
template<typename Image , typename ForegroundPredicate >
static void DGtal::SetFromImage< TSet >::append ( Set aSet,
const Image &  aImage,
const ForegroundPredicate &  isForeground,
typename Image::Domain::ConstIterator  itBegin,
typename Image::Domain::ConstIterator  itEnd 
) [static]

Append a Set to an existing image. Only points in the Set contained in the image domain are considered.

Precondition:
the ForegroundPredicate instance must have been created on the image aImage.
Parameters:
aSetthe set (maybe empty) to which points are added.
aImageimage to convert to a Set.
isForegroundinstance of ForegroundPredicate to decide
itBeginstarting point in the input image Domain.
itEndending point in the input image domain. which points to copy.

Referenced by DGtal::SetFromImage< TSet >::append().

template<typename TSet>
template<typename Image >
static void DGtal::SetFromImage< TSet >::append ( Set aSet,
const Image &  aImage,
const typename Image::Value  minVal,
const typename Image::Value  maxVal 
) [inline, static]

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].

Parameters:
aSetthe set (maybe empty) to which points are added.
aImageimage to convert to a Set.
minValminimum value of the thresholding
maxValmaximum value of the thresholding

Definition at line 151 of file SetFromImage.h.

References DGtal::SetFromImage< TSet >::append().

template<typename TSet>
template<typename Image , typename ForegroundPredicate >
static void DGtal::SetFromImage< TSet >::append ( Set aSet,
const Image &  aImage,
const ForegroundPredicate &  isForeground 
) [inline, static]

Append a Set to an existing image. Only points in the Set contained in the image domain are considered.

Precondition:
the ForegroundPredicate instance must have been created on the image aImage.
Parameters:
aSetthe set (maybe empty) to which points are added.
aImageimage to convert to a Set.
isForegroundinstance of ForegroundPredicate to decide which points to copy.

Definition at line 129 of file SetFromImage.h.

References DGtal::SetFromImage< TSet >::append().

template<typename TSet>
template<typename Image >
static void DGtal::SetFromImage< TSet >::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 
) [inline, static]

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].

Parameters:
aSetthe set (maybe empty) to which points are added.
aImageimage to convert to a Set.
minValminimum value of the thresholding
maxValmaximum value of the thresholding
itBeginstarting point in the input image Domain.
itEndending point in the input image domain.

Definition at line 106 of file SetFromImage.h.

References DGtal::SetFromImage< TSet >::append().


The documentation for this struct was generated from the following file:
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines