Bridges 2D foundational segmentation models (SAM 2.1 / SAM 3.1) with 3D Gaussian Splatting. Projects 2D leaf or organ masks from photos onto 3D Gaussians via ray-splat correspondence, updating semantic class IDs and confidence scores in the 3D cloud.
Arguments
- splat
A
gaussian_splatobject.- camera
Camera list corresponding to the viewpoint of the photo.
- mask
2D binary matrix or an
Imageobject returned byimage_segment_dl()where1represents the target leaf.- class_id
Integer. Semantic class ID to assign (e.g.
1for leaf,2for stem). Defaults to1.- threshold
Double. Minimum confidence score to accept semantic label. Defaults to
0.05.
