forked from rerun-io/rerun
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Rewrite
Image
archetype (rerun-io#6942)
### What * Part of rerun-io#6844 * Closes rerun-io#6386 ### Breaking changes * `Image(…).compress(…)` is now `ImageEncoded.compres(…)` * `ImageEncoded` has very different constructor compared to 0.17, and only supports chroma-downsampled images ### TODO * [x] Fix how enums are handled in Python (I don't understand it). In particular, this code is broken when given a string as a color model: https://github.com/rerun-io/rerun/blob/8974966ef17c71574df04a77e9ffee0125b32063/rerun_py/rerun_sdk/rerun/archetypes/image_encoded_ext.py#L150-L157 * [x] Fix this test: https://github.com/rerun-io/rerun/blob/4f12d7f6f47a15e0583c5de9e2883840b571e21e/rerun_py/tests/unit/test_image.py#L16-L45 * [x] Test `detect_and_track_objects` * [x] Test a bunch of other examples * ~~[ ] Log a warning if `color_model` is missing, so that we can in the future migrate to having BGR be the default~~ * BGR should never be the default. This has haunted opencv for over a decade. We need not inherit this trauma. * ~~[ ] Consider re-implementing `image.compress(…)` (with a forward call to `ImageEncoded.compress`~~ * TODO: I don't understand why this was moved in the first place. We should move it back, but it can happen in a follow-on PR. ### Checklist * [x] I have read and agree to [Contributor Guide](https://github.com/rerun-io/rerun/blob/main/CONTRIBUTING.md) and the [Code of Conduct](https://github.com/rerun-io/rerun/blob/main/CODE_OF_CONDUCT.md) * [x] I've included a screenshot or gif (if applicable) * [x] I have tested the web demo (if applicable): * Using examples from latest `main` build: [rerun.io/viewer](https://rerun.io/viewer/pr/6942?manifest_url=https://app.rerun.io/version/main/examples_manifest.json) * Using full set of examples from `nightly` build: [rerun.io/viewer](https://rerun.io/viewer/pr/6942?manifest_url=https://app.rerun.io/version/nightly/examples_manifest.json) * [x] The PR title and labels are set such as to maximize their usefulness for the next release's CHANGELOG * [x] If applicable, add a new check to the [release checklist](https://github.com/rerun-io/rerun/blob/main/tests/python/release_checklist)! * [x] If have noted any breaking changes to the log API in `CHANGELOG.md` and the migration guide: * rerun-io#7031 - [PR Build Summary](https://build.rerun.io/pr/6942) - [Recent benchmark results](https://build.rerun.io/graphs/crates.html) - [Wasm size tracking](https://build.rerun.io/graphs/sizes.html) To run all checks from `main`, comment on the PR with `@rerun-bot full-check`. --------- Co-authored-by: Jeremy Leibs <[email protected]>
- Loading branch information
Showing
238 changed files
with
3,833 additions
and
4,309 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.