Skip to content

Commit

Permalink
Merge pull request #1505 from danforthcenter/1504-docs-correction-for…
Browse files Browse the repository at this point in the history
…-camera_calibration

Fixed error in documentation for camera calibration
  • Loading branch information
nfahlgren committed Apr 25, 2024
2 parents 47e5835 + 9951984 commit 127c358
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions docs/transform_calibrate_camera.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@ This function uses the outputs of [**plantcv.transform.checkerboard_calib**](tra

- **Parameters:**
- rgb_img - an RGB image to be corrected
- mtx - path to a .npz file output from **plantcv.checkerboard_calib**
- dist - path to a .npz file output from **plantcv.checkerboard_calib**
- mtx_filename - path to a .npz file output from **plantcv.checkerboard_calib**
- dist_filename - path to a .npz file output from **plantcv.checkerboard_calib**

- **Context:**
- Used to correct image distortions based on checkerboard calibrations
Expand All @@ -34,7 +34,7 @@ pcv.params.debug = "plot"
mtx, dist = pcv.transform.checkerboard_calib(img_path = "./img_files/", col_corners = 13, row_corners = 19, out_dir = "./output/")

# Correct distortions using the outputs from checkerboard calibration
corrected_img = pcv.transform.calibrate_camera(rgb_img = img, mtx = "./output/mtx.npz", dist = "./output/dist.npz")
corrected_img = pcv.transform.calibrate_camera(rgb_img = img, mtx_filename = "./output/mtx.npz", dist_filename = "./output/dist.npz")

```

Expand Down
2 changes: 1 addition & 1 deletion docs/transform_checkerboard_calibration.md
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ pcv.params.debug = "plot"
mtx, dist = pcv.transform.checkerboard_calib(img_path = "./img_files/", col_corners = 13, row_corners = 19, out_dir = "./output/")

# Correct distortions using the outputs from checkerboard calibration
corrected_img = pcv.transform.calibrate_camera(rgb_img = img, mtx = "./output/mtx.npz", dist = "./output/dist.npz")
corrected_img = pcv.transform.calibrate_camera(rgb_img = img, mtx_filename = "./output/mtx.npz", dist_filename = "./output/dist.npz")

```

Expand Down

0 comments on commit 127c358

Please sign in to comment.