22 #ifndef otbNormalizeAttributesLabelMapFilter_hxx
23 #define otbNormalizeAttributesLabelMapFilter_hxx
33 template <
class TLabelObject>
39 template <
class TLabelObject>
42 bool resp = (m_Min != other.
m_Min) || (m_Max != other.
m_Max);
48 template <
class TLabelObject>
51 return !(
this !=
self);
54 template <
class TLabelObject>
57 const std::vector<std::string>& attr = lo->GetAvailableAttributes();
59 std::vector<std::string>::const_iterator it;
60 for (it = attr.begin(); it != attr.end(); ++it)
63 typename AttributesMapType::const_iterator minIt = m_Min.find(*it);
64 typename AttributesMapType::const_iterator maxIt = m_Max.find(*it);
65 if (minIt != m_Min.end() && maxIt != m_Max.end())
67 lo->SetAttribute((*it).c_str(), (value - minIt->second) / (maxIt->second - minIt->second));
74 template <
class TImage>
77 Superclass::PrintSelf(os, indent);