<html><head></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">Hello,<div><br></div><div>I see that you are running the 0.4.0 release. Are you running window as well? Is the error message truncated?</div><div><br></div><div>Did you download and install ImageJ?</div><div><br></div><div><a href="http://www.vtk.org/Wiki/ITK_Release_4/SimpleITK/GettingStarted#Recommended_Software">http://www.vtk.org/Wiki/ITK_Release_4/SimpleITK/GettingStarted#Recommended_Software</a></div><div><br></div><div>There also is a bug in that binary release where on windows it may not find the ImageJ executable. The work around is to install ImageJ into C:\ImageJ, and then add that path the the executable into your PATH environmental variable. Alternatively you could compile a more recent version from the source.</div><div><br></div><div>We debated if we should release a patched version for this fix, but decided that we should continue out effort on development instead of packaging, and since it was only called a beta release its not unexpected to have a couple small bug. But if people clamor too much a couple patched versions could be made.</div><div><br></div><div>Brad</div><div><br></div><div><div><div>On May 8, 2012, at 2:23 PM, Ing. Arturo Vargas Olivares wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite"><div>I'm trying to display a picture but I'm not sure why I can't.</div><div>(Commands in <font color="#000066">blue</font>, outputs in <font color="#006600">green</font>)</div><div>&nbsp;</div><div>Any ideas?</div>
<div>&nbsp;</div><div>&nbsp;</div><div><font color="#000066"><strong>inputImage = sitk.ReadImage( 'lena_color.bmp' )</strong></font></div><div><strong><font color="#000066">inputImage<br></font><font color="#006600">Out[89]: &lt;SimpleITK.Image; proxy of &lt;Swig Object of type 'std::vector&lt; itk::simple::Image &gt;::value_type *' at 0x0000000019BE6C60&gt; &gt;</font></strong></div>
<div><font color="#000066"><strong>sitk.Show( inputImage )<br></strong></font><font color="#006600"><strong>---------------------------------------------------------------------------<br>RuntimeError&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Traceback (most recent call last)<br>
C:\Users\Student3\Desktop\MRI images\&lt;ipython-input-90-868b377c2eaa&gt; in &lt;module&gt;()<br>----&gt; 1 sitk.Show( inputImage )</strong></font></div><div><font color="#006600"><strong>C:\Python27\lib\site-packages\simpleitk-0.4.0-py2.7-win-amd64.egg\SimpleITK.pyc in Show(*args, **kwargs)<br>
&nbsp;&nbsp; 3155 def Show(*args, **kwargs):<br>&nbsp;&nbsp; 3156&nbsp;&nbsp; """Show(Image image, string title = "")"""<br>-&gt; 3157&nbsp;&nbsp; return _SimpleITK.Show(*args, **kwargs)<br>&nbsp;&nbsp; 3158 class ImageFilter(_object):<br>
&nbsp;&nbsp; 3159&nbsp;&nbsp;&nbsp;&nbsp; """Proxy of C++ itk::simple::ImageFilter class"""</strong></font></div><div><font color="#006600"><strong>RuntimeError: Exception thrown in SimpleITK Show: C:\Users\Bradley Lowekamp\Documents\Source\SimpleITK\Code\IO\src\sitkShow.cxx:54:<br>
sitk::ERROR: Can not find location of</strong></font> </div><div>&nbsp;</div><div>&nbsp;</div><div><br><br>&nbsp;</div><div class="gmail_quote">On Tue, May 8, 2012 at 11:16 AM, Ing. Arturo Vargas Olivares <span dir="ltr">&lt;<a href="mailto:ing.arturo.vargas@gmail.com" target="_blank">ing.arturo.vargas@gmail.com</a>&gt;</span> wrote:<br>
<blockquote style="margin:0px 0px 0px 0.8ex;padding-left:1ex;border-left-color:rgb(204,204,204);border-left-width:1px;border-left-style:solid" class="gmail_quote"><div>Hi Bradley</div><div>&nbsp;</div><div>Have you ever tried to test the 'SimpleGaussian.py' example? how can I test it?</div>
<div>&nbsp;</div><div>I'm interested in test this example, I think it has sitk methods that can help me to understand the tool. I'm new in ITK and I'm trying with SimpleITK first.</div>
<div>&nbsp;</div><div><br><br>&nbsp;</div><div class="gmail_quote"><div class="im">On Mon, May 7, 2012 at 10:24 PM, Bradley Lowekamp <span dir="ltr">&lt;<a href="mailto:brad@lowekamp.net" target="_blank">brad@lowekamp.net</a>&gt;</span> wrote:<br>

