<div dir="ltr">It&#39;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">&lt;<a href="mailto:Jared.Becksfort@stjude.org" target="_blank">Jared.Becksfort@stjude.org</a>&gt;</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>
&gt; Matt,<br>
&gt;<br>
&gt; Wow, you&#39;d think I might have googled &quot;convert itk to opencv&quot; 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>

&gt;<br>
&gt; Thanks for the help.  I&#39;ll see what I can do with it.<br>
&gt;<br>
&gt; Jared<br>
&gt;<br>
&gt; -----Original Message-----<br>
&gt; From: Matt McCormick [mailto:<a href="mailto:matt.mccormick@kitware.com">matt.mccormick@kitware.com</a>]<br>
&gt; Sent: Thursday, October 17, 2013 5:22 PM<br>
&gt; To: Becksfort, Jared<br>
&gt; Cc: Insight Users<br>
&gt; Subject: Re: [Insight-users] ITK, Random Forests, and OpenCV<br>
&gt;<br>
&gt; Hi Jared,<br>
&gt;<br>
&gt; There is a bridge [1] to/from ITK and OpenCV.<br>
&gt;<br>
&gt; I understand your frustration of articles without code!  If you get something going, please consider submitting it to the Insight Journal [2].<br>
&gt;<br>
&gt; Thanks,<br>
&gt; Matt<br>
&gt;<br>
&gt; [1]<br>
&gt; <a href="http://itk.org/ITKExamples/src/Video/BridgeOpenCV/ConvertAnITKGrayScal" target="_blank">http://itk.org/ITKExamples/src/Video/BridgeOpenCV/ConvertAnITKGrayScal</a><br>
&gt; eImageToCVMat/Documentation.html?highlight=opencv<br>
&gt; [2] <a href="http://insight-journal.org/" target="_blank">http://insight-journal.org/</a><br>
&gt;<br>
&gt; On Thu, Oct 17, 2013 at 9:19 PM, Becksfort, Jared &lt;<a href="mailto:Jared.Becksfort@stjude.org">Jared.Becksfort@stjude.org</a>&gt; wrote:<br>
&gt;&gt; Hello,<br>
&gt;&gt;<br>
&gt;&gt; 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&#39;t seem like there is a random forest package in ITK.  Am I wrong?<br>

&gt;&gt;<br>
&gt;&gt; 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&#39;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>

&gt;&gt;<br>
&gt;&gt; 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>
&gt;&gt;<br>
&gt;&gt; Thanks,<br>
&gt;&gt; Jared<br>
&gt;&gt;<br>
&gt;&gt; Email Disclaimer:  <a href="http://www.stjude.org/emaildisclaimer" target="_blank">www.stjude.org/emaildisclaimer</a> Consultation<br>
&gt;&gt; Disclaimer:  <a href="http://www.stjude.org/consultationdisclaimer" target="_blank">www.stjude.org/consultationdisclaimer</a><br>
&gt;&gt; _____________________________________<br>
&gt;&gt; Powered by <a href="http://www.kitware.com" target="_blank">www.kitware.com</a><br>
&gt;&gt;<br>
&gt;&gt; Visit other Kitware open-source projects at<br>
&gt;&gt; <a href="http://www.kitware.com/opensource/opensource.html" target="_blank">http://www.kitware.com/opensource/opensource.html</a><br>
&gt;&gt;<br>
&gt;&gt; Kitware offers ITK Training Courses, for more information visit:<br>
&gt;&gt; <a href="http://www.kitware.com/products/protraining.php" target="_blank">http://www.kitware.com/products/protraining.php</a><br>
&gt;&gt;<br>
&gt;&gt; Please keep messages on-topic and check the ITK FAQ at:<br>
&gt;&gt; <a href="http://www.itk.org/Wiki/ITK_FAQ" target="_blank">http://www.itk.org/Wiki/ITK_FAQ</a><br>
&gt;&gt;<br>
&gt;&gt; Follow this link to subscribe/unsubscribe:<br>
&gt;&gt; <a href="http://www.itk.org/mailman/listinfo/insight-users" target="_blank">http://www.itk.org/mailman/listinfo/insight-users</a><br>
&gt;<br>
&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>
&gt;<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 &amp; 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>