Group Abstract Group Abstract

Message Boards Message Boards

0
|
8.6K Views
|
4 Replies
|
5 Total Likes
View groups...
Share
Share this post:

[?] Measure distance between objects in an image?

Posted 9 years ago

Hello, I would require to create an image measurement tool (to measure distance between objects in an image) in Mathematica. It is not available in the documentation.

Thanks

POSTED BY: Manoj Imrith
4 Replies
Posted 9 years ago

Hi Vitality/Henrik,

Thanks for help.

Regs

POSTED BY: Manoj Imrith

A simpler alternative to @Henrik's nice version:

i = ExampleData[{"TestImage", "House"}];

Manipulate[
     Labeled[Show[i, Graphics[Line[pt]]], EuclideanDistance @@ pt],
    {{pt, Min[ImageDimensions[i]] {{.3, .3}, {.6, .6}}}, Locator}]

enter image description here

POSTED BY: Vitaliy Kaurov

Dear @Vitaliy Kaurov,

excellent - I always prefer simple solutions! Thanks for sharing!

Best regards -- Henrik

POSTED BY: Henrik Schachner
POSTED BY: Henrik Schachner
Reply to this discussion
Community posts can be styled and formatted using the Markdown syntax.
Reply Preview
Attachments
Remove
or Discard