DGtal 2.0.0
|
Aim: Define utilities to convert a digital set into an image. More...
#include <DGtal/images/imagesSetsUtils/ImageFromSet.h>
Public Types | |
typedef TImage | Image |
typedef TImage::Value | Value |
Public Member Functions | |
BOOST_CONCEPT_ASSERT ((concepts::CImage< Image >)) |
Static Public Member Functions | |
template<typename Set> | |
static Image | create (const Set &aSet, const Value &defaultValue, const bool addBorder, typename Set::ConstIterator itBegin, typename Set::ConstIterator itEnd, const bool keepSetDomain=false) |
template<typename Set> | |
static Image | create (const Set &aSet, const Value &defaultValue, const bool addBorder=false, const bool keepSetDomain=false) |
template<typename Set> | |
static void | append (Image &aImage, const Value &defaultValue, typename Set::ConstIterator itBegin, typename Set::ConstIterator itEnd) |
template<typename Set> | |
static void | append (Image &aImage, const Set &aSet, const Value &defaultValue) |
Aim: Define utilities to convert a digital set into an image.
Description of template class 'ImageFromSet'
TImage | an model of CImageContainer concept. |
Definition at line 63 of file ImageFromSet.h.
typedef TImage DGtal::ImageFromSet< TImage >::Image |
Definition at line 65 of file ImageFromSet.h.
typedef TImage::Value DGtal::ImageFromSet< TImage >::Value |
Definition at line 66 of file ImageFromSet.h.
|
inlinestatic |
Append a Set to an existing image. Only points in the Set contained in the image domain are considered.
Set | model of CDigitalSet |
aImage | an image |
aSet | an instance of Set to convert into an image |
defaultValue | the default value for points in the set to copy. |
Definition at line 152 of file ImageFromSet.h.
References append().
|
static |
Append a Set to an existing image. Only points in the Set between itBegin and itEnd contained in the image domain are considered.
Set | model of CDigitalSet |
aImage | an image |
defaultValue | the default value for points in the set |
itBegin | ConstIterator on the set to specify the first point to copy of a Set. |
itEnd | ConstIterator on the set to specify the last point to copy of a Set. |
Referenced by append().
DGtal::ImageFromSet< TImage >::BOOST_CONCEPT_ASSERT | ( | (concepts::CImage< Image >) | ) |
|
static |
Create an Image from a DigitalSet. The size of the output image is given from the set bounding box.
Set | model of CDigitalSet |
aSet | an instance of Set to convert into an image |
defaultValue | the default value for points in the set |
addBorder | if true, we add a border of size 1 of defaultValue around the set. |
itBegin | ConstIterator on the set to specify the first point to copy. |
itEnd | ConstIterator on the set to specify the last point to copy. |
keepSetDomain | if true, the set domain is used to create the resulting image, else the bouding box of the set is used. |
Referenced by create(), testBreadthFirstPropagation(), testDepthFirstPropagation(), and testDistancePropagation().
|
inlinestatic |
Create an Image from a DigitalSet. The size of the output image is given from the set bounding box.
Set | model of CDigitalSet |
aSet | an instance of Set to convert into an image |
defaultValue | the default value for points in the set |
addBorder | if true, we add a border of size 1 of defaultValue around the set. |
keepSetDomain | if true, the set domain is used to create the resulting image, else the bouding box of the set is used. |
Definition at line 114 of file ImageFromSet.h.
References create().