DGtal 1.4.0
|
An example file for ImageFactoryFromHDF5. More...
#include <iostream>
#include "DGtal/base/Common.h"
#include "DGtal/helpers/StdDefs.h"
#include "DGtal/images/ImageSelector.h"
#include "DGtal/images/ImageFactoryFromImage.h"
#include "DGtal/images/ImageFactoryFromHDF5.h"
#include "DGtal/images/ImageCache.h"
#include "DGtal/images/TiledImage.h"
#include "ConfigExamples.h"
Go to the source code of this file.
Macros | |
#define | H5FILE_NAME_3D_TILED "exampleImageFactoryFromHDF5_TILED_3D.h5" |
#define | DATASETNAME_3D "UInt8Array3D" |
#define | NX_3D_TILED 300 |
#define | NY_3D_TILED 300 |
#define | NZ_3D_TILED 300 |
#define | CHUNK_X_3D_TILED 50 |
#define | CHUNK_Y_3D_TILED 50 |
#define | CHUNK_Z_3D_TILED 50 |
#define | RANK_3D_TILED 3 |
Functions | |
bool | writeHDF5_3D_TILED () |
bool | exampleImage3D () |
bool | exampleTiledImageFromImage_1block3D () |
bool | exampleTiledImageFromHDF5_1block3D () |
bool | exampleTiledImageFromImage_10blocks3D () |
bool | exampleTiledImageFromHDF5_10blocks3D () |
int | main () |
An example file for ImageFactoryFromHDF5.
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 exampleImageFactoryFromHDF5.cpp.
#define CHUNK_X_3D_TILED 50 |
Definition at line 63 of file exampleImageFactoryFromHDF5.cpp.
Referenced by writeHDF5_3D_TILED().
#define CHUNK_Y_3D_TILED 50 |
Definition at line 64 of file exampleImageFactoryFromHDF5.cpp.
Referenced by writeHDF5_3D_TILED().
#define CHUNK_Z_3D_TILED 50 |
Definition at line 65 of file exampleImageFactoryFromHDF5.cpp.
Referenced by writeHDF5_3D_TILED().
#define DATASETNAME_3D "UInt8Array3D" |
Definition at line 59 of file exampleImageFactoryFromHDF5.cpp.
Referenced by exampleTiledImageFromHDF5_10blocks3D(), exampleTiledImageFromHDF5_1block3D(), and writeHDF5_3D_TILED().
#define H5FILE_NAME_3D_TILED "exampleImageFactoryFromHDF5_TILED_3D.h5" |
Definition at line 57 of file exampleImageFactoryFromHDF5.cpp.
Referenced by exampleTiledImageFromHDF5_10blocks3D(), exampleTiledImageFromHDF5_1block3D(), and writeHDF5_3D_TILED().
#define NX_3D_TILED 300 |
Definition at line 60 of file exampleImageFactoryFromHDF5.cpp.
Referenced by exampleImage3D(), exampleTiledImageFromImage_10blocks3D(), exampleTiledImageFromImage_1block3D(), and writeHDF5_3D_TILED().
#define NY_3D_TILED 300 |
Definition at line 61 of file exampleImageFactoryFromHDF5.cpp.
Referenced by exampleImage3D(), exampleTiledImageFromImage_10blocks3D(), exampleTiledImageFromImage_1block3D(), and writeHDF5_3D_TILED().
#define NZ_3D_TILED 300 |
Definition at line 62 of file exampleImageFactoryFromHDF5.cpp.
Referenced by exampleImage3D(), exampleTiledImageFromImage_10blocks3D(), exampleTiledImageFromImage_1block3D(), and writeHDF5_3D_TILED().
#define RANK_3D_TILED 3 |
Definition at line 66 of file exampleImageFactoryFromHDF5.cpp.
Referenced by writeHDF5_3D_TILED().
bool exampleImage3D | ( | ) |
Definition at line 195 of file exampleImageFactoryFromHDF5.cpp.
References DGtal::Trace::beginBlock(), DGtal::Trace::endBlock(), DGtal::Trace::info(), NX_3D_TILED, NY_3D_TILED, NZ_3D_TILED, and DGtal::trace.
Referenced by main().
bool exampleTiledImageFromHDF5_10blocks3D | ( | ) |
Definition at line 470 of file exampleImageFactoryFromHDF5.cpp.
References DGtal::Trace::beginBlock(), DATASETNAME_3D, DGtal::Trace::endBlock(), H5FILE_NAME_3D_TILED, DGtal::Trace::info(), and DGtal::trace.
Referenced by main().
bool exampleTiledImageFromHDF5_1block3D | ( | ) |
Definition at line 304 of file exampleImageFactoryFromHDF5.cpp.
References DGtal::Trace::beginBlock(), DATASETNAME_3D, DGtal::Trace::endBlock(), H5FILE_NAME_3D_TILED, DGtal::Trace::info(), and DGtal::trace.
Referenced by main().
bool exampleTiledImageFromImage_10blocks3D | ( | ) |
Definition at line 355 of file exampleImageFactoryFromHDF5.cpp.
References DGtal::Trace::beginBlock(), DGtal::Trace::endBlock(), DGtal::Trace::info(), NX_3D_TILED, NY_3D_TILED, NZ_3D_TILED, and DGtal::trace.
Referenced by main().
bool exampleTiledImageFromImage_1block3D | ( | ) |
Definition at line 239 of file exampleImageFactoryFromHDF5.cpp.
References DGtal::Trace::beginBlock(), DGtal::Trace::endBlock(), DGtal::Trace::info(), NX_3D_TILED, NY_3D_TILED, NZ_3D_TILED, and DGtal::trace.
Referenced by main().
int main | ( | void | ) |
Definition at line 573 of file exampleImageFactoryFromHDF5.cpp.
References exampleImage3D(), exampleTiledImageFromHDF5_10blocks3D(), exampleTiledImageFromHDF5_1block3D(), exampleTiledImageFromImage_10blocks3D(), exampleTiledImageFromImage_1block3D(), and writeHDF5_3D_TILED().
bool writeHDF5_3D_TILED | ( | ) |
Definition at line 68 of file exampleImageFactoryFromHDF5.cpp.
References DGtal::Trace::beginBlock(), CHUNK_X_3D_TILED, CHUNK_Y_3D_TILED, CHUNK_Z_3D_TILED, DATASETNAME_3D, DGtal::Trace::endBlock(), DGtal::Trace::error(), H5FILE_NAME_3D_TILED, DGtal::Trace::info(), NX_3D_TILED, NY_3D_TILED, NZ_3D_TILED, RANK_3D_TILED, and DGtal::trace.
Referenced by main().