<div dir="ltr">It's great to see more activities that engage both the computer vision and medical image analysis fronts.<div>The Video bridge modules in ITK were made to facilitate those activities.</div><div>Looking forward to see some exciting contributions in deloying random forest ideas to medical images!</div>
</div><div class="gmail_extra"><br><br><div class="gmail_quote">On Fri, Oct 18, 2013 at 10:49 AM, Becksfort, Jared <span dir="ltr"><<a href="mailto:Jared.Becksfort@stjude.org" target="_blank">Jared.Becksfort@stjude.org</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Julien,<br>
<br>
Excellent. Thank you.<br>
<span class="HOEnZb"><font color="#888888"><br>
Jared<br>
</font></span><div class="HOEnZb"><div class="h5"><br>
-----Original Message-----<br>
From: Julien Malik [mailto:<a href="mailto:julien.malik@c-s.fr">julien.malik@c-s.fr</a>]<br>
Sent: Friday, October 18, 2013 3:33 AM<br>
To: Becksfort, Jared; Matt McCormick<br>
Cc: Insight Users<br>
Subject: Re: [Insight-users] ITK, Random Forests, and OpenCV<br>
<br>
Hi Jared,<br>
<br>
You may look into what we have in Orfeo Toolbox, where we have wrapped the OpenCV machine learning framework in an ITK-compatible way [1].<br>
<br>
There is :<br>
- generic ListSample/CvMat conversion<br>
- MachineLearningModel abstract class with derivated classes for each machine learning model algorithm, which can be trained from ListSample, and results can be saved to file and loaded. Once trained or loaded from file, it predicts classes from input sample.<br>
- an I/O mechanism inspired from the ImageIO framework, capable of loading an arbitrary machine learning model file and returning a MachineLearningModel object.<br>
- a generic classification filter working on an abstract MachineLearningModel and classifying VectorImage.<br>
<br>
Hope this helps,<br>
Julien<br>
<br>
[1]<br>
<a href="http://www.orfeo-toolbox.org/SoftwareGuide/SoftwareGuidech19.html#x45-29300019.3.3" target="_blank">http://www.orfeo-toolbox.org/SoftwareGuide/SoftwareGuidech19.html#x45-29300019.3.3</a><br>
<br>
<br>
On 10/18/2013 12:42 AM, Becksfort, Jared wrote:<br>
> Matt,<br>
><br>
> Wow, you'd think I might have googled "convert itk to opencv" at least once in the several hours I looked into this. The bridge is on the first page of the results. I guess I spent all my time looking at comparisons between ITK and OpenCV rather than conversions.<br>
><br>
> Thanks for the help. I'll see what I can do with it.<br>
><br>
> Jared<br>
><br>
> -----Original Message-----<br>
> From: Matt McCormick [mailto:<a href="mailto:matt.mccormick@kitware.com">matt.mccormick@kitware.com</a>]<br>
> Sent: Thursday, October 17, 2013 5:22 PM<br>
> To: Becksfort, Jared<br>
> Cc: Insight Users<br>
> Subject: Re: [Insight-users] ITK, Random Forests, and OpenCV<br>
><br>
> Hi Jared,<br>
><br>
> There is a bridge [1] to/from ITK and OpenCV.<br>
><br>
> I understand your frustration of articles without code! If you get something going, please consider submitting it to the Insight Journal [2].<br>
><br>
> Thanks,<br>
> Matt<br>
><br>
> [1]<br>
> <a href="http://itk.org/ITKExamples/src/Video/BridgeOpenCV/ConvertAnITKGrayScal" target="_blank">http://itk.org/ITKExamples/src/Video/BridgeOpenCV/ConvertAnITKGrayScal</a><br>
> eImageToCVMat/Documentation.html?highlight=opencv<br>
> [2] <a href="http://insight-journal.org/" target="_blank">http://insight-journal.org/</a><br>
><br>
> On Thu, Oct 17, 2013 at 9:19 PM, Becksfort, Jared <<a href="mailto:Jared.Becksfort@stjude.org">Jared.Becksfort@stjude.org</a>> wrote:<br>
>> Hello,<br>
>><br>
>> I am trying to use random forests on medical images. I am converting a Java Weka program I wrote to C++. I want to use ITK for its medical imaging tools and file format support, but it doesn't seem like there is a random forest package in ITK. Am I wrong?<br>
>><br>
>> If there is not a random forest package, I had planned to use the machine learning component of OpenCV, but it does not support the file types I have to support, such as nii, dicom, and mhd/mha and isn't really designed for medical imaging. It also seems like I am making it much more difficult than I need to. I have seen papers published that used ITK with random forests, but the code is not available.<br>
>><br>
>> Does anyone have any suggestions for using a random forest package with or within ITK? Or using OpenCV for medical images (yes, I know I should ask that on the OpenCV mailing list)?<br>
>><br>
>> Thanks,<br>
>> Jared<br>
>><br>
>> Email Disclaimer: <a href="http://www.stjude.org/emaildisclaimer" target="_blank">www.stjude.org/emaildisclaimer</a> Consultation<br>
>> Disclaimer: <a href="http://www.stjude.org/consultationdisclaimer" target="_blank">www.stjude.org/consultationdisclaimer</a><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>
><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>
><br>
<br>
<br>
<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>
_______________________________________________<br>
Community mailing list<br>
<a href="mailto:Community@itk.org">Community@itk.org</a><br>
<a href="http://public.kitware.com/cgi-bin/mailman/listinfo/community" target="_blank">http://public.kitware.com/cgi-bin/mailman/listinfo/community</a><br>
</div></div></blockquote></div><br><br clear="all"><div><br></div>-- <br><div><br></div><div><br></div>---------------------------------------------<br><b>Xiaoxiao Liu</b>, Ph.D.<div><div><div><font face="arial, sans-serif"><span style="border-collapse:collapse">R & D Engineer</span></font></div>
<div><div><a href="http://www.kitware.com/" target="_blank">Kitware Inc</a>.</div></div><div><span style="border-collapse:collapse;font-family:arial,sans-serif;font-size:13px">Clifton Park, NY</span><div><div>Phone: (518) 881-4924 or <span style="border-collapse:collapse;color:rgb(136,136,136);font-family:arial,sans-serif;font-size:13px">(518) 371-3971 x124</span></div>
<div><font face="Verdana, Arial, Helvetica, sans-serif"><span style="line-height:31px;font-size:x-small"><br></span></font></div></div></div></div></div>
</div>