Expand description
Utils for testing and debugging.
Structs§
- Diff
- A difference between two images
Functions§
- describe_
pixel_ diffs - Gives a summary description of a list of pixel diffs for use in error messages.
- gray_
bench_ image - Gray image to use in benchmarks. This is neither noise nor similar to natural images - it’s just a convenience method to produce an image that’s not constant.
- load_
image_ or_ panic - Loads image at given path, panicking on failure.
- pixel_
diff_ summary - Human readable description of some of the pixels that differ between left and right, or None if all pixels match.
- pixel_
diffs - Lists pixels that differ between left and right images.
- rgb_
bench_ image - RGB image to use in benchmarks. See comment on
gray_bench_image
. - significant_
pixel_ diff_ summary - Human readable description of some of the pixels that differ significantly (according to provided function) between left and right, or None if all pixels match.