DGtal
1.5.beta
|
Aim: implements methods to read a "Vol" file format. More...
#include <DGtal/io/readers/VolReader.h>
Data Structures | |
struct | HeaderField |
Public Types | |
typedef TImageContainer | ImageContainer |
typedef TImageContainer::Value | Value |
typedef TFunctor | Functor |
Public Member Functions | |
BOOST_CONCEPT_ASSERT ((concepts::CUnaryFunctor< TFunctor, unsigned char, Value >)) | |
BOOST_STATIC_ASSERT (ImageContainer::Domain::dimension==3) | |
Static Public Member Functions | |
static ImageContainer | importVol (const std::string &filename, const Functor &aFunctor=Functor()) |
Private Types | |
typedef unsigned char | voxel |
Static Private Member Functions | |
static const char * | getHeaderValue (const char *type, const HeaderField *header) |
Returns NULL if this field is not found. More... | |
static int | getHeaderValueAsInt (const char *type, int *dest, const HeaderField *header) |
Returns non-zero if failure. More... | |
static int | getHeaderField (const char *type, const HeaderField *header) |
Internal method which returns the index of a field or -1 if not found. More... | |
Static Private Attributes | |
static const char * | requiredHeaders [] |
Global list of required fields in a .vol file. More... | |
Aim: implements methods to read a "Vol" file format.
Description of template class 'VolReader'
The main import method "importVol" returns an instance of the template parameter TImageContainer.
The private methods have been backported from the SimpleVol project (see http://liris.cnrs.fr/david.coeurjolly).
Example usage:
TImageContainer | the image container to use. |
TFunctor | the type of functor used in the import (by default set to functors::Cast< TImageContainer::Value>) . |
Definition at line 89 of file VolReader.h.
typedef TFunctor DGtal::VolReader< TImageContainer, TFunctor >::Functor |
Definition at line 95 of file VolReader.h.
typedef TImageContainer DGtal::VolReader< TImageContainer, TFunctor >::ImageContainer |
Definition at line 93 of file VolReader.h.
typedef TImageContainer::Value DGtal::VolReader< TImageContainer, TFunctor >::Value |
Definition at line 94 of file VolReader.h.
|
private |
Definition at line 119 of file VolReader.h.
DGtal::VolReader< TImageContainer, TFunctor >::BOOST_CONCEPT_ASSERT | ( | (concepts::CUnaryFunctor< TFunctor, unsigned char, Value >) | ) |
DGtal::VolReader< TImageContainer, TFunctor >::BOOST_STATIC_ASSERT | ( | ImageContainer::Domain::dimension | = =3 | ) |
|
staticprivate |
Internal method which returns the index of a field or -1 if not found.
|
staticprivate |
Returns NULL if this field is not found.
|
staticprivate |
Returns non-zero if failure.
|
static |
Main method to import a Vol 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 > . |
Referenced by DGtal::GenericReader< TContainer, 3, TValue >::importWithValueFunctor(), and main().
|
staticprivate |
Global list of required fields in a .vol file.
Definition at line 168 of file VolReader.h.