ransac_cylinder — 3D robust_fit op

• 데이터 종류: points × normals → primitive

• 호출: import fullseye as fs; fs.ledger.ransac_cylinder(points, normals, thresh, iters=800, seed=0)(구현을 직접 호출하려면 import ransac_fit; ransac_fit.ransac_cylinder(points, normals, thresh, iters=800, seed=0), 원장에서 가져오려면 ops3d.get("ransac_cylinder"))

사용법

이상치에 강건한 RANSAC 원기둥 적합(점 법선이 필요).

원통 표면의 법선은 축에 직교하므로 2 점의 법선의 외적으로 축 방향을 추정 → 축에 직교하는 평면으로모든 점을 투영 → 그 평면 안에서 원을 피팅 → |투영 거리 - r| < thresh인 inlier를최대화. 최종 inlier에서는 더 강건하게 축을 재추정하고(법선군 SVD의 최소 특이 방향 = 축), 투영 원을 최소제곱 재피팅한다. 법선이 없으면 호출 측에서 estimate한 후 넘긴다.

Args:

points: (N,3) 점군.

normals: (N,3) 각 점의 (단위) 법선.

thresh: inlier로 간주하는 |투영 거리-r|의 임계값.

iters: RANSAC 반복 횟수.

seed: 난수 시드(결정론적).

Returns:

(params, inlier_mask, info). params = {"axis": (3,) 단위 축, "point": (3,) 축 위의 한 점,

"radius": float}. info에는 inlier 수 n_inliers / 비율 inlier_ratio / iters.

배경 지식 가이드(이 연산자 앞에 있는 물리·규약)

• blas_threads_and_memory — 행렬 분해가 느린 이유 — BLAS 스레드·캐시·메모리 배치

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

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

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

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

• ransac_prim — py -3.11 examples_3d/ransac_prim.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

같은 카테고리(robust_fit)

ransac_plane · ransac_sphere · ransac_line · fit_cone · fit_torus · fit_ellipsoid


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

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