<html><head></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">I'm sorry I forgot include the list.<div><br></div><div>The compiler used to compile python was:</div><div><div>>> print(sys.version)</div><div>2.7.5 (default, Aug 1 2013, 00:59:40) </div><div>[GCC 4.2.1 Compatible Apple Clang 4.1 ((tags/Apple/clang-421.11.66))]</div></div><div><br></div><div><br></div><div>These are the compiler that I have in the system:</div><div><br></div><div><div>1)</div><div><div>/usr/bin/clang++ -> clang</div><div>/usr/bin/cc -> clang</div></div><div><div>Apple LLVM version 4.2 (clang-425.0.28) (based on LLVM 3.2svn)</div><div>Target: x86_64-apple-darwin11.4.2</div><div>Thread model: posix</div></div></div><div><br></div><div>2)</div><div>/usr/bin/g++ -> ../llvm-gcc-4.2/bin/llvm-g++-4.2</div><div>/usr/bin/gcc -> llvm-gcc-4.2</div><div>i686-apple-darwin11-llvm-gcc-4.2 (GCC) 4.2.1 (Based on Apple Inc. build 5658) (LLVM build 2336.11.00)</div><div><br></div><div><div>3) </div><div>/usr/bin/i686-apple-darwin11-llvm-g++-4.2 -> ../llvm-gcc-4.2/bin/i686-apple-darwin11-llvm-g++-4.2</div><div>/usr/bin/i686-apple-darwin11-llvm-gcc-4.2 -> ../llvm-gcc-4.2/bin/i686-apple-darwin11-llvm-gcc-4.2</div><div>i686-apple-darwin11-llvm-gcc-4.2 (GCC) 4.2.1 (Based on Apple Inc. build 5658) (LLVM build 2336.11.00)</div></div><div><br></div><div><br></div><div><br></div><div>I set the the variable CC to /usr/bin/cc and then I download and installed the python by mac port.</div><div><br></div><div><br></div><div><div apple-content-edited="true"><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; "><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; "><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; "><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; "><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; "><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; font-variant: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: -webkit-auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; "><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; font-variant: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: -webkit-auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; "><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; font-variant: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: -webkit-auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; "><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; font-variant: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: -webkit-auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; "><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><div><div style="color: rgb(0, 0, 0); font-family: Helvetica; font-size: medium; font-weight: normal; font-style: normal; "><div style="color: rgb(0, 0, 0); font-family: Helvetica; font-size: medium; font-weight: normal; font-style: normal; ">__________________________________<br><font class="Apple-style-span" color="#b7bfc5">|</font> Ariel Hernán Curiale Ph.D Student<br><font class="Apple-style-span" color="#b7bfc5">|</font> ETSI Telecomunicación<br><font class="Apple-style-span" color="#b7bfc5">|</font> Universidad de Valladolid<br><font class="Apple-style-span" color="#b7bfc5">|</font> Campus Miguel Delibes<br><font class="Apple-style-span" color="#b7bfc5">|</font> 47011 Valladolid, Spain<br><font class="Apple-style-span" color="#b7bfc5">|</font> Phone: 983-423000 ext. 5590</div><div><font class="Apple-style-span" color="#b7b7b7" style="font-family: Helvetica; font-size: medium; font-weight: normal; font-style: normal; ">|</font> Web: <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 class="Apple-style-span" style="font-family: Helvetica; font-size: medium; font-weight: normal; font-style: normal; color: rgb(0, 0, 0); ">_________________________________</span></div></div></div></div></span></div></span></div></span></div></span></div></div></div></div></div></div></div></div></div></div></div></div>
</div>
<br><div><div>El 07/08/2013, a las 17:35, Bradley Lowekamp escribió:</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; ">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; ">>>></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; ">>>></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 <<a href="mailto:curiale@gmail.com">curiale@gmail.com</a>> 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 version installed with easy_install but I prefer to use 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> Ariel Hernán Curiale Ph.D Student<br><font class="Apple-style-span" color="#b7bfc5">|</font> ETSI Telecomunicación<br><font class="Apple-style-span" color="#b7bfc5">|</font> Universidad de Valladolid<br><font class="Apple-style-span" color="#b7bfc5">|</font> Campus Miguel Delibes<br><font class="Apple-style-span" color="#b7bfc5">|</font> 47011 Valladolid, Spain<br><font class="Apple-style-span" color="#b7bfc5">|</font> 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> Web: <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 <<a href="mailto:curiale@gmail.com">curiale@gmail.com</a>> 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> Ariel Hernán Curiale Ph.D Student<br><font class="Apple-style-span" color="#b7bfc5">|</font> ETSI Telecomunicación<br><font class="Apple-style-span" color="#b7bfc5">|</font> Universidad de Valladolid<br><font class="Apple-style-span" color="#b7bfc5">|</font> Campus Miguel Delibes<br><font class="Apple-style-span" color="#b7bfc5">|</font> 47011 Valladolid, Spain<br><font class="Apple-style-span" color="#b7bfc5">|</font> 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> Web: <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 with SimpleITK 0.6.1:<br><br>In [4]: im2<br>Out[4]: <SimpleITK.Image; proxy of <Swig Object of type 'std::vector<<br>itk::simple::Image >::value_type *' at 0x4fdf300> ><br><br>In [5]: print(im2)<br>Image (0x44ea740)<br> RTTI typeinfo: itk::Image<double, 2u><br> Reference Count: 1<br> Modified Time: 1413<br> Debug: Off<br> Observers:<br> none<br> Source: (none)<br> Source output name: (none)<br> Release Data: Off<br> Data Released: False<br> Global Release Data: Off<br> PipelineMTime: 1250<br> UpdateMTime: 1412<br> RealTimeStamp: 0 seconds<br> LargestPossibleRegion:<br> Dimension: 2<br> Index: [0, 0]<br> Size: [100, 100]<br> BufferedRegion:<br> Dimension: 2<br> Index: [0, 0]<br> Size: [100, 100]<br> RequestedRegion:<br> Dimension: 2<br> Index: [0, 0]<br> Size: [100, 100]<br> Spacing: [0.834496, 0.822352]<br> Origin: [0, 0]<br> Direction:<br>1 0<br>0 1<br><br> IndexToPointMatrix:<br> 0.834496 0<br>0 0.822352<br><br> PointToIndexMatrix:<br> 1.19833 0<br>0 1.21602<br><br> Inverse Direction:<br> 1 0<br>0 1<br><br> PixelContainer:<br> ImportImageContainer (0x44ea910)<br> RTTI typeinfo: itk::ImportImageContainer<unsigned long, double><br> Reference Count: 1<br> Modified Time: 1409<br> Debug: Off<br> Observers:<br> none<br> Pointer: 0x506a530<br> Container manages memory: true<br> Size: 10000<br> Capacity: 10000<br><br>HTH,<br>Matt<br><br>On Tue, Aug 6, 2013 at 8:26 PM, Ariel Hernán Curiale <<a href="mailto:curiale@gmail.com">curiale@gmail.com</a>> 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 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 <<a href="mailto:curiale@gmail.com">curiale@gmail.com</a>><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: itk::Image<double, 2u><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"> 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"> Dimension: 2<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite"> Index: [0, 0]<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite"> Size: [100, 100]<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite"> BufferedRegion:<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite"> Dimension: 2<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite"> Index: [0, 0]<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite"> Size: [100, 100]<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite"> RequestedRegion:<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite"> Dimension: 2<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite"> Index: [0, 0]<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite"> 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"> ImportImageContainer (0x7f9a960309b0)<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite"> RTTI typeinfo: itk::ImportImageContainer<unsigned long, double><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: 2866<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"> none<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite"> Pointer: 0x7f9a95352200<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite"> Container manages memory: true<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite"> Size: 10000<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite"> 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 "<stdin>", line 1, in <module><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"> 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><a href="http://www.itk.org/mailman/listinfo/insight-users">http://www.itk.org/mailman/listinfo/insight-users</a><br></blockquote></div><br></div></div></blockquote></div><br></div></div></blockquote></div><br></div></div></blockquote></div><br></div></body></html>