Dear all,<br><br>I'm using k-means algorithm and using <i>ScalarImageKmeansImageFilter</i> I've realized that it was so slow to compute the threshold for 2 regions. On the other hand, it provides me a really good precision (and I don't need that precision). I've implemented an iterator which calculated the best thresholds using the kmeans theory and it was faster. <br>
<br>Can anyone tell me how can I change the number of iterations of the algorithm? I've been reading the web description of the filter (<a href="http://www.itk.org/Doxygen/html/classitk_1_1ScalarImageKmeansImageFilter.html">http://www.itk.org/Doxygen/html/classitk_1_1ScalarImageKmeansImageFilter.html</a>) but I can not find it.<br>
<br>Thanks,<br><br>Fran Serrano<br><br>