Aim: implements methods to read a "Longvol" file format (with DGtal::uint64_t value type).
More...
#include <DGtal/io/readers/LongvolReader.h>
|
typedef unsigned char | voxel |
|
template<typename TImageContainer, typename TFunctor = functors::Cast< typename TImageContainer::Value >>
struct DGtal::LongvolReader< TImageContainer, TFunctor >
Aim: implements methods to read a "Longvol" file format (with DGtal::uint64_t value type).
Description of template class 'LongvolReader'
The main import method "importLongvol" returns an instance of the template parameter TImageContainer.
The private methods have been backported from the Simplelvol project (see http://liris.cnrs.fr/david.coeurjolly).
Example usage:
...
#include <
DGtal/helpers/StdDefs.h>
...
DGtal is the top-level namespace which contains all DGtal functions and types.
ImageContainerBySTLVector< Domain, Value > Type
static ImageContainer importLongvol(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
- testLongvol.cpp
Definition at line 91 of file LongvolReader.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 >>
◆ 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 >>
Returns non-zero if failure.
◆ importLongvol()
template<typename TImageContainer , typename TFunctor = functors::Cast< typename TImageContainer::Value >>
◆ read_word()
template<typename TImageContainer , typename TFunctor = functors::Cast< typename TImageContainer::Value >>
template<typename Word >
Generic read word (binary mode) in little-endian mode.
- Parameters
-
fin | input stream. |
aValue | value to write. |
- Returns
- modified stream.
Definition at line 131 of file LongvolReader.h.
133 char* raw =
reinterpret_cast<char*
>(&aValue);
134 for (std::size_t i = 0; i <
sizeof(Word); ++i)
◆ requiredHeaders
template<typename TImageContainer , typename TFunctor = functors::Cast< typename TImageContainer::Value >>
Global list of required fields in a .longvol file.
Definition at line 189 of file LongvolReader.h.
The documentation for this struct was generated from the following file: