<html><head><meta http-equiv="Content-Type" content="text/html charset=iso-8859-1"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">Please also include the list in your response.<div><br></div><div>What compiler was used to compile you macPort version of Python?</div><div><br></div><div><pre class="default prettyprint prettyprinted" style="margin-top: 0px; margin-bottom: 10px; padding: 5px; border: 0px; font-size: 14px; vertical-align: baseline; background-color: rgb(238, 238, 238); font-family: Consolas, Menlo, Monaco, 'Lucida Console', 'Liberation Mono', 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Courier New', monospace, serif; overflow: auto; width: auto; max-height: 600px; line-height: 18px; text-align: left; "><code style="margin: 0px; padding: 0px; border: 0px; vertical-align: baseline; font-family: Consolas, Menlo, Monaco, 'Lucida Console', 'Liberation Mono', 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Courier New', monospace, serif; "><span class="pun" style="margin: 0px; padding: 0px; border: 0px; vertical-align: baseline; background-color: transparent; ">&gt;&gt;&gt;</span><span class="pln" style="margin: 0px; padding: 0px; border: 0px; vertical-align: baseline; background-color: transparent; "> </span><span class="kwd" style="margin: 0px; padding: 0px; border: 0px; vertical-align: baseline; background-color: transparent; color: rgb(0, 0, 139); ">import</span><span class="pln" style="margin: 0px; padding: 0px; border: 0px; vertical-align: baseline; background-color: transparent; "> sys
</span><span class="pun" style="margin: 0px; padding: 0px; border: 0px; vertical-align: baseline; background-color: transparent; ">&gt;&gt;&gt;</span><span class="pln" style="margin: 0px; padding: 0px; border: 0px; vertical-align: baseline; background-color: transparent; "> </span><span class="kwd" style="margin: 0px; padding: 0px; border: 0px; vertical-align: baseline; background-color: transparent; color: rgb(0, 0, 139); ">print</span><span class="pun" style="margin: 0px; padding: 0px; border: 0px; vertical-align: baseline; background-color: transparent; ">(</span><span class="pln" style="margin: 0px; padding: 0px; border: 0px; vertical-align: baseline; background-color: transparent; ">sys</span><span class="pun" style="margin: 0px; padding: 0px; border: 0px; vertical-align: baseline; background-color: transparent; ">.</span><span class="pln" style="margin: 0px; padding: 0px; border: 0px; vertical-align: baseline; background-color: transparent; ">version</span><span class="pun" style="margin: 0px; padding: 0px; border: 0px; vertical-align: baseline; background-color: transparent; ">)</span></code></pre><div>Brad</div></div><div><br><div><div>On Aug 7, 2013, at 10:51 AM, Ariel Hernán Curiale &lt;<a href="mailto:curiale@gmail.com">curiale@gmail.com</a>&gt; wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite">
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">Hi Brad,<div><br></div><div>I could run the code using the &nbsp;version installed with easy_install but I prefer to use &nbsp;the version from the source code. I think that I have a problem with clang 4.2 + python. I'll try to find what is happen.</div><div><br><div>
<span class="Apple-style-span" style="border-collapse: separate; border-spacing: 0px; "><div style="font-family: Helvetica; font-size: medium; font-weight: normal; font-style: normal; ">Thanks a lot.</div><div style="font-family: Helvetica; font-size: medium; font-weight: normal; font-style: normal; ">__________________________________<br><font class="Apple-style-span" color="#b7bfc5">|</font>&nbsp;Ariel Hernán Curiale Ph.D Student<br><font class="Apple-style-span" color="#b7bfc5">|</font>&nbsp;ETSI Telecomunicación<br><font class="Apple-style-span" color="#b7bfc5">|</font>&nbsp;Universidad de Valladolid<br><font class="Apple-style-span" color="#b7bfc5">|</font>&nbsp;Campus Miguel Delibes<br><font class="Apple-style-span" color="#b7bfc5">|</font>&nbsp;47011 Valladolid, Spain<br><font class="Apple-style-span" color="#b7bfc5">|</font>&nbsp;Phone: 983-423000 ext. 5590</div><font class="Apple-style-span" color="#b7b7b7" style="font-family: Helvetica; font-size: medium; font-weight: normal; font-style: normal; ">|</font>&nbsp;Web:&nbsp;<a href="http://www.curiale.com.ar/"><font class="Apple-style-span" color="#084ebe">www.curiale.com.ar</font></a><br><font class="Apple-style-span" color="#b7b7b7" style="font-family: Helvetica; font-size: medium; font-weight: normal; font-style: normal; ">|</font>_________________________________</span>
</div>
<br><div><div>El 07/08/2013, a las 15:08, Bradley Lowekamp escribió:</div><br class="Apple-interchange-newline"><blockquote type="cite"><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">Hello,<div><br></div><div>If you try to download the build distribution for your system python, it the error there?</div><div><br></div><div>/usr/bin/easy_install SimpleITK</div><div><br></div><div>Also did you run the tests for you compilation of SimpleITK? any failures?</div><div><br></div><div>Brad</div><div><br><div><div>On Aug 7, 2013, at 6:43 AM, Ariel Hernán Curiale &lt;<a href="mailto:curiale@gmail.com">curiale@gmail.com</a>&gt; wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite">
<div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">Hi,<div><br></div><div>After rebuild the SimpleITK-0.6.1 the error is still there. The compilation of SimpleITK finish without any error.</div><div><br></div><div>I'm using:</div><div>ITK-4.4.0</div><div>Apple LLVM version 4.2 (clang-425.0.28) (based on LLVM 3.2svn)</div><div>Python 2.7.5 from MacPort</div><div><br></div><div><br><div>
<div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><span class="Apple-style-span" style="border-collapse: separate; border-spacing: 0px; "><div style="font-family: Helvetica; font-size: medium; font-weight: normal; font-style: normal; ">Cheers,</div><div style="font-family: Helvetica; font-size: medium; font-weight: normal; font-style: normal; ">__________________________________<br><font class="Apple-style-span" color="#b7bfc5">|</font>&nbsp;Ariel Hernán Curiale Ph.D Student<br><font class="Apple-style-span" color="#b7bfc5">|</font>&nbsp;ETSI Telecomunicación<br><font class="Apple-style-span" color="#b7bfc5">|</font>&nbsp;Universidad de Valladolid<br><font class="Apple-style-span" color="#b7bfc5">|</font>&nbsp;Campus Miguel Delibes<br><font class="Apple-style-span" color="#b7bfc5">|</font>&nbsp;47011 Valladolid, Spain<br><font class="Apple-style-span" color="#b7bfc5">|</font>&nbsp;Phone: 983-423000 ext. 5590</div><font class="Apple-style-span" color="#b7b7b7" style="font-family: Helvetica; font-size: medium; font-weight: normal; font-style: normal; ">|</font>&nbsp;Web:&nbsp;<a href="http://www.curiale.com.ar/"><font class="Apple-style-span" color="#084ebe">www.curiale.com.ar</font></a><br><font class="Apple-style-span" color="#b7b7b7" style="font-family: Helvetica; font-size: medium; font-weight: normal; font-style: normal; ">|</font>_________________________________</span></div></div>
</div>
<br><div><div>El 06/08/2013, a las 23:14, Matt McCormick escribió:</div><br class="Apple-interchange-newline"><blockquote type="cite">Hi Ariel,<br><br>Your code works when I run it &nbsp;with SimpleITK 0.6.1:<br><br>In [4]: im2<br>Out[4]: &lt;SimpleITK.Image; proxy of &lt;Swig Object of type 'std::vector&lt;<br>itk::simple::Image &gt;::value_type *' at 0x4fdf300&gt; &gt;<br><br>In [5]: print(im2)<br>Image (0x44ea740)<br> &nbsp;RTTI typeinfo: &nbsp;&nbsp;itk::Image&lt;double, 2u&gt;<br> &nbsp;Reference Count: 1<br> &nbsp;Modified Time: 1413<br> &nbsp;Debug: Off<br> &nbsp;Observers:<br> &nbsp;&nbsp;&nbsp;none<br> &nbsp;Source: (none)<br> &nbsp;Source output name: (none)<br> &nbsp;Release Data: Off<br> &nbsp;Data Released: False<br> &nbsp;Global Release Data: Off<br> &nbsp;PipelineMTime: 1250<br> &nbsp;UpdateMTime: 1412<br> &nbsp;RealTimeStamp: 0 seconds<br> &nbsp;LargestPossibleRegion:<br> &nbsp;&nbsp;&nbsp;Dimension: 2<br> &nbsp;&nbsp;&nbsp;Index: [0, 0]<br> &nbsp;&nbsp;&nbsp;Size: [100, 100]<br> &nbsp;BufferedRegion:<br> &nbsp;&nbsp;&nbsp;Dimension: 2<br> &nbsp;&nbsp;&nbsp;Index: [0, 0]<br> &nbsp;&nbsp;&nbsp;Size: [100, 100]<br> &nbsp;RequestedRegion:<br> &nbsp;&nbsp;&nbsp;Dimension: 2<br> &nbsp;&nbsp;&nbsp;Index: [0, 0]<br> &nbsp;&nbsp;&nbsp;Size: [100, 100]<br> &nbsp;Spacing: [0.834496, 0.822352]<br> &nbsp;Origin: [0, 0]<br> &nbsp;Direction:<br>1 0<br>0 1<br><br> &nbsp;IndexToPointMatrix:<br> &nbsp;0.834496 0<br>0 0.822352<br><br> &nbsp;PointToIndexMatrix:<br> &nbsp;1.19833 0<br>0 1.21602<br><br> &nbsp;Inverse Direction:<br> &nbsp;1 0<br>0 1<br><br> &nbsp;PixelContainer:<br> &nbsp;&nbsp;&nbsp;ImportImageContainer (0x44ea910)<br> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;RTTI typeinfo: &nbsp;&nbsp;itk::ImportImageContainer&lt;unsigned long, double&gt;<br> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Reference Count: 1<br> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Modified Time: 1409<br> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Debug: Off<br> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Observers:<br> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;none<br> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Pointer: 0x506a530<br> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Container manages memory: true<br> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Size: 10000<br> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Capacity: 10000<br><br>HTH,<br>Matt<br><br>On Tue, Aug 6, 2013 at 8:26 PM, Ariel Hernán Curiale &lt;<a href="mailto:curiale@gmail.com">curiale@gmail.com</a>&gt; wrote:<br><blockquote type="cite">Hi Matt,<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite">You are right, the vtk format is always 3D. If you have a 2D image &nbsp;and save<br></blockquote><blockquote type="cite">it as vtk, then the writer automatically add the last dimension with a<br></blockquote><blockquote type="cite">spacing 1.<br></blockquote><blockquote type="cite">For example, this is the 2D image create with the python code:<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite">ariel@Gohan:~/Uva/LPI/Proyectos/Python-ITK-VTK-QT/Ultrasonido/SpeckleTracking$<br></blockquote><blockquote type="cite">head -10 img.vtk<br></blockquote><blockquote type="cite"># vtk DataFile Version 3.0<br></blockquote><blockquote type="cite">VTK File Generated by Insight Segmentation and Registration Toolkit (ITK)<br></blockquote><blockquote type="cite">BINARY<br></blockquote><blockquote type="cite">DATASET STRUCTURED_POINTS<br></blockquote><blockquote type="cite">DIMENSIONS 100 100 1<br></blockquote><blockquote type="cite">SPACING 1.0000000000000000e+00 1.0000000000000000e+00 1.0000000000000000e+00<br></blockquote><blockquote type="cite">ORIGIN 0.0000000000000000e+00 0.0000000000000000e+00 0.0000000000000000e+00<br></blockquote><blockquote type="cite">POINT_DATA 10000<br></blockquote><blockquote type="cite">SCALARS scalars double 1<br></blockquote><blockquote type="cite">LOOKUP_TABLE default<br></blockquote><blockquote type="cite">.....<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite">I don't know why the warning say that the spacing must be grater than 0<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite">Ps: I can read this image using vtk.<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite">Thanks for your quickly response.<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite">Cheers,<br></blockquote><blockquote type="cite">__________________________________<br></blockquote><blockquote type="cite">| Ariel Hernán Curiale Ph.D Student<br></blockquote><blockquote type="cite">| ETSI Telecomunicación<br></blockquote><blockquote type="cite">| Universidad de Valladolid<br></blockquote><blockquote type="cite">| Campus Miguel Delibes<br></blockquote><blockquote type="cite">| 47011 Valladolid, Spain<br></blockquote><blockquote type="cite">| Phone: 983-423000 ext. 5590<br></blockquote><blockquote type="cite">| Web: <a href="http://www.curiale.com.ar/">www.curiale.com.ar</a><br></blockquote><blockquote type="cite">|_________________________________<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite">El 06/08/2013, a las 17:52, Matt McCormick escribió:<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite">Hi Ariel,<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite">The VTK file format [1] is always 3D, so a non-zero spacing will need<br></blockquote><blockquote type="cite">to be specified if using this format.<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite">HTH,<br></blockquote><blockquote type="cite">Matt<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite">[1] <a href="http://www.vtk.org/VTK/img/file-formats.pdf">www.vtk.org/VTK/img/file-formats.pdf</a><br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite">On Tue, Aug 6, 2013 at 3:00 PM, Ariel Hernán Curiale &lt;<a href="mailto:curiale@gmail.com">curiale@gmail.com</a>&gt;<br></blockquote><blockquote type="cite">wrote:<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite">Hi,<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite">I create a simple example to show you the problem that I'm getting when I'm<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite">trying to read a vtk file. I'm using the last release of SimpleITK<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite">(SimpleITK-0.6.1) and python.<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite">In this example, I create, write and read a simple image.<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite">Here is the code:<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite">-------------------------<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite">import SimpleITK as sitk<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite">import scipy as sc<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite">dim = (100, 100)<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite">origin = (0, 0)<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite">spacing = (0.834496, 0.8223519)<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite">img = sc.zeros(dim)<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite">img[20:40, 20:40] = 1<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite">img_sitk = sitk.GetImageFromArray(img)<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite">img_sitk.SetOrigin(origin)<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite">img_sitk.SetSpacing(spacing)<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite">print img_sitk<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite">sitk.Show(img_sitk)<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite">sitk.WriteImage(img_sitk,"img.vtk")<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite">im = sitk.ReadImage("img.vtk")<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite">reader = sitk.ImageFileReader()<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite">reader.SetFileName("img.vtk")<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite">im2 = reader.Execute()<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite">--------<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite">The img_sitk seems to be created properly:<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite">----<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite">Image (0x7f9a95ff8550)<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite"> RTTI typeinfo: &nbsp;&nbsp;itk::Image&lt;double, 2u&gt;<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite"> Reference Count: 1<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite"> Modified Time: 3295<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite"> Debug: Off<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite"> Observers:<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite"> &nbsp;&nbsp;none<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite"> Source: (none)<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite"> Source output name: (none)<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite"> Release Data: Off<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite"> Data Released: False<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite"> Global Release Data: Off<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite"> PipelineMTime: 0<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite"> UpdateMTime: 0<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite"> RealTimeStamp: 0 seconds<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite"> LargestPossibleRegion:<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite"> &nbsp;&nbsp;Dimension: 2<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite"> &nbsp;&nbsp;Index: [0, 0]<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite"> &nbsp;&nbsp;Size: [100, 100]<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite"> BufferedRegion:<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite"> &nbsp;&nbsp;Dimension: 2<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite"> &nbsp;&nbsp;Index: [0, 0]<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite"> &nbsp;&nbsp;Size: [100, 100]<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite"> RequestedRegion:<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite"> &nbsp;&nbsp;Dimension: 2<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite"> &nbsp;&nbsp;Index: [0, 0]<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite"> &nbsp;&nbsp;Size: [100, 100]<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite"> Spacing: [0.834496, 0.822352]<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite"> Origin: [0, 0]<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite"> Direction:<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite">1 0<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite">0 1<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite"> IndexToPointMatrix:<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite">0.834496 0<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite">0 0.822352<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite"> PointToIndexMatrix:<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite">1.19833 0<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite">0 1.21602<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite"> Inverse Direction:<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite">1 0<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite">0 1<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite"> PixelContainer:<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite"> &nbsp;&nbsp;ImportImageContainer (0x7f9a960309b0)<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite"> &nbsp;&nbsp;&nbsp;&nbsp;RTTI typeinfo: &nbsp;&nbsp;itk::ImportImageContainer&lt;unsigned long, double&gt;<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite"> &nbsp;&nbsp;&nbsp;&nbsp;Reference Count: 1<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite"> &nbsp;&nbsp;&nbsp;&nbsp;Modified Time: 2866<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite"> &nbsp;&nbsp;&nbsp;&nbsp;Debug: Off<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite"> &nbsp;&nbsp;&nbsp;&nbsp;Observers:<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite"> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;none<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite"> &nbsp;&nbsp;&nbsp;&nbsp;Pointer: 0x7f9a95352200<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite"> &nbsp;&nbsp;&nbsp;&nbsp;Container manages memory: true<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite"> &nbsp;&nbsp;&nbsp;&nbsp;Size: 10000<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite"> &nbsp;&nbsp;&nbsp;&nbsp;Capacity: 10000<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite">But when I try to read the image using sitk.ReadImage or<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite">sitk.ImageFileReader I'm getting this error:<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite">----<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite">Traceback (most recent call last):<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite"> File "&lt;stdin&gt;", line 1, in &lt;module&gt;<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite"> File<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite">"/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/SimpleITK-0.6.1_g1387a-py2.7-macosx-10.7-x86_64.egg/SimpleITK.py",<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite">line 4371, in Execute<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite"> &nbsp;&nbsp;return _SimpleITK.ImageFileReader_Execute(self)<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite">RuntimeError: Exception thrown in SimpleITK ImageFileReader_Execute:<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite">/Users/ariel/Applications/InsightToolkit-4.4.0/Modules/Core/Common/include/itkImageBase.hxx:189:<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite">itk::ERROR: Image(0x7f9a95d9d640): A spacing of 0 is not allowed: Spacing is<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite">[1, 0]<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite">----<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite">It seems to be a bug but, I don't know if I'm doing something wrong.<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite">Cheers,<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite">__________________________________<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite">| Ariel Hernán Curiale Ph.D Student<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite">| ETSI Telecomunicación<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite">| Universidad de Valladolid<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite">| Campus Miguel Delibes<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite">| 47011 Valladolid, Spain<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite">| Phone: 983-423000 ext. 5590<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite">| Web: <a href="http://www.curiale.com.ar/">www.curiale.com.ar</a><br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite">|_________________________________<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite">_____________________________________<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite">Powered by <a href="http://www.kitware.com/">www.kitware.com</a><br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite">Visit other Kitware open-source projects at<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite"><a href="http://www.kitware.com/opensource/opensource.html">http://www.kitware.com/opensource/opensource.html</a><br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite">Kitware offers ITK Training Courses, for more information visit:<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite"><a href="http://www.kitware.com/products/protraining.php">http://www.kitware.com/products/protraining.php</a><br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite">Please keep messages on-topic and check the ITK FAQ at:<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite"><a href="http://www.itk.org/Wiki/ITK_FAQ">http://www.itk.org/Wiki/ITK_FAQ</a><br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite">Follow this link to subscribe/unsubscribe:<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite"><a href="http://www.itk.org/mailman/listinfo/insight-users">http://www.itk.org/mailman/listinfo/insight-users</a><br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite"><br></blockquote></blockquote></div><br></div></div>_____________________________________<br>Powered by <a href="http://www.kitware.com/">www.kitware.com</a><br><br>Visit other Kitware open-source projects at<br><a href="http://www.kitware.com/opensource/opensource.html">http://www.kitware.com/opensource/opensource.html</a><br><br>Kitware offers ITK Training Courses, for more information visit:<br><a href="http://www.kitware.com/products/protraining.php">http://www.kitware.com/products/protraining.php</a><br><br>Please keep messages on-topic and check the ITK FAQ at:<br><a href="http://www.itk.org/Wiki/ITK_FAQ">http://www.itk.org/Wiki/ITK_FAQ</a><br><br>Follow this link to subscribe/unsubscribe:<br>http://www.itk.org/mailman/listinfo/insight-users<br></blockquote></div><br></div></div></blockquote></div><br></div></div></blockquote></div><br></div></body></html>