Labsmore / pyuscope

Python machine vision platform
BSD 2-Clause "Simplified" License
80 stars 17 forks source link

Round scale bar lengths to nice values #470

Open azonenberg opened 7 months ago

azonenberg commented 7 months ago

Rather than keeping the snapshot scale bar as a fixed number of pixels in length, consider using this as a "nominal" scale bar length, then rounding the physical distance (1-2-5 steps probably is good) and adjusting the pixel length to match the rounded distance.

Most users would probably prefer a 200 or 500um scale bar to a 284um one.