]> Creatis software - clitk.git/blobdiff - segmentation/clitkAnatomicalFeatureDatabase.txx
Add path when loading an image
[clitk.git] / 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