#include "vtkGdcmReader.h"
+#ifndef vtkFloatingPointType
+#define vtkFloatingPointType float
+#endif
+
//----------------------------------------------------------------------------
// Callback for the interaction
class vtkgdcmObserver : public vtkCommand
for(int i=1; i< argc; i++)
reader->AddFileName( argv[i] );
- //reader->DebugOn();
+ reader->DebugOn();
reader->Update();
//print debug info:
- reader->GetOutput()->Print( std::cout );
+ reader->GetOutput()->Print( cout );
vtkRenderWindowInteractor *iren = vtkRenderWindowInteractor::New();
vtkImageViewer2 *viewer = vtkImageViewer2::New();
+
if( reader->GetLookupTable() )
{
//convert to color:
map->Delete();
}
else
+
{
viewer->SetInput ( reader->GetOutput() );
}