]> Creatis software - clitk.git/commitdiff
Add path when loading an image
authorDavid Sarrut <david.sarrut@gmail.com>
Thu, 27 Oct 2011 13:55:46 +0000 (15:55 +0200)
committerDavid Sarrut <david.sarrut@gmail.com>
Thu, 27 Oct 2011 13:55:46 +0000 (15:55 +0200)
segmentation/clitkAnatomicalFeatureDatabase.txx

index 02907716c64c198674b95699cc15b481a657a201..c155d44084c2581a6940e03069fee49f7bc9de03 100644 (file)
@@ -34,7 +34,7 @@ GetImage(std::string tag, bool reload)
     else {
       std::string s = m_MapOfTag[tag];
       // Read the file
-      image = readImage<ImageType>(s);
+      image = readImage<ImageType>(GetPath()+"/"+s);
       // I add a reference count because the cache is not a smartpointer
       image->SetReferenceCount(image->GetReferenceCount()+1);
       // Insert into the cache