X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=segmentation%2FclitkAnatomicalFeatureDatabase.h;h=574bf682ff34d93e4640b12e54cb070d7966bd67;hb=95ff78f2fbaefa3adebfed8cc553d99af56a40e6;hp=dcf7efd27c90969208742e4481f5340ba211ad89;hpb=5668d4a49a5a6b68dc80fa28f0f82b54187cb70c;p=clitk.git diff --git a/segmentation/clitkAnatomicalFeatureDatabase.h b/segmentation/clitkAnatomicalFeatureDatabase.h index dcf7efd..574bf68 100644 --- a/segmentation/clitkAnatomicalFeatureDatabase.h +++ b/segmentation/clitkAnatomicalFeatureDatabase.h @@ -3,7 +3,7 @@ Authors belong to: - University of LYON http://www.universite-lyon.fr/ - - Léon Bérard cancer center http://oncora1.lyon.fnclcc.fr + - Léon Bérard cancer center http://www.centreleonberard.fr - CREATIS CNRS laboratory http://www.creatis.insa-lyon.fr This software is distributed WITHOUT ANY WARRANTY; without even @@ -14,7 +14,7 @@ - BSD See included LICENSE.txt file - CeCILL-B http://www.cecill.info/licences/Licence_CeCILL-B_V1-en.html - ======================================================================-====*/ + ===========================================================================**/ #ifndef CLITKANATOMICALFEATUREDATABASE_H #define CLITKANATOMICALFEATUREDATABASE_H @@ -50,11 +50,17 @@ namespace clitk { typedef itk::Point PointType3D; 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); @@ -62,8 +68,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 //--------------------------------------------------------------------