From d9caeb637df099fbc667f2442728aae256df3236 Mon Sep 17 00:00:00 2001 From: David Sarrut Date: Thu, 27 Oct 2011 15:55:46 +0200 Subject: [PATCH] Add path when loading an image --- segmentation/clitkAnatomicalFeatureDatabase.txx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- 2.45.1