Medical Imaging Interaction Toolkit  2016.11.0
Medical Imaging Interaction Toolkit
DumpDICOMMitkImage.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 
17 #include "mitkTestDICOMLoading.h"
18 #include "mitkImage.h"
19 
20 int main(int argc, char** argv)
21 {
23  mitk::StringList files;
24 
25  for (int arg = 1; arg < argc; ++arg) files.push_back( argv[arg] );
26 
28 
29  // combine individual dumps in a way that VerifyDICOMMitkImageDump is able to separate again.
30  // I.e.: when changing this piece of code, always change VerifyDICOMMitkImageDump, too.
31  unsigned int imageCounter(0);
32  for ( mitk::TestDICOMLoading::ImageList::const_iterator imageIter = images.begin();
33  imageIter != images.end();
34  ++imageIter )
35  {
36  std::cout << "-- Image " << ++imageCounter << "\n";
37  std::cout << loader.DumpImageInformation( *imageIter ) << "\n";
38  }
39 }
40 
std::string DumpImageInformation(const Image *image)
Dump relevant image information for later comparison.
std::list< Image::Pointer > ImageList
std::vector< std::string > StringList
section MAP_FRAME_Mapper_Settings Mapper settings For the mapping of corrected images
ImageList LoadFiles(const StringList &files)
int main(int argc, char **argv)