In this method, we only use the visible masks from Mask R-CNN to estimate the diameter. From the contour of the visible masks, an enclosing circle is fitted. Then, a pixel-to-mm conversion factor is calculated from the filtered XYZ-coordinates of the visible mask (using histogram filtering). The real-world diameter is estimated by multiplying the diameter of the enclosing circle (in pixels) with the pixel-to-mm conversion factor.
To use this method, please follow this procedure::
- Train Mask R-CNN, see MRCNN_Train_and_Evaluate_VisibleMasks.ipynb
- Estimate the diameter from the visible masks, see Diameter_estimation_VisibleMasks.ipynb