<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&#8217;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&#8217;ve received from a collaborator who works on a Mac).&nbsp;&nbsp; When&nbsp; I run this code segment <o:p></o:p></p><p class=MsoNormal><o:p>&nbsp;</o:p></p><p class=MsoNormal style='text-autospace:none'><span style='font-family:"Courier New"'>&nbsp;&nbsp;&nbsp;&nbsp; </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"'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 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"'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; queryDICOMReader-&gt;SetDirectoryName(&#8220;</span><span style='font-family:"Courier New"'>C:\\Users\Steve\\Documents\\IMRT\\CT\\Patient013\\Primary&#8221;);</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"'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; queryDICOMReader-&gt;Update();<o:p></o:p></span></p><p class=MsoNormal style='text-autospace:none'><span style='font-size:9.5pt;font-family:"Courier New"'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; queryCTImageViewer-&gt;SetInputConnection(queryDICOMReader-&gt;GetOutputPort());<o:p></o:p></span></p><p class=MsoNormal style='text-autospace:none'><span style='font-size:9.5pt;font-family:"Courier New"'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; queryCTImageViewer-&gt;SetSlice(slice);&nbsp; // 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>&nbsp;</o:p></span></p><p class=MsoNormal style='text-autospace:none'><span style='font-size:9.5pt;font-family:"Courier New"'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; queryCTImageViewer-&gt;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>&nbsp;</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>&nbsp;</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>&nbsp;</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.&nbsp; I&#8217;m aware that the &#8220;<span style='color:red'>.DS_Store</span>&#8221; part is a Macintosh phenomenon, and I&#8217;ve used the debugger in trying to find where that substring is appended to the directory path, but thus far haven&#8217;t been able to pinpoint the spot where it occurs.&nbsp; My hypothesis is that there&#8217;s something in the CT files that identifies them as having been generated on a Mac,&nbsp; but I&#8217;m a noob with CT data and there&#8217;s nothing visible when trying to look at sample file contents (they being binary, after all).&nbsp; I&#8217;d like to find out how to stop the append from occurring, and thus eliminate the cumbersome error message generation.&nbsp; In the meantime I&#8217;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&#8217;d appreciate any suggestions from someone who&#8217;s familiar with this territory. Thanks.<o:p></o:p></p><p class=MsoNormal><o:p>&nbsp;</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'>&nbsp;Senior Research Software Developer<o:p></o:p></span></p><p class=MsoNormal><span style='color:black'>&nbsp;Renaissance Computing Institute (RENCI)<o:p></o:p></span></p><p class=MsoNormal><span style='color:black'>&nbsp;Phone: 919-681-9639<o:p></o:p></span></p><p class=MsoNormal><span style='color:black'>&nbsp;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>&nbsp;</o:p></p></div></body></html>