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 argparse | |
| from functools import partial | |
| import math | |
| from pathlib import Path | |
| from camera_geometry import FrameSet | |
| from camera_geometry.scan.views import load_frames_with, undistort_cameras | |
| from camera_geometry import Camera | |
| import cv2 | |
| import numpy as np |
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 matplotlib.pyplot as plt | |
| import scipy | |
| def offset_and_scale(curve, c, a, b): | |
| return np.stack([curve[:, 0] + c, curve[:, 1] * a + b], axis=1) | |
| def align_curves(curve1, curve2): | |
| def distance(args): |
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 sympy as sp | |
| fx, fy, cx, cy, x, y, z = sp.symbols('fx fy cx cy x y z') | |
| K = sp.Matrix([[fx, 0, cx], | |
| [0, fy, cy], | |
| [0, 0, 1]]) | |
| p = sp.Matrix([x, y, z]) | |
| # project point |
OlderNewer