[Dcmlib] More on orientation

Luca Picello luca.picello at libero.it
Wed Mar 22 21:50:40 CET 2006


Hello folks,
from

dicom_reader = vtkGdcmReader::New();
dicom_reader->SetCoherentFileList(l);
dicom_reader->Update();
vtkImageData* id = dicom_reader->GetOutput();

is it possible to set an user's orientation here (with strings?)
example:

dicom_reader = vtkGdcmReader::New();
dicom_reader->SetCoherentFileList(l);
dicom_reader->Update();
dicom_reader->PatientPosition("HFS");
dicom_reader->SetImageOrientationPatient("A/P");
vtkImageData* id = dicom_reader->GetOutput();

so all the outputs are automatically flipped/rotated/etc to the user's 
preference?
or how calculate the cosines to be applied to the dataset to get the 
user's wanted result?
the target is to load any possible dataset and have an unique type of 
output depending on user's application.
any idea is welcome

Luca




More information about the Dcmlib mailing list