X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=segmentation%2FclitkAnatomicalFeatureDatabase.h;h=438cac8bb9ae8265e41f7f57154da52699de8272;hb=1361e8457bdc0d189ab0d44530a20cc2d5e04393;hp=e2850e12259314053b1f49ac934df16dfd3cf80f;hpb=3c1886a2789de650bebcbcbc60e454b248f83e38;p=clitk.git diff --git a/segmentation/clitkAnatomicalFeatureDatabase.h b/segmentation/clitkAnatomicalFeatureDatabase.h index e2850e1..438cac8 100644 --- a/segmentation/clitkAnatomicalFeatureDatabase.h +++ b/segmentation/clitkAnatomicalFeatureDatabase.h @@ -51,16 +51,14 @@ 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); + void SetImage(TagType tag, std::string f, typename ImageType::Pointer image, bool write=false); template void ReleaseImage(TagType tag); @@ -72,7 +70,7 @@ namespace clitk { std::string m_Filename; typedef itk::ImageBase<3> ImageBaseType; typedef std::map MapTagType; - typedef std::map MapTagImageType; + typedef std::map MapTagImageType; MapTagType m_MapOfTag; MapTagImageType m_MapOfImage;