Skip to content

Commit

Permalink
update immvision (**Breaking change**: Handle default color order)
Browse files Browse the repository at this point in the history
- **Breaking change**: Handle default color order
  - Added `enum ColorOrderId { RGB, BGR, Default}`
  - in C++, the default color order is BGR (a la OpenCV)
  - in python, the default color order is RGB
  - You may call ImmVision::SetDefaultColorOrder() to change this.
  - The parameters isColorOrderBGR and the field ImageParams.IsColorOrderBGR were removed, in favor of ColorId
  • Loading branch information
pthom committed Oct 5, 2024
1 parent 13577df commit 462c827
Show file tree
Hide file tree
Showing 6 changed files with 326 additions and 266 deletions.
11 changes: 11 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,16 @@
Version numbers are synced between hello_imgui and imgui_bundle.

# v1.5.xxx

### ImmVision
- **Breaking change**: Handle default color order
- Added `enum ColorOrderId { RGB, BGR, Default}`
- in C++, the default color order is BGR (a la OpenCV)
- in python, the default color order is RGB
- You may call ImmVision::SetDefaultColorOrder() to change this.
- The parameters isColorOrderBGR and the field ImageParams.IsColorOrderBGR were removed, in favor of ColorId


# v1.5.0

### ImGui:
Expand Down
4 changes: 3 additions & 1 deletion bindings/imgui_bundle/__init__.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
# Part of ImGui Bundle - MIT License - Copyright (c) 2022-2023 Pascal Thomet - https://github.com/pthom/imgui_bundle
#from imgui_bundle._imgui_bundle import hhh as hhh # type: ignore
import os
from imgui_bundle._imgui_bundle import __bundle_submodules__ # type: ignore
from imgui_bundle._imgui_bundle import __version__, compilation_time
Expand Down Expand Up @@ -86,6 +85,9 @@ def has_submodule(submodule_name):
__all__.extend(["imgui_md"])
if has_submodule("immvision"):
from imgui_bundle._imgui_bundle import immvision as immvision
if not hasattr(immvision, "_did_set_default_color_order_rgb"):
immvision.set_default_color_order(immvision.ColorOrderId.rgb)
immvision._did_set_default_color_order_rgb = True
__all__.extend(["immvision"])
if has_submodule("imguizmo"):
from imgui_bundle._imgui_bundle import imguizmo as imguizmo
Expand Down
Loading

0 comments on commit 462c827

Please sign in to comment.