File tree Expand file tree Collapse file tree
Modules/Filtering/ImageStatistics/include Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -80,39 +80,14 @@ class ITK_TEMPLATE_EXPORT LabelOverlapMeasuresImageFilter : public ImageSink<TLa
8080 class LabelSetMeasures
8181 {
8282 public:
83- // default constructor
84- LabelSetMeasures ()
85- {
86- m_Source = 0 ;
87- m_Target = 0 ;
88- m_Union = 0 ;
89- m_Intersection = 0 ;
90- m_SourceComplement = 0 ;
91- m_TargetComplement = 0 ;
92- }
93-
94- // added for completeness
95- LabelSetMeasures &
96- operator =(const LabelSetMeasures & l)
97- {
98- if (this != &l)
99- {
100- m_Source = l.m_Source ;
101- m_Target = l.m_Target ;
102- m_Union = l.m_Union ;
103- m_Intersection = l.m_Intersection ;
104- m_SourceComplement = l.m_SourceComplement ;
105- m_TargetComplement = l.m_TargetComplement ;
106- }
107- return *this ;
108- }
109-
110- unsigned long m_Source;
111- unsigned long m_Target;
112- unsigned long m_Union;
113- unsigned long m_Intersection;
114- unsigned long m_SourceComplement;
115- unsigned long m_TargetComplement;
83+ // default constructor/copy/move etc...
84+
85+ SizeValueType m_Source{ 0 };
86+ SizeValueType m_Target{ 0 };
87+ SizeValueType m_Union{ 0 };
88+ SizeValueType m_Intersection{ 0 };
89+ SizeValueType m_SourceComplement{ 0 };
90+ SizeValueType m_TargetComplement{ 0 };
11691 };
11792
11893 /* * Type of the map used to store data per label */
You can’t perform that action at this time.
0 commit comments