Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我想知道我们如何在 MATLAB 中保存已分割的图像(使用模糊 c-means 方法),其中最终产品是每个集群组的图像。我想保存图像以供以后使用。
我假设您只想保存图像,这应该与您如何生成图像无关。
如果我理解正确,您只需要使用该功能
imwrite(M, filename)
其中 M 是包含图像数据的矩阵。您只需要为您拥有的每个矩阵/图像执行此操作。
然后您可以使用 imread 从文件名重新加载图像。
imread(filename)
请注意,如果您想指定 imwrite 的格式而不是通过文件扩展名获取它,您只需添加一个附加参数,如下所示:
imwrite(M, filename, format)