我正在^{cd2>}(python)中使用^{cd1>}。 在^{cd1>}上安装了图像。然后,它将被聚集。 (例如分量=3,所以某些区域为0,而另一个区域1,2)树面积为0,天空面积为1。但是,我再次执行,树区域是1。我不明白为什么会改变?有没有方法来修复集群??
这里有一些密码。
gmm = GaussianMixture(n_components=3, covariance_type="tied")
gmm = gmm.fit(img)
cluster = gmm.predict(img)
cluster = cluster.reshape(old_shape[0], old_shape[1])
imshow(cluster)
data = np.array(cluster)
目前没有回答
相关问题 更多 >
编程相关推荐