Skip to content

Commit

Permalink
Merge pull request InsightSoftwareConsortium#4612 from aylward/Spatia…
Browse files Browse the repository at this point in the history
…lObjectProperties

BUG: Fix SpatialObjectProperties.GetTag*Value() to return values in python
  • Loading branch information
aylward authored Apr 25, 2024
2 parents e41c458 + ad25ca8 commit b6699b0
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions Modules/Core/SpatialObjects/include/itkSpatialObjectProperty.h
Original file line number Diff line number Diff line change
Expand Up @@ -115,8 +115,24 @@ class ITKSpatialObjects_EXPORT SpatialObjectProperty

bool
GetTagScalarValue(const std::string & tag, double & value) const;
double
GetTagScalarValue(const std::string & tag) const
{
double value = 0;
this->GetTagScalarValue(tag, value);
return value;
}

bool
GetTagStringValue(const std::string & tag, std::string & value) const;
std::string
GetTagStringValue(const std::string & tag) const
{
std::string value = "";
this->GetTagStringValue(tag, value);
return value;
}


std::map<std::string, double> &
GetTagScalarDictionary();
Expand Down

0 comments on commit b6699b0

Please sign in to comment.