<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40"><head><meta http-equiv=Content-Type content="text/html; charset=us-ascii"><meta name=Generator content="Microsoft Word 14 (filtered medium)"><style><!--
/* Font Definitions */
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0in;
        margin-bottom:.0001pt;
        font-size:11.0pt;
        font-family:"Calibri","sans-serif";}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:purple;
        text-decoration:underline;}
span.EmailStyle17
        {mso-style-type:personal-compose;
        font-family:"Calibri","sans-serif";
        color:windowtext;}
.MsoChpDefault
        {mso-style-type:export-only;
        font-family:"Calibri","sans-serif";}
@page WordSection1
        {size:8.5in 11.0in;
        margin:1.0in 1.0in 1.0in 1.0in;}
div.WordSection1
        {page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]--></head><body lang=EN-US link=blue vlink=purple><div class=WordSection1><p class=MsoNormal>I’ve written an app (using Windows 7 Enterprise 32-bit, Visual Studio 2010, Qt 4.7.1, and VTK 5.6.1) that opens and displays directories of DICOM files (which I’ve received from a collaborator who works on a Mac). When I run this code segment <o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal style='text-autospace:none'><span style='font-family:"Courier New"'> </span><span style='font-size:9.5pt;font-family:"Courier New"'>vtkImageViewer2 *queryCTImageViewer= vtkImageViewer2::New();<o:p></o:p></span></p><p class=MsoNormal style='text-autospace:none'><span style='font-size:9.5pt;font-family:"Courier New"'> vtkDICOMImageReader *queryDICOMReader = vtkDICOMImageReader::New();<o:p></o:p></span></p><p class=MsoNormal style='text-autospace:none'><span style='font-size:9.5pt;font-family:"Courier New"'> queryDICOMReader->SetDirectoryName(“</span><span style='font-family:"Courier New"'>C:\\Users\Steve\\Documents\\IMRT\\CT\\Patient013\\Primary”);</span><span style='font-size:9.5pt;font-family:"Courier New"'><o:p></o:p></span></p><p class=MsoNormal style='text-autospace:none'><span style='font-size:9.5pt;font-family:"Courier New"'> queryDICOMReader->Update();<o:p></o:p></span></p><p class=MsoNormal style='text-autospace:none'><span style='font-size:9.5pt;font-family:"Courier New"'> queryCTImageViewer->SetInputConnection(queryDICOMReader->GetOutputPort());<o:p></o:p></span></p><p class=MsoNormal style='text-autospace:none'><span style='font-size:9.5pt;font-family:"Courier New"'> queryCTImageViewer->SetSlice(slice); // slice is some valid integer slice number<o:p></o:p></span></p><p class=MsoNormal style='text-autospace:none'><span style='font-size:9.5pt;font-family:"Courier New"'><o:p> </o:p></span></p><p class=MsoNormal style='text-autospace:none'><span style='font-size:9.5pt;font-family:"Courier New"'> queryCTImageViewer->Render();<o:p></o:p></span></p><p class=MsoNormal style='text-autospace:none'><span style='font-size:9.5pt;font-family:"Courier New"'><o:p> </o:p></span></p><p class=MsoNormal style='text-autospace:none'>I get the following error message:<o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>ERROR: In ..\..\IO\vtkDICOMImageReader.cxx, line 119<o:p></o:p></p><p class=MsoNormal>vtkDICOMImageReader (03110268): DICOMParser couldn't parse : C:\Users\Steve\Documents\IMRT\CT\Patient013\Primary<span style='color:red'>/.DS_Store</span><o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>after which the code successfully opens and displays all the files in the named directory, all slices and all orientations. I’m aware that the “<span style='color:red'>.DS_Store</span>” part is a Macintosh phenomenon, and I’ve used the debugger in 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 hypothesis is that there’s something in the CT files that identifies them as having been generated on a Mac, but I’m a noob with CT data and there’s nothing visible when trying to look at sample file contents (they being binary, after all). I’d like to find out how to stop the append from occurring, and thus eliminate the cumbersome error message generation. In the meantime I’m going to go back in and try to work through the many lines of assembly language that come up when I attempt to locate the problem, but I’d appreciate any suggestions from someone who’s familiar with this territory. Thanks.<o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal><span style='color:black'>-Steve Chall<o:p></o:p></span></p><p class=MsoNormal><span style='color:black'> Senior Research Software Developer<o:p></o:p></span></p><p class=MsoNormal><span style='color:black'> Renaissance Computing Institute (RENCI)<o:p></o:p></span></p><p class=MsoNormal><span style='color:black'> Phone: 919-681-9639<o:p></o:p></span></p><p class=MsoNormal><span style='color:black'> Email: <a href="mailto:stevec@renci.org"><span style='color:blue'>stevec@renci.org</span></a></span><o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p></div></body></html>