Hi Anu,<br><br>You can consider downsampling your data (choose 5% of the points randomly) and then initialize the k-means procedure on the full dataset with the new means estimated from sampling.<br><br>I think this can speed up your processing to under 15s.<br>
<br>Also, I hope you are using the Kd-treee based k-means procedure.<br><br>Kishore<br><br><br><br><div class="gmail_quote">On Sun, Mar 7, 2010 at 2:59 PM, Anu <span dir="ltr"><<a href="mailto:anuradha.tcs@gmail.com">anuradha.tcs@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><div>yes, I have built the project in release mode and it takes around 1-2 mins for a 256*256*300 data.</div>
<div>But i need this to be more efficient.<br><br></div><div><div></div><div class="h5">
<div class="gmail_quote">On Sun, Mar 7, 2010 at 5:51 AM, Luis Ibanez <span dir="ltr"><<a href="mailto:luis.ibanez@kitware.com" target="_blank">luis.ibanez@kitware.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0px 0px 0px 0.8ex; padding-left: 1ex;">Hi Anu,<br><br>I'm not aware of a multi-threaded version of this filter.<br><br><br>1) What computation time are you observing ?<br>
<br><br>2) Are you compiling your project in "Release" mode ?<br> The compilation mode "Debug" versus "Release"<br> can easily make a 10x difference in computation time<br> for some ITK filters.<br>
<br><br><br> Regards,<br><br><br> Luis<br><br><br>-------------------------------------------------------<br>
<div>
<div></div>
<div>On Fri, Mar 5, 2010 at 4:57 AM, Anu <<a href="mailto:anuradha.tcs@gmail.com" target="_blank">anuradha.tcs@gmail.com</a>> wrote:<br>> Hi,<br>><br>> Am trying to apply segmentation using k-Means clustering for CT images. I<br>
> have used itkScalarImageKmeansImageFilter for a 3D dataset (512 * 512 * 400)<br>> of CT volume. It works fine but the processing speed is very slow on my<br>> intel dual core 2G RAM. Is there a multithreaded version already avaible in<br>
> the library or any other faster algorithm option available?<br>> Thanks<br>> Anu.<br>><br>><br>><br></div></div>
<div>
<div></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.html" target="_blank">http://www.kitware.com/products/protraining.html</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></div></div></blockquote></div><br><br clear="all"><br></div></div>
-- <br>Cheers !!<br><font color="#888888">
Anu..<br>
</font><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.html" target="_blank">http://www.kitware.com/products/protraining.html</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>