Skip to content
Snippets Groups Projects
Commit b130c347 authored by Jonathan Guinet's avatar Jonathan Guinet
Browse files

ENH: export elongation in statistics attribute label map filtering.

parent 9ff034f3
No related branches found
No related tags found
No related merge requests found
......@@ -188,7 +188,7 @@ StatisticsAttributesLabelObjectFunctor<TLabelObject, TFeatureImage>
if (!m_ReducedAttributeSet)
{
double elongation = 0;
double elongation = std::numeric_limits<double>::quiet_NaN();
if (sum != 0)
{
// Normalize using the total mass
......@@ -257,6 +257,11 @@ StatisticsAttributesLabelObjectFunctor<TLabelObject, TFeatureImage>
}
}
oss.str("");
oss << "STATS::" << m_FeatureName << "::Elongation";
lo->SetAttribute(oss.str().c_str(), (double) elongation);
oss.str("");
oss << "STATS::" << m_FeatureName << "::Minimum";
lo->SetAttribute(oss.str().c_str(), (double) min);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment