Expand description
Utilities for testing and synthetic data generation.
Structs§
- Test
Image Params - Parameters for generating test images with photometric variations.
Functions§
- apply_
brightness_ contrast - Apply brightness and contrast to an image.
brightness: -255 to +255contrast: 0.0 to 127.0 (1.0 = no change) - compute_
corner_ error - Compute mean Euclidean distance between detected and ground truth corners. Handles 4 rotations to find the minimum error.
- compute_
rmse - Compute RMSE corner error between detected and ground truth corners.
- count_
black_ pixels - Count black pixels in binary data.
- generate_
checkered - Generates a checkered pattern image for benchmarking.
- generate_
synthetic_ test_ image - Generate a synthetic image containing a single AprilTag or ArUco tag.
- generate_
test_ image_ with_ params - Generate a test image based on the provided parameters. Includes tag generation, placement, and photometric adjustments.
- measure_
border_ integrity - Check if the tag’s outer black border is correctly binarized. Returns the ratio of correctly black pixels in the 1-cell-wide border (0.0 to 1.0).