X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=segmentation%2FclitkFilterWithAnatomicalFeatureDatabaseManagement.cxx;h=9732057817f0dab2de41c59a2a49c96810c62c8d;hb=3da534185c1e1cbe298995b06f762f96b878cb91;hp=6db7c4b934dee61ba449fc65164c4838159a09c8;hpb=0a19d346a86d286a63b37146e1c985f552243a5e;p=clitk.git diff --git a/segmentation/clitkFilterWithAnatomicalFeatureDatabaseManagement.cxx b/segmentation/clitkFilterWithAnatomicalFeatureDatabaseManagement.cxx index 6db7c4b..9732057 100644 --- a/segmentation/clitkFilterWithAnatomicalFeatureDatabaseManagement.cxx +++ b/segmentation/clitkFilterWithAnatomicalFeatureDatabaseManagement.cxx @@ -26,6 +26,7 @@ FilterWithAnatomicalFeatureDatabaseManagement() m_AFDB = NULL; SetAFDBFilename("default.afdb"); SetAFDBPath("./"); + DisplayUsedStructuresOnlyFlagOff(); } //-------------------------------------------------------------------- @@ -63,3 +64,25 @@ clitk::AnatomicalFeatureDatabase::Pointer clitk::FilterWithAnatomicalFeatureData return m_AFDB; } //-------------------------------------------------------------------- + + +//-------------------------------------------------------------------- +void clitk::FilterWithAnatomicalFeatureDatabaseManagement:: +AddUsedStructures(std::string station, std::string structure) +{ + if (!GetDisplayUsedStructuresOnlyFlag()) return; + std::cout << station << "\t" << structure; + bool founded = true; + bool tag = GetAFDB()->TagExist(structure); + if (tag) { + typedef typename itk::Image ImageType; + founded = GetAFDB()->CheckImage(structure); + if (!founded) { + std::cout << " \t Image not exist in DB "; + std::cout << "<" << GetAFDB()->GetTagValue(structure) << "> "; + } + } + if (!tag) std::cout << " \t Tag not found in DB"; + std::cout << std::endl; +} +//--------------------------------------------------------------------