Aim: implements methods to read a "Vol" file format.
More...
#include <DGtal/io/readers/VolReader.h>
|
typedef unsigned char | voxel |
|
template<typename TImageContainer, typename TFunctor = functors::Cast< typename TImageContainer::Value >>
struct DGtal::VolReader< TImageContainer, TFunctor >
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:
...
typedef SpaceND<int,3> Space3;
typedef HyperRectDomain<Space3> TDomain;
...
ImageContainerBySTLVector< Domain, Value > Type
static ImageContainer importVol(const std::string &filename, const Functor &aFunctor=Functor())
ImageContainerBySTLVector< Domain, Value > Image
- Template Parameters
-
TImageContainer | the image container to use. |
TFunctor | the type of functor used in the import (by default set to functors::Cast< TImageContainer::Value>) . |
- See also
- testVolReader.cpp
Definition at line 89 of file VolReader.h.
◆ Functor
template<typename TImageContainer , typename TFunctor = functors::Cast< typename TImageContainer::Value >>
◆ ImageContainer
template<typename TImageContainer , typename TFunctor = functors::Cast< typename TImageContainer::Value >>
◆ Value
template<typename TImageContainer , typename TFunctor = functors::Cast< typename TImageContainer::Value >>
◆ voxel
template<typename TImageContainer , typename TFunctor = functors::Cast< typename TImageContainer::Value >>
◆ BOOST_CONCEPT_ASSERT()
template<typename TImageContainer , typename TFunctor = functors::Cast< typename TImageContainer::Value >>
◆ BOOST_STATIC_ASSERT()
template<typename TImageContainer , typename TFunctor = functors::Cast< typename TImageContainer::Value >>
DGtal::VolReader< TImageContainer, TFunctor >::BOOST_STATIC_ASSERT |
( |
ImageContainer::Domain::dimension |
= =3 | ) |
|
◆ getHeaderField()
template<typename TImageContainer , typename TFunctor = functors::Cast< typename TImageContainer::Value >>
Internal method which returns the index of a field or -1 if not found.
◆ getHeaderValue()
template<typename TImageContainer , typename TFunctor = functors::Cast< typename TImageContainer::Value >>
Returns NULL if this field is not found.
◆ getHeaderValueAsInt()
template<typename TImageContainer , typename TFunctor = functors::Cast< typename TImageContainer::Value >>
static int DGtal::VolReader< TImageContainer, TFunctor >::getHeaderValueAsInt |
( |
const char * |
type, |
|
|
int * |
dest, |
|
|
const HeaderField * |
header |
|
) |
| |
|
staticprivate |
Returns non-zero if failure.
◆ importVol()
template<typename TImageContainer , typename TFunctor = functors::Cast< typename TImageContainer::Value >>
◆ requiredHeaders
template<typename TImageContainer , typename TFunctor = functors::Cast< typename TImageContainer::Value >>
Global list of required fields in a .vol file.
Definition at line 168 of file VolReader.h.
The documentation for this struct was generated from the following file: