fit_plane_3d — 3D geometry op

• 데이터 종류: points → primitive

• 호출: import fullseye as fs; fs.ledger.fit_plane_3d(points)(구현을 직접 호출하려면 import match3d; match3d.fit_plane_3d(points), 원장에서 가져오려면 ops3d.get("fit_plane_3d"))

사용법

점군 → 최소제곱 평면(통과점=무게중심, 법선=최소 주축, 잔차 RMS). 반환값 (point, normal, resid).

(N,3) 점군(열 수가 3이 아니거나 3점 미만이면 ValueError)의 무게중심 c와 산포 행렬의 최소 고윳값의고유벡터를 법선으로 한다(직교 거리 제곱합을 최소화. resid = sqrt(λ_min/N) = 면으로부터의 직교거리의 RMS). normal은 단위 벡터이며 부호는 임의(바깥쪽을 향하게 하려면 시점이나 무게중심과의 관계로반전한다). 3점이면 정확히 지나는 면으로 resid=0(BLAS의 음의 반올림은 0으로 clamp). 점이 직선 형태(2번째 고윳값도 0)이면 법선은 부정. 이상값에 약하다(ransac_plane / plane_segmentation으로 먼저 인라이어를 취한다). 3-D 전용.

후단: distance_point_plane / angle_between_planes / intersect_planes, 높이장의평면도라면 surface_form_error(degree=1).

참고(샘플 데이터·문헌)

• 샘플 데이터 카탈로그(DL URL / 라이선스) —— 2-D 는 skimage.data(BSD/public)+ 합성, 3-D 는 실데이터 소스(Stanford/PDS 등)의 DL URL.

• 연산자의 내력·참고문헌 —— 이 연산자 족의 바탕이 된 연구/기법의 출처.

실행 가능한 예제(이 연산자를 실제로 호출하는 검증된 샘플)

• geometry_metrology — py -3.11 examples_3d/geometry_metrology.py

타입이 이어지는 다음 연산자(primitive 를 입력으로 받는 것)

fuse_to_voxel · angle_between_lines · angle_between_planes · angle_line_plane · distance_point_plane · distance_point_line · distance_line_line · distance_segment_segment

같은 카테고리(geometry)

line_from_2points · plane_from_3points · angle_3points · angle_between_lines · angle_between_planes · angle_line_plane · distance_point_plane · distance_point_line


*Provenance: match3d.py — 3D 연산자 레지스트리. 이 op 노트는 tools/opdocs.py md 가 자동 생성합니다(직접 편집하지 마세요).*

© 2026 Kazufumi Furuse — Fullseye operator documentation. Licensed under Apache-2.0.