Hello,
Is it possible to create a vtkImageData with boolean data? For example:
myImage = vtkSmartPointer<vtkImageData>::New();
myImage->AllocateScalars(VTK_FLOAT, 1); // is boolean possible?
Thank you,
Michelle
Hello,
Is it possible to create a vtkImageData with boolean data? For example:
myImage = vtkSmartPointer<vtkImageData>::New();
myImage->AllocateScalars(VTK_FLOAT, 1); // is boolean possible?
Thank you,
Michelle
Boolean values are stored in VTK arrays as unsigned char, so use VTK_UNSIGNED_CHAR type when you allocate scalars.
Perfect. Thank you!