#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;
typedef TDomain::Point Point;
typedef ImageSelector<TDomain, int>::Type 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
- Examples:
- examples/tutorial-examples/polyhedralizer.cpp, geometry/curves/exampleGridCurve3d-2.cpp, geometry/surfaces/greedy-plane-segmentation-ex2.cpp, geometry/surfaces/greedy-plane-segmentation.cpp, geometry/volumes/distance/distancetransform3D.cpp, geometry/volumes/distance/exampleFMM3D.cpp, graph/volDistanceTraversal.cpp, images/exampleRigidtransformation3d.cpp, images/extract2DImagesFrom3D.cpp, images/extract2DImagesFrom3DandVisu.cpp, images/extract2DSlicesImagesFrom3D.cpp, io/digitalSetFromVol.cpp, io/display3DToOFF.cpp, io/viewers/viewer3D-8-2DSliceImages.cpp, io/viewers/viewer3D-8bis-2Dimages.cpp, shapes/viewMarchingCubes.cpp, shapes/viewPolygonalMarchingCubes.cpp, topology/3dBorderExtractionImg.cpp, topology/ctopo-2-3d.cpp, topology/digitalSurfaceSlice.cpp, topology/volBreadthFirstTraversal.cpp, topology/volMarchingCubes.cpp, topology/volScanBoundary.cpp, topology/volToOFF.cpp, topology/volTrackBoundary.cpp, tutorial-examples/FMMErosion.cpp, and tutorial-examples/polyhedralizer.cpp.
Definition at line 89 of file VolReader.h.
template<typename TImageContainer , typename TFunctor = functors::Cast< typename TImageContainer::Value >>
template<typename TImageContainer , typename TFunctor = functors::Cast< typename TImageContainer::Value >>
template<typename TImageContainer , typename TFunctor = functors::Cast< typename TImageContainer::Value >>
template<typename TImageContainer , typename TFunctor = functors::Cast< typename TImageContainer::Value >>
template<typename TImageContainer , typename TFunctor = functors::Cast< typename TImageContainer::Value >>
template<typename TImageContainer , typename TFunctor = functors::Cast< typename TImageContainer::Value >>
DGtal::VolReader< TImageContainer, TFunctor >::BOOST_STATIC_ASSERT |
( |
ImageContainer::Domain::dimension |
= =3 | ) |
|
template<typename TImageContainer , typename TFunctor = functors::Cast< typename TImageContainer::Value >>
Internal method which returns the index of a field or -1 if not found.
template<typename TImageContainer , typename TFunctor = functors::Cast< typename TImageContainer::Value >>
Returns NULL if this field is not found.
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.
template<typename TImageContainer , typename TFunctor = functors::Cast< typename TImageContainer::Value >>
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: