diff UnitTestsSources/FromDcmtk.cpp @ 803:4689e400e0fa

directory to store the results of the unit tests
author Sebastien Jodogne <s.jodogne@gmail.com>
date Wed, 07 May 2014 09:29:11 +0200
parents 82b07ab959f4
children a017d1a89b4f
line wrap: on
line diff
--- a/UnitTestsSources/FromDcmtk.cpp	Tue May 06 17:09:32 2014 +0200
+++ b/UnitTestsSources/FromDcmtk.cpp	Wed May 07 09:29:11 2014 +0200
@@ -37,12 +37,12 @@
   //m.Replace(DICOM_TAG_PATIENT_NAME, "coucou");
 
   ParsedDicomFile o;
-  o.SaveToFile("anon.dcm");
+  o.SaveToFile("UnitTestsResults/anon.dcm");
 
   for (int i = 0; i < 10; i++)
   {
     char b[1024];
-    sprintf(b, "anon%06d.dcm", i);
+    sprintf(b, "UnitTestsResults/anon%06d.dcm", i);
     std::auto_ptr<ParsedDicomFile> f(o.Clone());
     if (i > 4)
       o.Replace(DICOM_TAG_SERIES_INSTANCE_UID, "coucou");
@@ -78,18 +78,18 @@
 
   ParsedDicomFile o;
   o.EmbedImage(s);
-  o.SaveToFile("png1.dcm");
+  o.SaveToFile("UnitTestsResults/png1.dcm");
 
   // Red dot, without alpha channel
   s = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAUAAAAFCAIAAAACDbGyAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAB3RJTUUH3gUGDTcIn2+8BgAAACJJREFUCNdj/P//PwMjIwME/P/P+J8BBTAxEOL/R9Lx/z8AynoKAXOeiV8AAAAASUVORK5CYII=";
   o.EmbedImage(s);
-  o.SaveToFile("png2.dcm");
+  o.SaveToFile("UnitTestsResults/png2.dcm");
 
   // Check box in Graylevel8
   s = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAAAAAA6mKC9AAAACXBIWXMAAAsTAAALEwEAmpwYAAAAB3RJTUUH3gUGDDcB53FulQAAAElJREFUGNNtj0sSAEEEQ1+U+185s1CtmRkblQ9CZldsKHJDk6DLGLJa6chjh0ooQmpjXMM86zPwydGEj6Ed/UGykkEM8X+p3u8/8LcOJIWLGeMAAAAASUVORK5CYII=";
   o.EmbedImage(s);
   //o.Replace(DICOM_TAG_SOP_CLASS_UID, UID_DigitalXRayImageStorageForProcessing);
-  o.SaveToFile("png3.dcm");
+  o.SaveToFile("UnitTestsResults/png3.dcm");
 
 
   {
@@ -111,6 +111,6 @@
     }
 
     o.EmbedImage(img.GetAccessor());
-    o.SaveToFile("png4.dcm");
+    o.SaveToFile("UnitTestsResults/png4.dcm");
   }
 }