DGtal 1.3.0
|
A raw to HDF5 converter example (first version, restriction: only 3D UInt8 data input file, HDF5 output file with ZLIB compression activated) More...
#include <iostream>
#include "DGtal/base/Common.h"
#include "DGtal/helpers/StdDefs.h"
#include <hdf5.h>
#include "DGtal/images/ImageSelector.h"
#include "DGtal/images/ImageFactoryFromHDF5.h"
#include "DGtal/io/writers/VolWriter.h"
#include "ConfigExamples.h"
Go to the source code of this file.
Macros | |
#define | DATASETNAME_3D "UInt8Array3D" |
#define | RANK_3D 3 |
Functions | |
bool | raw2HDF5_3D (char *rawFilename, int sizeX, int sizeY, int sizeZ, int sizeChunk, char *HDF5Filename) |
bool | HDF5_3D2vol (char *HDF5Filename, char *volFileName) |
int | main (int argc, char **argv) |
A raw to HDF5 converter example (first version, restriction: only 3D UInt8 data input file, HDF5 output file with ZLIB compression activated)
This program is free software: you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
You should have received a copy of the GNU General Public License along with this program. If not, see http://www.gnu.org/licenses/.
This file is part of the DGtal library.
Definition in file raw2HDF5.cpp.
#define DATASETNAME_3D "UInt8Array3D" |
Definition at line 56 of file raw2HDF5.cpp.
#define RANK_3D 3 |
Definition at line 57 of file raw2HDF5.cpp.
bool HDF5_3D2vol | ( | char * | HDF5Filename, |
char * | volFileName | ||
) |
Definition at line 199 of file raw2HDF5.cpp.
References DGtal::Trace::beginBlock(), DATASETNAME_3D, DGtal::Trace::endBlock(), DGtal::VolWriter< TImage, TFunctor >::exportVol(), and DGtal::trace.
Referenced by main().
int main | ( | int | argc, |
char ** | argv | ||
) |
Definition at line 222 of file raw2HDF5.cpp.
References HDF5_3D2vol(), DGtal::Trace::info(), raw2HDF5_3D(), and DGtal::trace.
bool raw2HDF5_3D | ( | char * | rawFilename, |
int | sizeX, | ||
int | sizeY, | ||
int | sizeZ, | ||
int | sizeChunk, | ||
char * | HDF5Filename | ||
) |
Definition at line 59 of file raw2HDF5.cpp.
References DGtal::Trace::beginBlock(), DATASETNAME_3D, DGtal::Trace::endBlock(), DGtal::Trace::error(), DGtal::Trace::info(), RANK_3D, and DGtal::trace.
Referenced by main().