[vtkusers] Copy of vtkImageData

Zein Salah zeinsalah at gmail.com
Tue Mar 3 05:03:58 EST 2015


Hi,

I need to create mask of a vtkImageData, i.e., a binary image with
exactly the same properties (dimensions, spacing, origin, etc.) of the
original data image.

For the creation,would a DeepCopy be ok or I would better create a new
object and set the attributes like  img->SetExtent(...),
img->SetSpacing(), etc.

Thanks,
Zeno


More information about the vtkusers mailing list