DGtal
1.5.beta
|
A test file for ImageFactoryFromHDF5. More...
#include <iostream>
#include "DGtal/base/Common.h"
#include "DGtal/helpers/StdDefs.h"
#include "DGtal/images/ImageSelector.h"
#include "DGtal/images/ImageFactoryFromHDF5.h"
#include "DGtal/images/ImageCache.h"
#include "DGtal/images/TiledImage.h"
#include "ConfigTest.h"
Go to the source code of this file.
Macros | |
#define | H5FILE_NAME "testImageFactoryFromHDF5.h5" |
#define | DATASETNAME_2D "Int32Array2D" |
#define | NX_2D 6 |
#define | NY_2D 5 |
#define | RANK_2D 2 |
#define | DATASETNAME_2D_TILED "Int64Array2D" |
#define | RANK_2D_TILED 2 |
#define | _NX_2D_TILED 16 |
#define | _NY_2D_TILED 16 |
#define | H5FILE_NAME_3D_TILED_EASY_READING "testImageFactoryFromHDF5_TILED_3D_for_easy_reading.h5" |
#define | H5FILE_NAME_3D_TILED "testImageFactoryFromHDF5_TILED_3D.h5" |
#define | DATASETNAME_3D_TILED "DoubleArray3D" |
#define | NX_3D_TILED 10 |
#define | NY_3D_TILED 8 |
#define | NZ_3D_TILED 6 |
#define | RANK_3D_TILED 3 |
Functions | |
bool | writeHDF5_2D () |
bool | writeHDF5_2D_TILED (const std::string &_H5FILE_NAME_2D_TILED) |
bool | writeHDF5_3D_TILED_for_easy_reading () |
bool | writeHDF5_3D_TILED () |
bool | test2D_int32 () |
bool | testTiledImage2D_int64 () |
bool | testTiledImage3D_double () |
int | main (int argc, char **argv) |
A test 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 testImageFactoryFromHDF5.cpp.
#define _NX_2D_TILED 16 |
Definition at line 121 of file testImageFactoryFromHDF5.cpp.
#define _NY_2D_TILED 16 |
Definition at line 122 of file testImageFactoryFromHDF5.cpp.
#define DATASETNAME_2D "Int32Array2D" |
Definition at line 51 of file testImageFactoryFromHDF5.cpp.
#define DATASETNAME_2D_TILED "Int64Array2D" |
Definition at line 119 of file testImageFactoryFromHDF5.cpp.
#define DATASETNAME_3D_TILED "DoubleArray3D" |
Definition at line 184 of file testImageFactoryFromHDF5.cpp.
#define H5FILE_NAME "testImageFactoryFromHDF5.h5" |
Definition at line 49 of file testImageFactoryFromHDF5.cpp.
#define H5FILE_NAME_3D_TILED "testImageFactoryFromHDF5_TILED_3D.h5" |
Definition at line 182 of file testImageFactoryFromHDF5.cpp.
#define H5FILE_NAME_3D_TILED_EASY_READING "testImageFactoryFromHDF5_TILED_3D_for_easy_reading.h5" |
Definition at line 181 of file testImageFactoryFromHDF5.cpp.
#define NX_2D 6 |
Definition at line 52 of file testImageFactoryFromHDF5.cpp.
#define NX_3D_TILED 10 |
Definition at line 185 of file testImageFactoryFromHDF5.cpp.
#define NY_2D 5 |
Definition at line 53 of file testImageFactoryFromHDF5.cpp.
#define NY_3D_TILED 8 |
Definition at line 186 of file testImageFactoryFromHDF5.cpp.
#define NZ_3D_TILED 6 |
Definition at line 187 of file testImageFactoryFromHDF5.cpp.
#define RANK_2D 2 |
Definition at line 54 of file testImageFactoryFromHDF5.cpp.
#define RANK_2D_TILED 2 |
Definition at line 120 of file testImageFactoryFromHDF5.cpp.
#define RANK_3D_TILED 3 |
Definition at line 188 of file testImageFactoryFromHDF5.cpp.
int main | ( | int | argc, |
char ** | argv | ||
) |
Definition at line 588 of file testImageFactoryFromHDF5.cpp.
References DGtal::Trace::beginBlock(), DGtal::Trace::emphase(), DGtal::Trace::endBlock(), DGtal::Trace::info(), test2D_int32(), testTiledImage2D_int64(), testTiledImage3D_double(), DGtal::trace, writeHDF5_2D(), writeHDF5_2D_TILED(), writeHDF5_3D_TILED(), and writeHDF5_3D_TILED_for_easy_reading().
bool test2D_int32 | ( | ) |
Definition at line 308 of file testImageFactoryFromHDF5.cpp.
References DGtal::Trace::beginBlock(), DATASETNAME_2D, DGtal::Trace::endBlock(), H5FILE_NAME, DGtal::Trace::info(), and DGtal::trace.
Referenced by main().
bool testTiledImage2D_int64 | ( | ) |
Definition at line 441 of file testImageFactoryFromHDF5.cpp.
References DGtal::Trace::beginBlock(), DATASETNAME_2D_TILED, DGtal::Trace::endBlock(), DGtal::Trace::info(), and DGtal::trace.
Referenced by main().
bool testTiledImage3D_double | ( | ) |
Definition at line 510 of file testImageFactoryFromHDF5.cpp.
References DGtal::Trace::beginBlock(), DATASETNAME_3D_TILED, DGtal::Trace::endBlock(), H5FILE_NAME_3D_TILED, DGtal::Trace::info(), and DGtal::trace.
Referenced by main().
bool writeHDF5_2D | ( | ) |
Definition at line 56 of file testImageFactoryFromHDF5.cpp.
References DATASETNAME_2D, DGtal::Trace::error(), H5FILE_NAME, NX_2D, NY_2D, RANK_2D, and DGtal::trace.
Referenced by main().
bool writeHDF5_2D_TILED | ( | const std::string & | _H5FILE_NAME_2D_TILED | ) |
Definition at line 124 of file testImageFactoryFromHDF5.cpp.
References _NX_2D_TILED, _NY_2D_TILED, DATASETNAME_2D_TILED, DGtal::Trace::error(), RANK_2D_TILED, and DGtal::trace.
Referenced by main().
bool writeHDF5_3D_TILED | ( | ) |
Definition at line 249 of file testImageFactoryFromHDF5.cpp.
References DATASETNAME_3D_TILED, DGtal::Trace::error(), H5FILE_NAME_3D_TILED, NX_3D_TILED, NY_3D_TILED, NZ_3D_TILED, RANK_3D_TILED, and DGtal::trace.
Referenced by main().
bool writeHDF5_3D_TILED_for_easy_reading | ( | ) |
Definition at line 190 of file testImageFactoryFromHDF5.cpp.
References DATASETNAME_3D_TILED, DGtal::Trace::error(), H5FILE_NAME_3D_TILED_EASY_READING, NX_3D_TILED, NY_3D_TILED, NZ_3D_TILED, RANK_3D_TILED, and DGtal::trace.
Referenced by main().