[vtkusers] Problem with vtkGDCMImageReader
Jothy
jothybasu at gmail.com
Tue Oct 5 11:37:19 EDT 2010
Sorry , forgot to paste the code!
// QString importFile=fileDialog->getOpenFileName();
vtkGDCMImageReader *reader=vtkGDCMImageReader::New();
//reader->SetFileName(importFile.toLatin1());
reader->SetFileName("C:\\DicomFiles\\RD.dcm");
reader->SetDataScalarTypeToFloat();
//reader ->FileLowerLeftOn(); //Inverses the image --up-down
reader->Update();
gdcm::File file=reader->GetFile();
gdcm::DataElement de=
file.GetHeader().GetDataElement(gdcm::Tag((0x3004,0052)));
qDebug()<<de.ValueField;
On Tue, Oct 5, 2010 at 4:36 PM, Jothy <jothybasu at gmail.com> wrote:
> Hi Guys,
>
> I am trying to read a dicom dose file, which is a 3D matrix,stored in a
> single file.
>
> I want to multiply the matrix (raw pixel data) with dose grid scaling. But
> I am having hard time in getting that data element.
>
> On the line
>
> gdcm::File file=reader->GetFile(); -it says "std::ifstream* to non-scalar
> type gdcm::File requested"
>
> I am using Qt creator and vtk5.6 with the latest gdcm built for MinGW.
>
>
> By the way , cam anyone send me the link to join gdcm list. I checked on SF
> and other site of gdcm but there is no link.
>
> Thanks,
>
> Jothy
> --
> Research Scholar
> Dept. of Medical Physics
> Clatterbridge Centre for Oncology
> UK
>
>
--
Research Scholar
Dept. of Medical Physics
Clatterbridge Centre for Oncology
UK
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20101005/fb7cf732/attachment.htm>
More information about the vtkusers
mailing list