26 unsigned int numberOfExpectedImages = 0;
27 if (argc > 1) numberOfExpectedImages = atoi(argv[1]);
28 for (
int arg = 2; arg < argc; ++arg) files.push_back( argv[arg] );
31 for (mitk::StringList::const_iterator fileIter = files.begin();
32 fileIter != files.end();
41 <<
" files from commandline results in " << numberOfExpectedImages
42 <<
" images (see test invocation)" )
45 for ( mitk::TestDICOMLoading::ImageList::const_iterator imageIter = images.begin();
46 imageIter != images.end();
52 "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.
mitk::Image::Pointer image
std::vector< std::string > StringList
int mitkDICOMTestingSanityTest(int argc, char **const argv)
ImageList LoadFiles(const StringList &files)
bool CompareImageInformationDumps(const std::string &reference, const std::string &test)
Compare two image information dumps.