MATLAB: Imdistline

Image Processing Toolboximdistline

Hi
Is it possible to disable the distance label on the line created by imdistline? If the two end points are too close, then sometimes the label is on top of one of the end points…
Thanks,
Razvan

Best Answer

It's in the help, but not a real explicit example like my example for you below:
h = imdistline(gca);
api = iptgetapi(h);
api.setLabelVisible(false);