Using ImageJ to automatically set scale by detecting a scale bar in the photo


Is it possible to use an ImageJ macro to detect a scale bar in an image and automatically set the scale to that predetermined scale?


Good day,

you may have a look at this post:
(Requires black scale-bars on white ground, etc.)

If you’re not happy with this approach, then please post a typical image in PNG- or TIF-format that shows a relevant scale bar.