Measure distance tool...?

Ideas for improvements and requests for new features in XnView MP

Moderator: xnview

golemus
Posts: 116
Joined: Mon Dec 23, 2024 8:35 am

Measure distance tool...?

Post by golemus »

Has there been discussions or requests regarding tools for measuring distances inside images and/or measuring when using Draw tool to draw lines...?

I am often looking at images which contain maps (e.g. building blueprint, outdoor map, dimensions of objects like TV, microwave, etc...

It opens on XNView MP and then I take a physical ruler to measure distance between different parts in the image. Which is absurd.

I know there is probably dedicated programs for this purpose but nothing which is as fast and versatile as XNMP.

Would it be a bad idea to have a simple measure tool? The tool could of course be implemented in various ways. Here is example scenario.

- open image in XNMP.
- right click image and select "Measure Distance" item in context menu (or selecting from e.g. Image menu above pic)
- left click source point, left click destination point
- distance will come to {MeasureToolDistance} variable which you can have e.g. in TitleBar or Settings - View - Info section
- also variable will update in real time when moving destination point around. With a line (white line with black surroundings).

- as a default distance would be distance in pixels (diagonal distances calculated with pythagoras clause).
- but if you wish so you can redefine distance unit by choosing "Set current Measured Distance as unit distance", e.g. if you know that certain edge in blueprint is 1 meter you could measure that and then set it as unit distance. Which would make subsequent measurements easier to understand.
- distance unit would reset when viewing the next image.

Check Google Maps distance tool for reference. In google maps you can measure multipoint distance but here (at least in beginning) single A-B distance would be enough

It would be useful also to integrate this to Draw tool so that when you draw a straight line you would see distance somewhere.

Opinions?