Markups Measurement Tool on 2D [jpeg] with scalebar in image

Operating system: Intel(R) Core™ i7-8650U CPU @ 1.90GHz 2.11 GHz Windows 11
Slicer version: 5.6.2
Expected behavior: …
Actual behavior: …

Interested in using 3D Slicer for 2D (jpeg) images. I took all of my images with a scalebar in the photo as seen here, and wondered how I get the markups measuring tool to register the proper scale. See the image here for reference-

Thank you, Stephanie

First check the spacing of the JPG image you loaded in the Slicer (volumes module). If it is not 1x1x1, set 1x1x1.

Then measure a known distance on the ruler, e.g., from 3 to 10cm (the bigger a distance you measure, the smaller your calibration error will be) using the line tool. Then divide this distance (in mm) to the measurement you obtained by the Line tool (e.g., 1400, so 70/1400 = 0.05 mm/px.

This is the true spacing of your volume after the calibration. If you go back and type in this as your volume spacing, then you should be able to obtain measurements that are correct (you can validate by remeasuring the ruler).

Or you can simply keep the ruler measurement external in a file, and then do the math later.

Regardless though, if you want correct calibration, and your ruler is slanted like this in a picture, you should first put it under a transformation to make the ruler straight to obtain an accurate distance.

Thank you. I’ll give these steps a try.

I made a decimal error in the previous screenshot (and corrected my cm to mm conversion. not enough coffee). Here is the updated screenshot.

1 Like