<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)">
<!--[if !mso]><style>v\:* {behavior:url(#default#VML);}
o\:* {behavior:url(#default#VML);}
w\:* {behavior:url(#default#VML);}
.shape {behavior:url(#default#VML);}
</style><![endif]--><style><!--
/* Font Definitions */
@font-face
{font-family:Calibri;
panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
{font-family:Tahoma;
panose-1:2 11 6 4 3 5 4 4 2 4;}
@font-face
{font-family:"MS Reference Sans Serif";
panose-1:2 11 6 4 3 5 4 4 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
{margin:0in;
margin-bottom:.0001pt;
font-size:12.0pt;
font-family:"Times New Roman","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-reply;
font-family:"Calibri","sans-serif";
color:#1F497D;}
.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"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D">Dear Jon,<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D">Thanks for your reply, and sorry for my late reply. I do not yet know what exactly the problem is, but the program is working on another computer after compiling
it exactly the same way. It surprised me, but I am happy with that. So my problem is resolved.<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D">Regards<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D">Ruturaj<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D"><o:p> </o:p></span></p>
<p class="MsoNormal"><b><span style="font-size:10.0pt;font-family:"Tahoma","sans-serif"">From:</span></b><span style="font-size:10.0pt;font-family:"Tahoma","sans-serif""> Jon Haitz Legarreta [mailto:jhlegarreta@vicomtech.org]
<br>
<b>Sent:</b> Thursday, February 27, 2014 3:59 PM<br>
<b>To:</b> Girish, Gavaskar Ruturaj<br>
<b>Cc:</b> community@itk.org<br>
<b>Subject:</b> Re: [ITK Community] Exception caught from itkImageFileReader.hxx<o:p></o:p></span></p>
<p class="MsoNormal"><o:p> </o:p></p>
<div>
<div>
<div>
<div>
<div>
<p class="MsoNormal">Dear Ruturaj,<o:p></o:p></p>
</div>
<p class="MsoNormal" style="margin-bottom:12.0pt">in order to read a single DICOM file using the iktImageFileReader, you should use the itk::GDCMImageIO AFAIK, as in this [1] example.<o:p></o:p></p>
</div>
<p class="MsoNormal" style="margin-bottom:12.0pt">For TIFF images, you'd generally use the itk::TIFFImageIO class [2], but I don't know about specificities of multipage TIFF files.<o:p></o:p></p>
</div>
<p class="MsoNormal" style="margin-bottom:12.0pt">As for the toolkit you are mentioning, I see that it contains some heavy (I guess multipage) TIFF files. If the toolkit fails to open them, as you have the sources, then you may want to debug in order to provide
the community with a deeper report of the problem, or you may want to report the problems to the authors of the toolkit. If it's able to read them, you may want to have a look at the sources in order to inspire your own multipage-TIFF file opening methods.<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal" style="margin-bottom:12.0pt">If the toolkit documentation does not say that it is able to handle DICOM files, you'd better not to assume it. Or else, if it says so, but does not provide some own sample files, then it'd be a good idea to
suggest it to the authors.<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal">Kind regards,<o:p></o:p></p>
</div>
<p class="MsoNormal">JON HAITZ<o:p></o:p></p>
<div>
<div>
<div>
<p class="MsoNormal"><br>
[1] <a href="http://www.itk.org/Doxygen/html/IO_2DicomImageReadPrintTags_8cxx-example.html">
http://www.itk.org/Doxygen/html/IO_2DicomImageReadPrintTags_8cxx-example.html</a><br>
[2] <a href="http://www.itk.org/Insight/Doxygen/html/classitk_1_1TIFFImageIO.html">
http://www.itk.org/Insight/Doxygen/html/classitk_1_1TIFFImageIO.html</a><o:p></o:p></p>
<div>
<div>
<div>
<p class="MsoNormal" style="margin-bottom:12.0pt"><br>
<br>
<o:p></o:p></p>
<div>
<p class="MsoNormal">On 27 February 2014 11:04, Girish, Gavaskar Ruturaj <<a href="mailto:gavaskar.ruturaj.girish@philips.com" target="_blank">gavaskar.ruturaj.girish@philips.com</a>> wrote:<o:p></o:p></p>
<div>
<div>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto">Hello all.<o:p></o:p></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"> <o:p></o:p></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto">I have compiled a program which uses ITK (version 4.6). When I run the program I immediately get the following error and it aborts:<o:p></o:p></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"> <o:p></o:p></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><span style="font-family:"MS Reference Sans Serif","sans-serif";color:#376092">Exception caught when reading data image. The error is:</span><o:p></o:p></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><span style="font-family:"MS Reference Sans Serif","sans-serif";color:#376092"> </span><o:p></o:p></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><span style="font-family:"MS Reference Sans Serif","sans-serif";color:#376092">itk::ImageFileReaderException (000000000018CDA8)</span><o:p></o:p></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><span style="font-family:"MS Reference Sans Serif","sans-serif";color:#376092">Location: "void __cdecl itk::ImageFileReader<class itk::Image<float,3>,class itk</span><o:p></o:p></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><span style="font-family:"MS Reference Sans Serif","sans-serif";color:#376092">::DefaultConvertPixelTraits<float> >::GenerateOutputInformation(void)"</span><o:p></o:p></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><span style="font-family:"MS Reference Sans Serif","sans-serif";color:#376092">File: c:\program files\itk\include\itk-4.6\itkImageFileReader.hxx</span><o:p></o:p></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><span style="font-family:"MS Reference Sans Serif","sans-serif";color:#376092">Line: 143</span><o:p></o:p></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><span style="font-family:"MS Reference Sans Serif","sans-serif";color:#376092">Description: Could not create IO object for file ..\..\image.dcm</span><o:p></o:p></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><span style="font-family:"MS Reference Sans Serif","sans-serif";color:#376092"> Tried to create one of the following:</span><o:p></o:p></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><span style="font-family:"MS Reference Sans Serif","sans-serif";color:#376092"> You probably failed to set a file suffix, or</span><o:p></o:p></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><span style="font-family:"MS Reference Sans Serif","sans-serif";color:#376092"> set the suffix to an unsupported type.</span><o:p></o:p></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><span style="color:#376092"> </span><o:p></o:p></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto">I have tried this many times with (3D) .dcm and (multipage) .tif input files, and I get the same error every time. I can surely say that I am giving the file extension correctly.<o:p></o:p></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto">What could be the cause of this error?<o:p></o:p></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"> <o:p></o:p></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto">Thanks.<o:p></o:p></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"> <o:p></o:p></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto">Regards<o:p></o:p></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto">Ruturaj<o:p></o:p></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"> <o:p></o:p></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto">P.S.: I haven’t written the program. It is freely available
<a href="http://mosaic.mpi-cbg.de/?q=downloads/RCITK" target="_blank">here</a>. I am not familiar with the source code. I just want to know which different scenarios could give rise to this error (e.g. unsupported suffix & any others) which might help me know
what is going wrong.<o:p></o:p></p>
</div>
<p class="MsoNormal"><o:p> </o:p></p>
<div class="MsoNormal" align="center" style="text-align:center">
<hr size="2" width="100%" align="center">
</div>
<p class="MsoNormal"><span style="font-size:7.5pt;font-family:"Arial","sans-serif";color:gray">The information contained in this message may be confidential and legally protected under applicable law. The message is intended solely for the addressee(s). If
you are not the intended recipient, you are hereby notified that any use, forwarding, dissemination, or reproduction of this message is strictly prohibited and may be unlawful. If you are not the intended recipient, please contact the sender by return e-mail
and destroy all copies of the original message.</span><o:p></o:p></p>
</div>
<p class="MsoNormal" style="margin-bottom:12.0pt"><br>
_______________________________________________<br>
Community mailing list<br>
<a href="mailto:Community@itk.org">Community@itk.org</a><br>
<a href="http://public.kitware.com/cgi-bin/mailman/listinfo/community" target="_blank">http://public.kitware.com/cgi-bin/mailman/listinfo/community</a><o:p></o:p></p>
</div>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</body>
</html>