Skip to content

Commit

Permalink
feat: always use teh atanasov method since it doesn't require a start…
Browse files Browse the repository at this point in the history
…ing guess
  • Loading branch information
ccrutchf committed Jan 21, 2025
1 parent a3d2d8b commit bb05448
Showing 1 changed file with 1 addition and 11 deletions.
12 changes: 1 addition & 11 deletions pyfishsensedev/calibration/laser_calibration.py
Original file line number Diff line number Diff line change
Expand Up @@ -58,18 +58,8 @@ def save(self, calibration_path: Path):
def plane_calibrate(
self,
laser_points_3d: Iterator[np.ndarray],
estimate_laser_calibration: Self,
use_gauss_newton=True,
) -> None:
if use_gauss_newton:
state_init = np.zeros(5, dtype=float)
state_init[:3] = estimate_laser_calibration.laser_axis
state_init[-2:] = estimate_laser_calibration.laser_position[:2]

laser_params, _ = gauss_newton_estimate_state(laser_points_3d, state_init)
else:
laser_params = atanasov_calibration_method(laser_points_3d)

laser_params = atanasov_calibration_method(laser_points_3d)
self._laser_axis = laser_params[:3]

self._laser_position = np.zeros(3, dtype=float)
Expand Down

0 comments on commit bb05448

Please sign in to comment.