RandompatchExtractionDatastore
用于从图像或像素标签图像中提取随机2-D或3-D随机补丁的数据存储
描述
ARandompatchExtractionDatastore
提取物来自两个基于图像的数据存储的相应随机贴合贴片。例如,输入数据存储可以是两个图像数据存储,其中包含网络输入和所需的网络响应,以训练图像到图像回归网络,或地面真相图像和用于培训语义分割网络的像素标签数据。
This object requires that you have Deep Learning Toolbox™.
Note
当您使用RandompatchExtractionDatastore
作为训练数据的来源,数据存储在每个时期从每个图像中提取多个随机补丁,因此每个时期都使用略有不同的数据集。每个时期的训练补丁的实际数量是训练图像的数量乘以PatchesPerImage
。这image patches are not stored in memory.
创建
Syntax
描述
补丁= randomPatchExtractionDatastore(
uses name-value pairs to set theds1
,ds2
,PatchSize
,Name,Value
)PatchesPerImage
,数据调整
, 和dispatchinbackground
properties. You can specify multiple name-value pairs. Enclose each property name in quotes.
例如,RandompatchExtractionDatastore(IMDS1,IMDS2,50,“ PatchEsperimage”,40)
创建一个数据存储,该数据存储从图像数据存储中的每个图像中随机生成40个大小50乘50像素的补丁imds1
和imds2
。
Input Arguments
特性
Object Functions
结合 |
Combine data from multiple datastores |
hasdata |
Determine if data is available to read |
数字 |
数据存储分区的数量 |
分割 |
分区数据存储 |
分割ByIndex |
分割RandompatchExtractionDatastore according to indices |
预习 |
Preview subset of data in datastore |
读 |
从中读取数据RandompatchExtractionDatastore |
读all |
在数据存储中读取所有数据 |
ReadByIndex |
Read data specified by index fromRandompatchExtractionDatastore |
重置 |
将数据存储重置为初始状态 |
shuffle |
Shuffle data in datastore |
转换 |
Transform datastore |
可以分配 |
确定数据存储是否可以分区 |
isShuffleable |
Determine whether datastore is shuffleable |
例子
提示
这
RandompatchExtractionDatastore
expects that the output from the读
在输入数据存储上的操作返回相同大小的数组。If the input datastore is an
ImageDatastore
, then the values in its标签
property are ignored by theRandompatchExtractionDatastore
。可视化2-D数据
RandompatchExtractionDatastore
,您可以使用预习
函数,返回表中的数据子集。通过使用montage
功能。例如,此代码显示图像补丁的预览RandompatchExtractionDatastore
called补丁
。minibatch = preview(patchds); montage(minibatch.InputImage)
Version History
See Also
增生模构达塔斯塔尔
(深度学习工具箱)|Pixellabeldatastore
(计算机视觉工具箱)|成像
|pixelLabelImageDatastore
(计算机视觉工具箱)|trainNetwork
(深度学习工具箱)|imageDataAugmenter
(深度学习工具箱)|变换的达塔斯托尔
Topics
- Increase Image Resolution Using Deep Learning
- JPEG Image Deblocking Using Deep Learning
- Image Processing Operator Approximation Using Deep Learning
- Semantic Segmentation of Multispectral Images Using Deep Learning
- Datastores for Deep Learning(深度学习工具箱)
- Preprocess Images for Deep Learning(深度学习工具箱)
- Deep Learning in MATLAB(深度学习工具箱)