Skip to content

Commit

Permalink
modified itkLabelShiftImageFilter.cxx according to Itk User Guide (st…
Browse files Browse the repository at this point in the history
…ill crashes)
  • Loading branch information
romangrothausmann committed Apr 1, 2015
1 parent b018445 commit 51d6a3f
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion itkLabelShiftImageFilter.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,10 @@ namespace itk{
m_AddImageFilter->SetConstant2(m_LastMax);
m_AddImageFilter->GetOutput()->SetRequestedRegion(region);

m_AddImageFilter->GraftOutput(this->GetOutput()); //http://www.itk.org/Doxygen/html/classitk_1_1ImageSource.html#ab988dcc743020c2f4381996ba6503306
m_AddImageFilter->Update();
output->Graft(m_AddImageFilter->GetOutput());
//output->Graft(m_AddImageFilter->GetOutput()); //http://www.itk.org/Wiki/ITK/Examples/Developer/Minipipeline
this->GraftOutput(m_AddImageFilter->GetOutput()); //http://www.itk.org/Doxygen/html/classitk_1_1ImageSource.html#ab988dcc743020c2f4381996ba6503306

m_LastMax++;
}
Expand Down

0 comments on commit 51d6a3f

Please sign in to comment.