@@ -88,8 +88,8 @@ STAPLEImageFilter<TInputImage, TOutputImage>::GenerateData()
8888 itkExceptionStringMacro (" One or more input images do not contain matching RequestedRegions" );
8989 }
9090
91- IteratorType in = IteratorType (this ->GetInput (i), W->GetRequestedRegion ());
92- FuzzyIteratorType out = FuzzyIteratorType (W, W->GetRequestedRegion ());
91+ IteratorType in (this ->GetInput (i), W->GetRequestedRegion ());
92+ FuzzyIteratorType out (W, W->GetRequestedRegion ());
9393
9494 while (!in.IsAtEnd ())
9595 {
@@ -112,7 +112,7 @@ STAPLEImageFilter<TInputImage, TOutputImage>::GenerateData()
112112 double N = 0.0 ;
113113 double g_t = 0.0 ;
114114 {
115- FuzzyIteratorType out = FuzzyIteratorType (W, W->GetRequestedRegion ());
115+ FuzzyIteratorType out (W, W->GetRequestedRegion ());
116116 while (!out.IsAtEnd ())
117117 {
118118 while (!out.IsAtEndOfLine ())
@@ -132,8 +132,8 @@ STAPLEImageFilter<TInputImage, TOutputImage>::GenerateData()
132132 // Now iterate on estimating specificity and sensitivity
133133 for (unsigned int i = 0 ; i < number_of_input_files; ++i)
134134 {
135- IteratorType in = IteratorType (this ->GetInput (i), W->GetRequestedRegion ());
136- FuzzyIteratorType out = FuzzyIteratorType (W, W->GetRequestedRegion ());
135+ IteratorType in (this ->GetInput (i), W->GetRequestedRegion ());
136+ FuzzyIteratorType out (W, W->GetRequestedRegion ());
137137
138138 double p_num{};
139139 double p_denom{};
@@ -175,7 +175,7 @@ STAPLEImageFilter<TInputImage, TOutputImage>::GenerateData()
175175 D_it[i] = IteratorType (this ->GetInput (i), W->GetRequestedRegion ());
176176 }
177177
178- FuzzyIteratorType out = FuzzyIteratorType (W, W->GetRequestedRegion ());
178+ FuzzyIteratorType out (W, W->GetRequestedRegion ());
179179 while (!out.IsAtEnd ())
180180 {
181181 while (!out.IsAtEndOfLine ())
0 commit comments