Medical Imaging Interaction Toolkit  2018.4.99-4c24e3cb
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 (DKFZ)
6 All rights reserved.
7 
8 Use of this source code is governed by a 3-clause BSD license that can be
9 found in the LICENSE file.
10 
11 ============================================================================*/
12 
13 #include "mitkTestDICOMLoading.h"
14 #include "mitkImage.h"
15 
16 int main(int argc, char** argv)
17 {
19  mitk::StringList files;
20 
21  for (int arg = 1; arg < argc; ++arg) files.push_back( argv[arg] );
22 
24 
25  // combine individual dumps in a way that VerifyDICOMMitkImageDump is able to separate again.
26  // I.e.: when changing this piece of code, always change VerifyDICOMMitkImageDump, too.
27  unsigned int imageCounter(0);
28  for ( mitk::TestDICOMLoading::ImageList::const_iterator imageIter = images.begin();
29  imageIter != images.end();
30  ++imageIter )
31  {
32  std::cout << "-- Image " << ++imageCounter << "\n";
33  std::cout << loader.DumpImageInformation( *imageIter ) << "\n";
34  }
35 }
36 
ImageVectorType images
std::string DumpImageInformation(const Image *image)
Dump relevant image information for later comparison.
std::list< Image::Pointer > ImageList
std::vector< std::string > StringList
ImageList LoadFiles(const StringList &files)
int main(int argc, char **argv)