[vtkusers] Reading DICOMDIR
Jean-Pierre Roux
jpr at creatis.insa-lyon.fr
Mon Mar 14 10:43:13 EDT 2011
Hi, Jothy
A DICOMDIR file is a 'Dicom object' (not an 'Operating System'
Directory), holding a sort of summary of what is (recursively) in a
given directory.
HTH
JP
On 03/14/2011 03:37 PM, Jothy wrote:
> Here is the code which works for me!
>
> QString imageDirName=QFileDialog::getExistingDirectory();
> vtkSmartPointer<vtkDICOMImageReader>imgReader=
> vtkSmartPointer<vtkDICOMImageReader>::New();
> imgReader->SetDirectoryName(imageDirName.toLatin1());
> imgReader->Update();
>
> I use Qt. Make sure you have only dicom image files in the dir you are
> reading.I really don't understand what you mean by "a dicomdir file
> format not dicom directory".
>
> HTH
>
> Jothy
>
>
>
> On Mon, Mar 14, 2011 at 2:25 PM, sara.saeed<sosca7 at hotmail.com> wrote:
>> Thanks jothy for ur effort
>> here's the code i tried after a large number of trials :)
>>
>> vtkDICOMImageReader Reader = new vtkDICOMImageReader();
>>
>> Reader.SetDirectoryName(@"C:\dir);
>>
>>
>> Reader.SetFileName(@"DICOMDIR\5720\1.2.840.113619.2.55.3.11835136.527.1246432169.169\1.2.840.113619.2.55.3.11835136.527.1246432169.175\");
>>
>> Reader.Update();
>> i meant a dicomdir file format not dicom directory
>> Thanks again
>>
>> --
--
Jean-Pierre Roux
CNRS UMR 5220, INSERM U 1044
Laboratoire en lutte!
http://www.creatis.univ-lyon1.fr
http://www.sauvonslarecherche.fr/
More information about the vtkusers
mailing list