<div>Hi Bradley</div><div> </div><div>OK, I'll try the points you're telling me. </div><div>I'll come back with my comments.</div><div> </div><div> </div><div>Arturo V.</div><div> </div><div><br><br> </div><div class="gmail_quote">
On Wed, May 9, 2012 at 8:43 AM, Bradley Lowekamp <span dir="ltr"><<a href="mailto:blowekamp@mail.nih.gov" target="_blank">blowekamp@mail.nih.gov</a>></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 style="word-wrap:break-word">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" target="_blank">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><div class="h5"><div><br></div><div><div><div>On May 8, 2012, at 2:23 PM, Ing. Arturo Vargas Olivares wrote:</div><br><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> </div><div>Any ideas?</div>
<div> </div><div> </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]: <SimpleITK.Image; proxy of <Swig Object of type 'std::vector< itk::simple::Image >::value_type *' at 0x0000000019BE6C60> ></font></strong></div>
<div><font color="#000066"><strong>sitk.Show( inputImage )<br></strong></font><font color="#006600"><strong>---------------------------------------------------------------------------<br>RuntimeError Traceback (most recent call last)<br>
C:\Users\Student3\Desktop\MRI images\<ipython-input-90-868b377c2eaa> in <module>()<br>----> 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>
3155 def Show(*args, **kwargs):<br> 3156 """Show(Image image, string title = "")"""<br>-> 3157 return _SimpleITK.Show(*args, **kwargs)<br> 3158 class ImageFilter(_object):<br>
3159 """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> </div><div> </div><div><br><br> </div><div class="gmail_quote">On Tue, May 8, 2012 at 11:16 AM, Ing. Arturo Vargas Olivares <span dir="ltr"><<a href="mailto:ing.arturo.vargas@gmail.com" target="_blank">ing.arturo.vargas@gmail.com</a>></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> </div><div>Have you ever tried to test the 'SimpleGaussian.py' example? how can I test it?</div>
<div> </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> </div><div><br><br> </div><div class="gmail_quote"><div>On Mon, May 7, 2012 at 10:24 PM, Bradley Lowekamp <span dir="ltr"><<a href="mailto:brad@lowekamp.net" target="_blank">brad@lowekamp.net</a>></span> wrote:<br>
</div><div><div><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>
> Hello friends.<br>
> I need your help.<br>
> 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>
> Any help will be very appreciated.<br>
> BR<br>
> Arturo V.<br>
</div></div>> _____________________________________<br>
> Powered by <a href="http://www.kitware.com/" target="_blank">www.kitware.com</a><br>
><br>
> Visit other Kitware open-source projects at<br>
> <a 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 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 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 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" target="_blank">www.kitware.com</a><br><br>Visit other Kitware open-source projects at<br><a 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 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 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 href="http://www.itk.org/mailman/listinfo/insight-users" target="_blank">http://www.itk.org/mailman/listinfo/insight-users</a><br>
</blockquote></div><br></div><br><br></div></div><div>
<span style="text-transform:none;text-indent:0px;letter-spacing:normal;word-spacing:0px;white-space:normal;border-collapse:separate"><span style="font:12px/normal Helvetica;text-transform:none;text-indent:0px;letter-spacing:normal;word-spacing:0px;white-space:normal;border-collapse:separate;font-size-adjust:none;font-stretch:normal"><div style="word-wrap:break-word">
<span style="font:12px/normal Helvetica;text-transform:none;text-indent:0px;letter-spacing:normal;word-spacing:0px;white-space:normal;border-collapse:separate;font-size-adjust:none;font-stretch:normal"><p style="margin:0px">
<font style="font:12px/normal Helvetica;font-size-adjust:none;font-stretch:normal" size="3" face="Helvetica">========================================================</font></p><p style="margin:0px"><font style="font:12px/normal Helvetica;font-size-adjust:none;font-stretch:normal" size="3" face="Helvetica">Bradley Lowekamp<span> </span><span> </span></font></p>
<p style="margin:0px"><font style="font:12px/normal Helvetica;font-size-adjust:none;font-stretch:normal" size="3" face="Helvetica">Medical Science and Computing for</font></p><p style="margin:0px"><font style="font:12px/normal Helvetica;font-size-adjust:none;font-stretch:normal" size="3" face="Helvetica">Office of High Performance Computing and Communications</font></p>
<p style="margin:0px"><font style="font:12px/normal Helvetica;font-size-adjust:none;font-stretch:normal" size="3" face="Helvetica">National Library of Medicine<span> </span></font></p><p style="margin:0px"><font style="font:12px/normal Helvetica;font-size-adjust:none;font-stretch:normal" size="3" face="Helvetica"><a href="mailto:blowekamp@mail.nih.gov" target="_blank">blowekamp@mail.nih.gov</a></font></p>
<br></span></div></span></span><br>
</div>
<br></div></blockquote></div><br>