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.
Best Answer