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.
我需要知道分割图像在使用mat-lab进行图像分割时包含多少个切片而且我想知道单个切片的大小
如果没有有关您正在使用的图像的更多详细信息,很难知道如何回答。如果您有图像处理工具箱,则可以使用以下命令加载图像:
IM = imread('your_image.tif');
加载图像后,您可以简单地通过以下方式计算大小:
size(IM)
例如,如果您加载 512x512 像素的 RGB 图像,则 size() 输出将为 (512, 512, 3),表示您有 3 个平面,每个平面为 512 像素 x 512 像素。