29 for (
auto iter = listM->begin(); iter != listM->end(); ++iter)
31 std::string key = iter->first;
34 auto otherEntry = otherListM->find(key);
35 MITK_TEST_CONDITION(otherEntry != otherListM->end(),
" Property '" << key <<
"' is contained in other list")
38 MITK_TEST_CONDITION(equal &= (*property == *otherProperty),
" Property '" << key <<
"' is equal in both list")
47 MITK_TEST_CONDITION(allTestPropsInReference,
"All test properties found in reference properties")
49 MITK_TEST_CONDITION(allReferencePropsInTest,
"All reference properties found in test properties")
50 return allTestPropsInReference && allReferencePropsInTest;
65 for (
int arg = 1; arg < argc; ++arg)
68 files.push_back(argv[arg]);
72 for (mitk::TestDCMLoading::StringContainer::const_iterator fileIter = files.begin(); fileIter != files.end();
76 *fileIter <<
" is recognized as loadable DCM object")
82 <<
" images. Remembering properties of the first one for later comparison.")
93 MITK_TEST_OUTPUT(<<
"Again loaded " << reloadedImages.size() <<
" images. Comparing to previously loaded version.")
97 reloadedImage->GetPropertyList();
101 "LoadDicomSeries generates a valid property list when provided a pre-loaded image");
int mitkDCMPreloadedVolumeTest(int argc, char **const argv)
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()
Key-value list holding instances of BaseProperty.
DicomSeriesReader::StringContainer StringContainer
#define MITK_TEST_OUTPUT(x)
Output some text.
Abstract base class for properties.
std::map< std::string, BaseProperty::Pointer > PropertyMap
#define MITK_TEST_CONDITION(COND, MSG)
static bool IsDicom(const std::string &filename)
Checks if a specific file contains DICOM data.
bool VerifyPropertyListsEquality(const mitk::PropertyList *testList, const mitk::PropertyList *referenceList)
std::list< itk::SmartPointer< Image > > ImageList
bool CheckAllPropertiesAreInOtherList(const mitk::PropertyList *list, const mitk::PropertyList *otherList)
ImageList LoadFiles(const StringContainer &files, itk::SmartPointer< Image > preLoadedVolume=nullptr)
section MAP_FRAME_Mapper_Settings Mapper settings For the mapping of corrected images
const PropertyMap * GetMap() const