DGtal
1.3.beta
|
Aim: implements methods to read a 2D image using the ImageMagick library. More...
#include <DGtal/io/readers/MagickReader.h>
Public Types | |
typedef TImageContainer | ImageContainer |
typedef TImageContainer::Domain::Vector | Vector |
typedef TImageContainer::Value | Value |
typedef TFunctor | Functor |
Public Member Functions | |
BOOST_STATIC_ASSERT ((ImageContainer::Domain::dimension==2)) | |
Static Public Member Functions | |
static ImageContainer | importImage (const std::string &filename, const Functor &aFunctor=Functor(), bool topbotomOrder=true) |
Aim: implements methods to read a 2D image using the ImageMagick library.
Description of template class 'MagickReader'
The functor cast colors (DGtal::Color) to the image value type (TimageContainer::Value).
Typical examples of functor are:
TImageContainer | the image container to use. |
TFunctor | the type of functor used in the import to cast color to image values (by default set to functors::MagickCast< TImageContainer::Value>) . |
Definition at line 111 of file MagickReader.h.
typedef TFunctor DGtal::MagickReader< TImageContainer, TFunctor >::Functor |
Definition at line 119 of file MagickReader.h.
typedef TImageContainer DGtal::MagickReader< TImageContainer, TFunctor >::ImageContainer |
Definition at line 116 of file MagickReader.h.
typedef TImageContainer::Value DGtal::MagickReader< TImageContainer, TFunctor >::Value |
Definition at line 118 of file MagickReader.h.
typedef TImageContainer::Domain::Vector DGtal::MagickReader< TImageContainer, TFunctor >::Vector |
Definition at line 117 of file MagickReader.h.
DGtal::MagickReader< TImageContainer, TFunctor >::BOOST_STATIC_ASSERT | ( | (ImageContainer::Domain::dimension==2) | ) |
|
static |
Main method to import an Image into an instance of the template parameter ImageContainer.
filename | the file name to import. |
aFunctor | the functor used to import and cast the source image values into the type of the image container value (by default set to functors::Cast < TImageContainer::Value > . |
topbotomOrder | if true, the point of coordinate (0,0) will be the bottom left corner image point (default) else the center of image coordinate will be the top left of the image (not usual). |
Referenced by DGtal::GenericReader< TContainer, 2, TValue >::importWithColorFunctor(), DGtal::GenericReader< TContainer, 2, DGtal::uint32_t >::importWithColorFunctor(), main(), and TEST_CASE().