[Dcmlib] troble with vtkgdcmViewer2 vs VTK 5.0 on MSVC6

Eduardo Davila--Inge CDD Douek--Fin 12/06 Eduardo.Davila at creatis.insa-lyon.fr
Mon Jan 30 16:37:40 CET 2006


Hi!
-->in method

void vtkGdcmReader::BuildData(vtkDataObject *output)

the instruction :

  vtkImageData *data = this->AllocateOutputData(output);

seems not to allocate memory, and causes a seg fault later.

If we replace by :

   data->SetDimensions(this->NumColumns , this->NumLines , this->NumPlanes);
   data->SetScalarTypeToUnsignedShort();
   data->AllocateScalars();
it works again.


-->
The image is not displayed in the center of the window.

Any suggestion ?

JPRx






More information about the Dcmlib mailing list