blockLocationSet
List of block locations in large images
Description
A blockLocationSet
object provides locations of blocks used for
class balancing in semantic segmentation and object detection training workflows. It is used
by blockedImageDatastore
and boxLabelDatastore
objects to
specify block locations to read data.
Creation
You can create a blockLocationSet
object in these ways.
selectBlockLocations
— Select blocks from an entire blocked image or within the masked region of a blocked image. Optionally specify the overlap and spacing between blocks.balancePixelLabels
(Computer Vision Toolbox) — Select blocks from labeled blocked images with pixel label data (requires Computer Vision Toolbox™). Use this function to perform class balancing in semantic segmentation workflows.balanceBoxLabels
(Computer Vision Toolbox) — Select blocks from labeled blocked images with bounding box data (requires Computer Vision Toolbox). Use this function to perform class balancing in object detection workflows.The
blockLocationSet
function described here. Use this function when you know the coordinates of blocks within the blocked images.
Syntax
Description
locationSet = blockLocationSet(
creates a ImageNumber
,BlockOrigin
,BlockSize
)blockLocationSet
object that stores the locations
BlockOrigin
and size BlockSize
of blocks to be
read from a set of blocked image files indexed by ImageNumber
.
locationSet = blockLocationSet(
also specifies the resolution level at which to read blocks from the blocked
images.ImageNumber
,BlockOrigin
,BlockSize
,Levels
)
Properties
Examples
Tips
The
blockLocationSet
object does not read or store data from blocked image files.
Version History
Introduced in R2020a
See Also
blockedImage
| blockedImageDatastore
| boxLabelDatastore
(Computer Vision Toolbox) | balancePixelLabels
(Computer Vision Toolbox) | balanceBoxLabels
(Computer Vision Toolbox) | selectBlockLocations