</div><div><div class="h5"><blockquote style="margin:0px 0px 0px 0.8ex;padding-left:1ex;border-left-color:rgb(204,204,204);border-left-width:1px;border-left-style:solid" class="gmail_quote">Hello,<br>
<br>
I am not sure that ITK can directly read all .mat images. There is the HDF5 image IO that may work for a subset, but I have never tried this combination my self.<br>
<br>
If you are using SimpleITK with Python, you may look for mat image reader in another python package such as scipy. They should be able to export the image to a numpy array, then this can be imported into SimpleITK with the sitk.CreateimageFromArray() method.<br>


<br>
By default SimpleITK uses ImageJ to display images from the sitk.Show method. More information about getting this setup can be found here:<br>
<br>
<a href="http://www.itk.org/Wiki/ITK_Release_4/SimpleITK/GettingStarted#Recommended_Software" target="_blank">http://www.itk.org/Wiki/ITK_Release_4/SimpleITK/GettingStarted#Recommended_Software</a><br>
<br>
Brad<br>
<div><div><br>
On May 7, 2012, at 8:56 AM, Ing. Arturo Vargas Olivares wrote:<br>
<br>
&gt; Hello friends.<br>
&gt; I need your help.<br>
&gt; I'm new in the world of SimpleITK and I'm starting a PhD research and I need to know more about image segmentation tools. By the mean time I'd like to know how to open or display images using SimpleITK. The images are in the .mat format (MATLAB) and I also have python and installed in my PC.<br>


&gt; Any help will be very appreciated.<br>
&gt; BR<br>
&gt; Arturo V.<br>
</div></div>&gt; _____________________________________<br>
&gt; Powered by <a href="http://www.kitware.com/" target="_blank">www.kitware.com</a><br>
&gt;<br>
&gt; Visit other Kitware open-source projects at<br>
&gt; <a href="http://www.kitware.com/opensource/opensource.html" target="_blank">http://www.kitware.com/opensource/opensource.html</a><br>
&gt;<br>
&gt; Kitware offers ITK Training Courses, for more information visit:<br>
&gt; <a href="http://www.kitware.com/products/protraining.php" target="_blank">http://www.kitware.com/products/protraining.php</a><br>
&gt;<br>
&gt; Please keep messages on-topic and check the ITK FAQ at:<br>
&gt; <a href="http://www.itk.org/Wiki/ITK_FAQ" target="_blank">http://www.itk.org/Wiki/ITK_FAQ</a><br>
&gt;<br>
&gt; Follow this link to subscribe/unsubscribe:<br>
&gt; <a href="http://www.itk.org/mailman/listinfo/insight-users" target="_blank">http://www.itk.org/mailman/listinfo/insight-users</a><br>
<br>
</blockquote></div></div></div><br>
</blockquote></div><br>
_____________________________________<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>http://www.kitware.com/products/protraining.php<br><br>Please keep messages on-topic and check the ITK FAQ at:<br>http://www.itk.org/Wiki/ITK_FAQ<br><br>Follow this link to subscribe/unsubscribe:<br>http://www.itk.org/mailman/listinfo/insight-users<br></blockquote></div><br></div><br><br><div>
<span class="Apple-style-span" style="border-collapse: separate; color: rgb(0, 0, 0); font-family: Helvetica; font-style: normal; font-variant: normal; font-weight: 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; font-size: medium; "><span class="Apple-style-span" style="border-collapse: separate; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; -webkit-text-decorations-in-effect: none; text-indent: 0px; -webkit-text-size-adjust: auto; text-transform: none; orphans: 2; white-space: normal; widows: 2; word-spacing: 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; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; -webkit-text-decorations-in-effect: none; text-indent: 0px; -webkit-text-size-adjust: auto; text-transform: none; orphans: 2; white-space: normal; widows: 2; word-spacing: 0px; "><p style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><font face="Helvetica" size="3" style="font: normal normal normal 12px/normal Helvetica; ">========================================================</font></p><p style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><font face="Helvetica" size="3" style="font: normal normal normal 12px/normal Helvetica; ">Bradley Lowekamp<span class="Apple-converted-space">&nbsp;</span><span class="Apple-converted-space">&nbsp;</span></font></p><p style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><font face="Helvetica" size="3" style="font: normal normal normal 12px/normal Helvetica; ">Medical Science and Computing for</font></p><p style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><font face="Helvetica" size="3" style="font: normal normal normal 12px/normal Helvetica; ">Office of High Performance Computing and Communications</font></p><p style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><font face="Helvetica" size="3" style="font: normal normal normal 12px/normal Helvetica; ">National Library of Medicine<span class="Apple-converted-space">&nbsp;</span></font></p><p style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><font face="Helvetica" size="3" style="font: normal normal normal 12px/normal Helvetica; "><a href="mailto:blowekamp@mail.nih.gov">blowekamp@mail.nih.gov</a></font></p><br class="Apple-interchange-newline"></span></div></span></span><br class="Apple-interchange-newline">
</div>
<br></body></html>