Skip to content

Commit

Permalink
avoid SetImage (looses coord transf from InitializeToWrapper), no seg…
Browse files Browse the repository at this point in the history
…fault any more, filter executes but has no effect
  • Loading branch information
romangrothausmann committed Jan 31, 2018
1 parent 6e31ad8 commit 9f0332c
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions Logic/Framework/JOINImageData.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -313,9 +313,8 @@ ::InitializeJoinCF(){
m_JoinCF= JoinCopyFilterType::New();
m_JoinCF->SetJsrc(m_JsrcWrapper->GetImage());
m_JoinCF->SetJdst(m_JdstWrapper->GetImage());
m_JdstWrapper->SetImage(m_JoinCF->GetOutput());
m_JdstWrapper->GetImage()->Modified();
m_JoinCF->InPlaceOn(); //adjust Jdst directly
//m_JdstWrapper->SetImage(m_JoinCF->GetOutput()); //causes segfault due to missing transform of uninitialized output
m_JoinCF->InPlaceOn(); //makes 2nd input (SetJdst) be the output
}

JOINImageData::JoinCopyFilterPointer
Expand Down

0 comments on commit 9f0332c

Please sign in to comment.