Skip to content

Commit 5427f02

Browse files
committed
better default arguments
1 parent f8bba6a commit 5427f02

File tree

8 files changed

+118
-130
lines changed

8 files changed

+118
-130
lines changed

examples/model_comparison.ipynb

Lines changed: 18 additions & 18 deletions
Large diffs are not rendered by default.

examples/model_differencing.ipynb

Lines changed: 32 additions & 32 deletions
Large diffs are not rendered by default.

examples/opencv_calibration.ipynb

Lines changed: 15 additions & 18 deletions
Large diffs are not rendered by default.

examples/quickstart.ipynb

Lines changed: 28 additions & 37 deletions
Large diffs are not rendered by default.

examples/spline_calibration.ipynb

Lines changed: 13 additions & 13 deletions
Large diffs are not rendered by default.

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ build-backend = "scikit_build_core.build"
55

66
[project]
77
name = "lensboy"
8-
version = "3.0.0"
8+
version = "3.0.1"
99
description = "lensboy for camera calibrations"
1010
authors = [{ name = "Robert Leo", email = "robert.leo.jonsson@gmail.com" }]
1111

src/lensboy/analysis/plots.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -239,7 +239,7 @@ def plot_detection_coverage(
239239
image_height: int,
240240
title: str = "Coverage",
241241
s: float = 6.0,
242-
grid_cells: int = 60,
242+
grid_cells: int = 50,
243243
return_figure: bool = False,
244244
) -> Figure | None:
245245
"""Scatter-plot all detected points with empty grid cells highlighted.
@@ -279,7 +279,7 @@ def _plot_inlier_coverage(
279279
image_height: int,
280280
title: str = "Inlier coverage",
281281
s: float = 6.0,
282-
grid_cells: int = 60,
282+
grid_cells: int = 50,
283283
return_figure: bool = False,
284284
) -> Figure | None:
285285
"""Scatter-plot inlier detections with outliers highlighted in red.
@@ -359,12 +359,12 @@ def _plot_outliers(
359359
def plot_distortion_grid(
360360
model: lb.OpenCV | lb.PinholeSplined,
361361
*,
362-
grid_cells: int = 60,
362+
grid_cells: int = 50,
363363
fov_fraction: float | None = None,
364364
ux_max: float | None = None,
365365
uy_max: float | None = None,
366366
cmap_name: str = "jet",
367-
show_spline_knots: bool = False,
367+
show_spline_knots: bool = True,
368368
return_figure: bool = False,
369369
) -> Figure | None:
370370
"""Project a regular grid through a camera model to visualize distortion.
@@ -988,7 +988,7 @@ def _plot_residual_grid(
988988
*,
989989
image_width: int,
990990
image_height: int,
991-
grid_cells: int = 60,
991+
grid_cells: int = 50,
992992
arrow_scale: float = 100.0,
993993
heatmap_max: float | None = None,
994994
title: str = "Residual grid",
@@ -1356,7 +1356,7 @@ def plot_undistortion(
13561356
model: lb.PinholeRemapped,
13571357
*,
13581358
image: np.ndarray | None = None,
1359-
grid_cells: int = 60,
1359+
grid_cells: int = 50,
13601360
line_thickness: int | None = None,
13611361
return_figure: bool = False,
13621362
) -> Figure | None:

src/lensboy/calibration/type_defs.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -264,7 +264,7 @@ def plot_detection_coverage(
264264
*,
265265
title: str = "Coverage",
266266
s: float = 6.0,
267-
grid_cells: int = 60,
267+
grid_cells: int = 50,
268268
return_figure: bool = False,
269269
) -> Figure | None:
270270
"""Scatter-plot all detected points with empty grid cells highlighted.
@@ -298,7 +298,7 @@ def plot_inlier_coverage(
298298
*,
299299
title: str = "Inlier coverage",
300300
s: float = 6.0,
301-
grid_cells: int = 60,
301+
grid_cells: int = 50,
302302
return_figure: bool = False,
303303
) -> Figure | None:
304304
"""Scatter-plot inlier detections with empty grid cells highlighted.
@@ -363,12 +363,12 @@ def plot_outliers(
363363
def plot_distortion_grid(
364364
self,
365365
*,
366-
grid_cells: int = 60,
366+
grid_cells: int = 50,
367367
fov_fraction: float | None = None,
368368
ux_max: float | None = None,
369369
uy_max: float | None = None,
370370
cmap_name: str = "jet",
371-
show_spline_knots: bool = False,
371+
show_spline_knots: bool = True,
372372
return_figure: bool = False,
373373
) -> Figure | None:
374374
"""Project a regular grid through a camera model to visualize distortion.
@@ -485,7 +485,7 @@ def plot_residual_vectors(
485485
def plot_residual_grid(
486486
self,
487487
*,
488-
grid_cells: int = 60,
488+
grid_cells: int = 50,
489489
arrow_scale: float = 100.0,
490490
heatmap_max: float | None = None,
491491
title: str = "Residual grid",

0 commit comments

Comments
 (0)