r/ImageJ • u/Simple_is_Simple • 3d ago
Question Automatic Width Measurement Issues
Hello,
I would like to automate width measurements for segmented signals and I'm finding difficulty with the "bounding box" or "fit rectangle" resulting dimensions since I'm starting with diagonal signals. The longest dimension (length) matches my manual measures fine but the short dimension (width or height) doesn't match.
I tried duplicating a rotated-rectangle-ROI to make the signals horizontal but the binary image becomes grey scale due to resampling and I haven't found a way to keep my binary segmentation.
I followed this guide, https://www.youtube.com/watch?v=VJD36CY6aKE, to test "Local Thickness Analysis" and the average measure is at least closer to my 3 manual values.
selectImage("two segmented.tif");
run("Local Thickness (complete process)", "threshold=1");
roiManager("Select", 0);
run("Histogram", "bins=256 use x_min=0 x_max=4.47 y_max=Auto");
Table.showHistogramTable;
Is there any way to reduce the sampling to just 3-10 sites using "Local Thickness"? I have 70+ 'objects' per 1 image I am analyzing so 255 the histogram contains (per <2 microns) seems overkill.
Are there any other methods to accurately pull out this height value?
https://drive.google.com/drive/folders/1RvHwRA6MtwVaZ_yrMoP0S2qdpywrBgGY?usp=sharing I included some additional files at different processing stages but the simplest ones to follow are at the bottom right of the image bellow.

Thanks in advance for your time and help.



