<html>
<head>
<meta content="text/html; charset=UTF-8" http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
No I'm not. I'm working on a Mac :-( and using Xcode. However, the
ITK libraries were built with CMake. Because I have to support both
32 and 64 bit I used lipo to create universal static libraries but
that is the only difference between what I am doing and a standard
build.<br>
<br>
<div class="moz-cite-prefix">On 14-03-27 11:33 AM, Bill Lorensen
wrote:<br>
</div>
<blockquote
cite="mid:CADZJ4hPhyAp+c1dMVh0XjRuwNAvT0BirzXjKBNfmY8ZHJxz18w@mail.gmail.com"
type="cite">
<p dir="ltr">Are using CMake to configure your program?</p>
<div class="gmail_quote">On Mar 27, 2014 11:23 AM, "Tim Allman"
<<a moz-do-not-send="true"
href="mailto:dr.tim.allman@gmail.com">dr.tim.allman@gmail.com</a>>
wrote:<br type="attribution">
<blockquote class="gmail_quote" style="margin:0 0 0
.8ex;border-left:1px #ccc solid;padding-left:1ex">
Perhaps I misunderstand the documentation but I have written
the following code with the idea that I could read arbitrary
image file types and let the ImageFileReader instance figure
out which ImageIO was needed. The files are Nrrd which seems
to be supported but the last line fails with the error below.<br>
<br>
Any suggestions?<br>
<br>
std::string name = /Users/tim/devel/ConvertToDicom/Case005/out_000.nrrd<br>
<br>
typedef unsigned short PixelType;<br>
typedef itk::Image<PixelType, 2u> Image2DType;<br>
typedef itk::ImageFileReader<Image2DType>
ReaderType;<br>
<br>
ReaderType::Pointer reader = ReaderType::New();<br>
reader->SetFileName(name);<br>
reader->Update();<br>
<br>
itk::ImageFileReaderException: /Users/tim/usr/local/ITK/Universal/Debug/include/ITK-4.5/itkImageFileReader.hxx:143:<br>
Could not create IO object for file /Users/tim/devel/ConvertToDicom/Case005/out_000.nrrd<br>
Tried to create one of the following:<br>
You probably failed to set a file suffix, or<br>
set the suffix to an unsupported type.<br>
<br>
Thanks,<br>
Tim<br>
<br>
-- <br>
Tim Allman, Ph.D.<br>
35 Margaret Street,<br>
Guelph Ontario N1E 5R6<br>
Canada<br>
<br>
<br>
_____________________________________<br>
Powered by <a moz-do-not-send="true"
href="http://www.kitware.com" target="_blank">www.kitware.com</a><br>
<br>
Visit other Kitware open-source projects at<br>
<a moz-do-not-send="true"
href="http://www.kitware.com/opensource/opensource.html"
target="_blank">http://www.kitware.com/opensource/opensource.html</a><br>
<br>
Kitware offers ITK Training Courses, for more information
visit:<br>
<a moz-do-not-send="true"
href="http://www.kitware.com/products/protraining.php"
target="_blank">http://www.kitware.com/products/protraining.php</a><br>
<br>
Please keep messages on-topic and check the ITK FAQ at:<br>
<a moz-do-not-send="true"
href="http://www.itk.org/Wiki/ITK_FAQ" target="_blank">http://www.itk.org/Wiki/ITK_FAQ</a><br>
<br>
Follow this link to subscribe/unsubscribe:<br>
<a moz-do-not-send="true"
href="http://www.itk.org/mailman/listinfo/insight-users"
target="_blank">http://www.itk.org/mailman/listinfo/insight-users</a><br>
<br>
</blockquote>
</div>
</blockquote>
<br>
<pre class="moz-signature" cols="72">--
Tim Allman, Ph.D.
35 Margaret Street,
Guelph Ontario N1E 5R6
Canada
</pre>
</body>
</html>