DGtal 1.4.0
|
#include <iostream>
#include "DGtal/images/ImageContainerBySTLVector.h"
#include "DGtal/images/ImageContainerByITKImage.h"
#include "DGtal/helpers/StdDefs.h"
#include "DGtal/io/readers/DicomReader.h"
#include "ConfigTest.h"
Go to the source code of this file.
Functions | |
template<typename Image3D > | |
bool | testDicomReader () |
static std::vector< std::string > | getFirstDicomSerieFileNames (const std::string &path) |
template<typename Image3D > | |
bool | testDicomReaderFromDirectory () |
template<typename PixelType > | |
bool | testSpatialInformation () |
bool | testIOException () |
int | main (int argc, char **argv) |
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/.
Functions for testing class DicomReader.
This file is part of the DGtal library.
Definition in file testDicomReader.cpp.
|
static |
Definition at line 75 of file testDicomReader.cpp.
Referenced by testDicomReaderFromDirectory(), and testSpatialInformation().
int main | ( | int | argc, |
char ** | argv ) |
Definition at line 164 of file testDicomReader.cpp.
References DGtal::Trace::beginBlock(), DGtal::Trace::emphase(), DGtal::Trace::endBlock(), DGtal::Trace::info(), testDicomReader(), testDicomReaderFromDirectory(), testIOException(), testSpatialInformation(), and DGtal::trace.
bool testDicomReader | ( | ) |
Example of a test. To be completed.
Definition at line 53 of file testDicomReader.cpp.
References DGtal::DicomReader< TImageContainer, TFunctor >::importDicom(), DGtal::Trace::info(), and DGtal::trace.
Referenced by main().
bool testDicomReaderFromDirectory | ( | ) |
Definition at line 93 of file testDicomReader.cpp.
References getFirstDicomSerieFileNames(), DGtal::DicomReader< TImageContainer, TFunctor >::importDicomSeries(), DGtal::Trace::info(), and DGtal::trace.
Referenced by main().
bool testIOException | ( | ) |
Definition at line 142 of file testDicomReader.cpp.
References DGtal::DicomReader< TImageContainer, TFunctor >::importDicom(), DGtal::Trace::info(), and DGtal::trace.
Referenced by main().
bool testSpatialInformation | ( | ) |
Definition at line 116 of file testDicomReader.cpp.
References getFirstDicomSerieFileNames(), and DGtal::DicomReader< TImageContainer, TFunctor >::importDicomSeries().
Referenced by main(), and TEST_CASE().