Main Content

Image Labeler

Label images for computer vision applications

Description

TheImage Labelerapp enables you to label ground truth data in a collection of images. Using the app, you can:

TheImage Labelerapp supports all image file formats supported by theimreadfunction and additionally supports the Digital Imaging and Communication in Medicine (DICOM) format including the ability to load multiframe data such as an ultrasound video. To read additional file formats supported by theImage Labelerapp, you can create animageDatastoreand use theReadFcnproperty. To label 2-D or 3-D medical image data stored in the DICOM, Neuroimaging Informatics Technology Initiative (NIfTI), or nearly raw raster data (NRRD) file formats, use theMedical Image Labeler(Medical Imaging Toolbox).

When loading images, if an image has a dimension larger than 8000 pixels or is a multiresolution image, theImage Labelerapp offers you the option to convert the image into a blocked image. Ablocked imageconsists of a large image that has been divided into smaller blocks that can fit in memory. Once the Image Labeler converts the large image into a blocked, you can process it in the app as you would any other image. While using blocked images enables you to process images in the app that you might not otherwise be able to, there are some limitations. For more information, seeLabel Large Images in the Image Labeler.

Open the Image Labeler App

  • MATLAB®Toolstrip: On theAppstab, underImage Processing and Computer Vision, click the app icon.

  • MATLAB command prompt: EnterimageLabeler.

Programmatic Use

expand all

imageLabeler打开一个新会话的应用,使你拉bel ground truth data in images.

imageLabeler(imageFolder)opens the app and loads all the images from the folder namedimageFolder.

The images in the folder can be unordered and can vary in size. To label a video, or a set of ordered images that resemble a video, use theVideo Labelerapp instead.

imageLabeler(imageDatastore)opens the app and reads all of the images from animageDatastoreobject. TheReadFcnproperty of theimageDatastoreobject specifies how to read the data.

For example, to open the app with a collection of stop sign images:

stopSignsFolder = fullfile(toolboxdir("vision"),"visiondata","stopSignImages"); imds = imageDatastore(stopSignsFolder) imageLabeler(imds)

imageLabeler(sessionFile)opens the app and loads a savedImage Labelersession,sessionFile. ThesessionFileinput contains the path and file name. The MAT-file thatsessionFilepoints to contains the saved session.

imageLabeler(gTruth)opens the app and loads agroundTruthobject . The ground truth object data source must be an image collection or animageDatastore.

More About

expand all

Algorithms

expand all

You can use label automation algorithms to speed up labeling within the app. To create your own label automation algorithm to use within the app, seeCreate Automation Algorithm for Labeling. You can also use one of the built-in algorithms by following these steps:

  1. Import the data you want to label, and create at least one label definition.

  2. On the app toolstrip, clickSelect Algorithmand select one of the built-in automation algorithms.

  3. ClickAutomate, and then follow the automation instructions in the right pane of the automation window.

Version History

Introduced in R2018a