MATLAB Answers

Line ROI Label Not Available

11 views (last 30 days)
William Sprague
William Sprague on 15 Jan 2020
Edited: Raunak Gupta on 20 Jan 2020 at 12:09
How can I use the Line ROI label in the Image Labeler app?
I am using the Image Labeler to label road defects, such as cracks. Ideally I would use the Line ROI label, but it does not appear with the rectangle and pixel label options.
So I created my own label definition with:
ldc = labelDefinitionCreator();
addLabel(ldc,'Crack',labelType.Line,'Group', 'Defects','Description','ROI labels for road cracks');
labDef = create(ldc);
But when I load labDef as a label definition, I get an error that says:
"Unable to load label definitions from (filepath). labDef.mat must be a label definitions file with no Line Label types."
If I change the labelType to Rectangle, it works perfectly.
I know I could use the brush, but it's trickier to make straight lines with. Or I can use the pixel label polygon feature to make thin polygons, but sometimes it fills in on itself and requires extra work. Am I doing something wrong, or is the Line ROI label not available in 2019a? Thank you.

  0 Comments

Sign in to comment.

Accepted Answer

Raunak Gupta
Raunak Gupta on 20 Jan 2020 at 12:05
Edited: Raunak Gupta on 20 Jan 2020 at 12:09
Hi,
The Line ROI Label for images is available from R2019b Release of MATLAB. You may look at the Release Note of R2019b for Image Labeler App. For using the Line ROI Label for Image Labeler App, I suggest upgrading the MATLAB to latest release that is R2019b. In case you are using video for labelling (Video Labeler App), the line ROI is still present in R2019a release but for image (Image Labeler App) the functionality is introduced from R2019b onwards.

  0 Comments

Sign in to comment.

More Answers (0)

Sign in to answer this question.


Translated by