[Insight-users] KdTreeBasedKMeansClustering for 3D vector image

David Doria daviddoria at gmail.com
Mon Dec 6 22:13:23 EST 2010


On Mon, Dec 6, 2010 at 7:00 PM, Sara Rolfe <smrolfe at u.washington.edu> wrote:
> I have cleared up some problems in adapting the
> example Examples/Statistics/KdTreeBasedKMeansClustering.cxx for a 3D vector
> image.  However, I'm still running into a problem when I try to set the
> classifier membership function.  I'm getting the following error:
> error: no matching function for call to

It seems like you are still using an old version of ITK.
itkEuclideanDistance has been replaced by itkEuclideanDistanceMetric:

http://www.itk.org/Doxygen/html/classitk_1_1Statistics_1_1EuclideanDistanceMetric.html

It's up to you if you want to proceed with the old version/methods,
but just keep in mind that future additions to ITK will use the new
methods, so you won't be able to adapt.

I mention all of this because I can't compile your code to try to help
because it relies on these files that I no longer have :) Let us know
if you want to upgrade and try again, or if you want someone with an
old version to try to help with your current code.

David


More information about the Insight-users mailing list