37 unsigned int numberOfExpectedImages = 0;
39 numberOfExpectedImages = atoi(argv[1]);
40 for (
int arg = 2; arg < argc; ++arg)
41 files.push_back(argv[arg]);
44 for (mitk::TestDCMLoading::StringContainer::const_iterator fileIter = files.begin(); fileIter != files.end();
48 *fileIter <<
" is recognized as loadable DCM object")
54 "Loading " << files.size() <<
" files from commandline results in "
55 << numberOfExpectedImages
56 <<
" images (see test invocation)")
59 for (mitk::TestDCMLoading::ImageList::const_iterator imageIter = images.begin(); imageIter != images.end();
65 "Image information dumping is able to reproduce its result.")
int mitkDCMTestingSanityTest(int argc, char **const argv)
std::string DumpImageInformation(const Image *image)
Dump relevant image information for later comparison.
static std::string GetConfigurationString()
Provide combination of preprocessor defines that was active during compilation.
#define MITK_TEST_CONDITION_REQUIRED(COND, MSG)
section GeneralTestsDeprecatedOldTestingStyle Deprecated macros All tests with MITK_TEST_BEGIN()
DicomSeriesReader::StringContainer StringContainer
#define MITK_TEST_OUTPUT(x)
Output some text.
#define MITK_TEST_CONDITION(COND, MSG)
Image class for storing images.
static bool IsDicom(const std::string &filename)
Checks if a specific file contains DICOM data.
bool CompareImageInformationDumps(const std::string &reference, const std::string &test)
Compare two image information dumps.
std::list< itk::SmartPointer< Image > > ImageList
ImageList LoadFiles(const StringContainer &files, itk::SmartPointer< Image > preLoadedVolume=nullptr)
section MAP_FRAME_Mapper_Settings Mapper settings For the mapping of corrected images