Main Content

read

(不建议)读取数据Bigimimagedatastore

read功能Bigimimagedatastore不建议对象。使用read封锁的绘制object instead. For more information, seeCompatibility Considerations

描述

data=读(returns a batch of data from a big image datastore,。随后致电readfunction continue reading from the endpoint of the previous call.

例子

[[data,,,,信息] =读(还返回有关提取数据的信息,包括元数据,信息

例子

全部收缩

创建一个大型象征使用修改后的版本的图像“tumor_091.tif”from the CAMELYON16 data set. The original image is a training image of a lymph node containing tumor tissue. The original image has eight resolution levels, and the finest level has resolution 53760-by-61440. The modified image has only three coarse resolution levels. The spatial referencing of the modified image has been adjusted to enforce a consistent aspect ratio and to register features at each level.

bim = bigimage('tumor_091r.tif');

创建一个Bigimimagedatastore这可以在最佳的分辨率级别管理大图。

bimds = bigimageDatastore(bim,1)
bimds = bigimageDatastore with properties: ReadSize: 1 BorderSize: [0 0] PadMethod: 0 Images: [1x1 bigimage] Levels: 1 BlockSize: [1024 1024] BlockOffsets: [1024 1024] IncompleteBlocks: 'same' BlockLocationSet: [1x1 blockLocationSet]

Change the“读取尺寸”数据存储的属性3

bimds.ReadSize = 3;

从数据存储器中读取一批图像数据。

[数据,信息] =读(bimds);

将返回的图像数据显示在每个图像周围的黑色边框的蒙太奇中。蒙太奇表明,数据存储在行订单中读取大图的块。

montage(data,'尺寸',,,,[[1 3],“边界”,10)

图包含一个轴对象。轴对象包含类型图像的对象。

显示有关返回数据的信息。

信息
信息=带有字段的结构:等级: [1 1 1] ImageNumber: [1 1 1] BlockStartWorld: [3x2 double] BlockEndWorld: [3x2 double] DataStartWorld: [3x2 double] DataEndWorld: [3x2 double]

检查每个返回的数据块的左上像素的中心的(x,y)坐标。

info.blockstartworld
ans =3×21 1 1025 1 2049 1

输入参数

全部收缩

大图像数据存储,,,,specified as aBigimimagedatastoreobject.

  • 数据存储包含一个或多个大图像,图片,每个都与频道频道数量。

  • 数据存储在指定的分辨率级别上从每个大图像中读取块,水平

  • 数据存储指定在每个批次中读取的块数,读取尺寸

  • 这datastore specifies them-by-n要阅读的块的像素大小,BlockSize

输出参数

全部收缩

输出数据,作为单元格返回读取尺寸元素。每个单元包含一个m-by-n-by-频道数字阵列。

有关输出数据的信息,以包含这些字段的结构返回。

Field Name 描述
等级 数据的分辨率级别,指定为1乘读取尺寸vector of positive integers.
成像仪 提供数据的大图的索引,该数据指定为1乘读取尺寸vector of positive integers.
Blockstartworld ((X,,,,y)数据的上左上像素的中心的坐标,不包括填充,指定为一个读取尺寸-by-2数字向量。价值是在世界配音中。
BlockendWorld ((X,,,,y)coordinates of the center of the bottom-right pixel of the data, excluding padding, specified as a读取尺寸-by-2数字向量。价值是在世界配音中。
DataStartWorld ((X,,,,y)coordinates of the center of the top-left pixel of the data, including padding, specified as a读取尺寸-by-2数字向量。价值是在世界配音中。
DataEndWorld ((X,,,,y)数据的右上像素中心的坐标,包括填充,指定为一个读取尺寸-by-2数字向量。价值是在世界配音中。

版本历史记录

在R2019b中引入

展开全部

不建议从R2021A开始