30 unsigned int numberOfExpectedImages = 0;
31 if (argc > 1) numberOfExpectedImages = atoi(argv[1]);
32 for (
int arg = 2; arg < argc; ++arg) files.push_back( argv[arg] );
35 for (mitk::StringList::const_iterator fileIter = files.begin();
36 fileIter != files.end();
45 <<
" files from commandline results in " << numberOfExpectedImages
46 <<
" images (see test invocation)" )
49 for ( mitk::TestDICOMLoading::ImageList::const_iterator imageIter = images.begin();
50 imageIter != images.end();
56 "Image information dumping is able to reproduce its result." )
static bool IsDICOM(const std::string &filename)
Test whether a file is DICOM at all.
#define MITK_TEST_CONDITION_REQUIRED(COND, MSG)
section GeneralTestsDeprecatedOldTestingStyle Deprecated macros All tests with MITK_TEST_BEGIN()
std::string DumpImageInformation(const Image *image)
Dump relevant image information for later comparison.
std::list< Image::Pointer > ImageList
#define MITK_TEST_CONDITION(COND, MSG)
Image class for storing images.
std::vector< std::string > StringList
int mitkDICOMTestingSanityTest(int argc, char **const argv)
section MAP_FRAME_Mapper_Settings Mapper settings For the mapping of corrected images
ImageList LoadFiles(const StringList &files)
bool CompareImageInformationDumps(const std::string &reference, const std::string &test)
Compare two image information dumps.