Medical Imaging Interaction Toolkit  2016.11.0
Medical Imaging Interaction Toolkit
DumpDCMMitkImage.cpp
Go to the documentation of this file.
1 /*===================================================================
2 
3 The Medical Imaging Interaction Toolkit (MITK)
4 
5 Copyright (c) German Cancer Research Center,
6 Division of Medical and Biological Informatics.
7 All rights reserved.
8 
9 This software is distributed WITHOUT ANY WARRANTY; without
10 even the implied warranty of MERCHANTABILITY or FITNESS FOR
11 A PARTICULAR PURPOSE.
12 
13 See LICENSE.txt or http://www.mitk.org for details.
14 
15 ===================================================================*/
16 #include "mitkTestDCMLoading.h"
17 
18 #include "mitkImage.h"
19 
20 int main(int argc, char **argv)
21 {
22  mitk::TestDCMLoading loader;
24 
25  for (int arg = 1; arg < argc; ++arg)
26  files.push_back(argv[arg]);
27 
29 
30  // combine individual dumps in a way that VerifyDCMMitkImageDump is able to separate again.
31  // I.e.: when changing this piece of code, always change VerifyDCMMitkImageDump, too.
32  unsigned int imageCounter(0);
33  for (mitk::TestDCMLoading::ImageList::const_iterator imageIter = images.begin(); imageIter != images.end();
34  ++imageIter)
35  {
36  std::cout << "-- Image " << ++imageCounter << "\n";
37  std::cout << loader.DumpImageInformation(*imageIter) << "\n";
38  }
39 }
std::string DumpImageInformation(const Image *image)
Dump relevant image information for later comparison.
DicomSeriesReader::StringContainer StringContainer
int main(int argc, char **argv)
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