Is it possible to create imdistance line on a mouse click and trace the line as seen with the distance tool in imtool?

조회 수: 1 (최근 30일)
So, I have an image, I would like to be able to trace a line (snap from point to point) like how is down with imtool and the distance tool?
I can create a line object using imdistance, but the line is created automatically in the middle of the image, I would like it to be created at the pointer of the mouse.
Any ideas??

채택된 답변

Walter Roberson
Walter Roberson 2019년 2월 22일
imdistline() with three parameters creates a distance tool with endpoints at the given x y position.

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Explore and Edit Images with Image Viewer App에 대해 자세히 알아보기

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by