![](https://img-blog.csdnimg.cn/20201014180756724.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
kmeans
qq_27481087
这个作者很懒,什么都没留下…
展开
-
图像分割谱聚类算法
import numpy as npfrom sklearn import clusterfrom skimage.io import imreadfrom skimage.color import rgb2grayfrom scipy.misc import imresizeimport matplotlib.pyplot as pltim = imresize(imread('./9781789343731_Code/images/banana.png'), (100, 100, 3))原创 2021-08-25 15:19:07 · 669 阅读 · 0 评论 -
基于图像分割与颜色量化的K均值聚类
import numpy as npimport matplotlib.pylab as pltfrom sklearn.cluster import KMeansfrom sklearn.metrics import pairwise_distances_argminfrom skimage.io import imreadfrom sklearn.utils import shufflefrom skimage import img_as_floatfrom time import tim原创 2021-08-25 14:50:27 · 196 阅读 · 0 评论