[Insight-users] InPlaceOn() requires standard assignment too

Dženan Zukić dzenanz at gmail.com
Tue Nov 29 08:11:51 EST 2011


Hi all,

in the following code excerpt, the last line seems to be crucial. Without
it, the resulting image has bufferedRegion=[0,0,0] which breaks subsequent
filters. Can someone explain why is the last line required?

addFilter->SetInput1(logic.masks);
addFilter->SetInput2(mask);
addFilter->InPlaceOn();
addFilter->Update(); //logic.masks.bufferedRegion==0, other things OK
logic.masks=addFilter->GetOutput(); //logic.masks.bufferedRegion>0
(everything OK)

Regards,
Dženan
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.itk.org/pipermail/insight-users/attachments/20111129/a29f1f91/attachment.htm>


More information about the Insight-users mailing list