<br><br><div class="gmail_quote">---------- Forwarded message ----------<br>From: <b class="gmail_sendername">Ing. Arturo Vargas Olivares</b> <span dir="ltr"><<a href="mailto:ing.arturo.vargas@gmail.com">ing.arturo.vargas@gmail.com</a>></span><br>
Date: Tue, May 8, 2012 at 9:12 AM<br>Subject: Re: [Insight-users] Displaying .mat files<br>To: Bradley Lowekamp <<a href="mailto:brad@lowekamp.net">brad@lowekamp.net</a>><br><br><br><div>Hello Bradley.</div><div> </div>
<div>Many thanks for the information!!</div><div>It seems that I have found an alternative based in numpy arrays but I would need to test it before.</div><div> </div><div>Later I'll post my solution with details.</div>
<div> </div><div> </div><div>Arturo V.</div><div class="HOEnZb"><div class="h5"><div><br><br> </div><div class="gmail_quote">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>
<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><br>
</div></div></div><br>