X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=segmentation%2FclitkAnatomicalFeatureDatabase.h;h=e3591925216d5fe8b6309fb7c2e30996bf3e934f;hb=4af47ddf6c7819cd561e97b454521c29c21ddab8;hp=f1324cb687a86058cf61c6118e77e5f7800bec92;hpb=5e2af376544fce0c6dc46bb3c3227d35b501c1f1;p=clitk.git diff --git a/segmentation/clitkAnatomicalFeatureDatabase.h b/segmentation/clitkAnatomicalFeatureDatabase.h index f1324cb..e359192 100644 --- a/segmentation/clitkAnatomicalFeatureDatabase.h +++ b/segmentation/clitkAnatomicalFeatureDatabase.h @@ -51,11 +51,19 @@ namespace clitk { void SetPoint3D(TagType tag, PointType3D & p); void GetPoint3D(TagType tag, PointType3D & p); double GetPoint3D(std::string tag, int dim); + bool TagExist(std::string tag); // Set Get image void SetImageFilename(TagType tag, std::string f); template - typename ImageType::Pointer GetImage(TagType tag); + typename ImageType::Pointer GetImage(TagType tag, bool reload=false); + template + void SetImage(TagType tag, + std::string f, + typename ImageType::Pointer image, + bool write=false); + template + void ReleaseImage(TagType tag); // Set Get Double void SetDouble(TagType tag, double d); @@ -63,8 +71,11 @@ namespace clitk { protected: std::string m_Filename; + typedef itk::ImageBase<3> ImageBaseType; typedef std::map MapTagType; + typedef std::map MapTagImageType; MapTagType m_MapOfTag; + MapTagImageType m_MapOfImage; }; // end class //--------------------------------------------------------------------