This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import numpy as np | |
| from hdbscan import HDBSCAN | |
| from plyfile import PlyData, PlyElement | |
| from pathlib import Path | |
| from sklearn.neighbors import KDTree | |
| import argparse | |
| # ─── Load ──────────────────────────────────────────────────────────────────── |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import numpy as np | |
| import json | |
| from pathlib import Path | |
| SPLAT_DIR = Path("segments/") | |
| K = 2.0 | |
| OPACITY_THRESHOLD = 0.1 | |
| def ply_to_plant_fields(filepath): |