[vtkusers] error message reading (Mac-created?) DICOM files in a Windows app
Steven Chall
stevec at renci.org
Tue Feb 1 10:10:28 EST 2011
Mathieu,
You're absolutely correct. I should have taken the error message at its face value: using Cygwin to look at the directories in question from a Unix perspective, there are indeed .DS_Store directories in each, that came over with the .dcm files from the Mac on which they were stored. They simply didn't show up in Windows. Thank you very much.
Steve
-Steve Chall
Senior Research Software Developer
Renaissance Computing Institute (RENCI)
Phone: 919-681-9639
Email: stevec at renci.org
-----Original Message-----
From: Mathieu Malaterre [mailto:mathieu.malaterre at gmail.com]
Sent: Tuesday, February 01, 2011 10:00 AM
To: Steven Chall
Subject: Re: [vtkusers] error message reading (Mac-created?) DICOM files in a Windows app
Steve,
Here is your query:
...
queryDICOMReader->SetDirectoryName("C:\\Users\Steve\\Documents\\IMRT\\CT
queryDICOMReader->\\Patient013\\Primary");
...
Here is your warning:
...
vtkDICOMImageReader (03110268): DICOMParser couldn't parse :
C:\Users\Steve\Documents\IMRT\CT\Patient013\Primary/.DS_Store
...
So I suspect that this directory actually exist on the machine your are running your vtk filter. And in this directory there is a hidden unix file called '.DS_STORE', which I suspect is coming from an archive (.zip, .tgz) created on a MacOSX system.
HTH
On Tue, Feb 1, 2011 at 3:53 PM, Steven Chall <stevec at renci.org> wrote:
> Mathieu,
> Thanks for your reply. I'm happy you're still on the list: I've already benefited from several of your earlier archived postings as I begin to use VTK's DICOM-reading and -displaying capabilities.
>
> Yes, vtkDICOMImageReader is clearly a powerful class. The mystery for me in this case is that it's trying to load files in a directory that doesn't even exist on my machine, and I don't think on any Windows machine (I don't believe Windows supports files or directories whose names begin with '.'). I'm trying to figure out why it's appending ".DS_Store" to the path I give it, then failing to parse the resulting string, then moving on to successfully loading the files in that directory that do exist. Any ideas? Thanks.
>
> Steve
>
>
> -Steve Chall
> Senior Research Software Developer
> Renaissance Computing Institute (RENCI)
> Phone: 919-681-9639
> Email: stevec at renci.org
>
>
>
> -----Original Message-----
> From: Mathieu Malaterre [mailto:mathieu.malaterre at gmail.com]
> Sent: Tuesday, February 01, 2011 3:56 AM
> To: Steven Chall
> Cc: vtkusers at vtk.org
> Subject: Re: [vtkusers] error message reading (Mac-created?) DICOM
> files in a Windows app
>
> Steve,
>
> On Mon, Jan 31, 2011 at 5:11 PM, Steven Chall <stevec at renci.org> wrote:
>> queryDICOMReader->SetDirectoryName("C:\\Users\Steve\\Documents\\IMRT\
>> queryDICOMReader->\ CT\\Patient013\\Primary");
> ...
>> trying to find where that substring is appended to the directory
>> path, but thus far haven't been able to pinpoint the spot where it occurs.
>> My
>
> the class will load any file located in your input directory, even UNIX hidden files (files that start with a dot).
>
> 2cts
> --
> Mathieu
>
--
Mathieu
More information about the vtkusers
mailing list