<div dir="ltr"><div dir="ltr"><div dir="ltr">Hi Berti,<div><br></div><div>You don't even have to initialize binaryLabelMap, since you don't use it as an input for anything until the DeepCopy.  Really the DeepCopy isn't necessary either, you could call imageStencilToImage->SetOutput(binaryLabelMap) before calling imageStencilToImage->Update().</div><div><br></div><div>Thanks for the samples, those results are very interesting.  Because of the way the algorithm works, the Z axis is immune to those bridges in the result, so you are correct that majority voting or a logical "and" might clean it up.  For the Eiffel tower, the polygons might be wound the wrong way (i.e. the shape is inside-out).  You could try applying vtkReverseSense.</div><div><br></div><div> - David</div></div></div></div>