def run_kmeans(img):
"""Run kmeans and plot result."""
features, shape = get_features(img)
classified = kmeans_classify(features, shape)
indices, num_objs = label(classified, shape)
plot_classes(indices, num_objs)
globpos = find_point_objects(img.lat, img.lon, indices, num_objs)
return globpos
评论列表
文章目录