45. 演習3
45
K-meansで画像圧縮
“bird.mat” のデータを読み込んで
データをノーマライズ
Reshape the array
Sklearn.clusterからKmeansをインポート, run Kmean with
16 clusters
Use kmeans.cluster_centers_ and kmeans_labels to
map each pixel to the centroid value.
Reshape the result and plot