vtkImageData does not update information about scalar type
This issue was created automatically from an original Mantis Issue. Further discussion may take place here.
vtkImageData does not see to be updating information such as scalar type. This causes problems when a vtkImageData is used to manage information about an image that will subsequently be read in. For example, the following code returns the incorrect scalar type: 11 which corresponds to DOUBLE despite setting it explicitly to UNSIGNED_CHAR. It works perfectly on VTK 4.2 and below however.
#include "vtkImageData.h"
class vtkImageData;
int main() { vtkImageData *validImageInformation = vtkImageData::New();
validImageInformation->SetScalarType(3); std::cout << validImageInformation->GetScalarType() << std::endl; return 0; }