From: David Sarrut Date: Thu, 27 Oct 2011 13:55:46 +0000 (+0200) Subject: Add path when loading an image X-Git-Tag: v1.3.0~174^2~19 X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=commitdiff_plain;h=d9caeb637df099fbc667f2442728aae256df3236;p=clitk.git Add path when loading an image --- diff --git a/segmentation/clitkAnatomicalFeatureDatabase.txx b/segmentation/clitkAnatomicalFeatureDatabase.txx index 0290771..c155d44 100644 --- a/segmentation/clitkAnatomicalFeatureDatabase.txx +++ b/segmentation/clitkAnatomicalFeatureDatabase.txx @@ -34,7 +34,7 @@ GetImage(std::string tag, bool reload) else { std::string s = m_MapOfTag[tag]; // Read the file - image = readImage(s); + image = readImage(GetPath()+"/"+s); // I add a reference count because the cache is not a smartpointer image->SetReferenceCount(image->GetReferenceCount()+1); // Insert into the cache