I want to derive NDVI based threshold to classify image segments, for which it requires K-Means clustering of those image objects. Which software would be preferable to do K-Means Clustering of the image objects? The feature value of image objects would be NDVI.