Skip to content
Snippets Groups Projects
Commit 7142eabc authored by Cédric Traizet's avatar Cédric Traizet
Browse files

BUG: call UpdateOutputInformation in Reset to initialize the size of accumulators

parent 1fac568b
No related branches found
No related tags found
No related merge requests found
......@@ -97,6 +97,8 @@ void DifferenceImageFilter<TInputImage, TOutputImage>::GenerateOutputInformation
template <class TInputImage, class TOutputImage>
void DifferenceImageFilter<TInputImage, TOutputImage>::Reset()
{
this->UpdateOutputInformation();
int numberOfThreads = this->GetNumberOfThreads();
itk::NumericTraits<RealType>::SetLength(m_MeanDifference, this->GetInput(0)->GetNumberOfComponentsPerPixel());
......
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