The MagickKmeansImage function appears to have been added in ImageMagick 7.0.10-36. if you try to build against an earlier version, you'll get a compilation error about the bindings not having such a function.