]> 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 0290771..c155d44 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