Skip to content

Keep image composition and masks in the declared native domain - #1080

Merged
trissim merged 6 commits into
mainfrom
fix/native-payload-domain-composition-20261006
Oct 7, 2026
Merged

trissim merged 6 commits into
mainfrom
fix/native-payload-domain-composition-20261006

Conversation

@trissim

@trissim trissim commented Oct 6, 2026 •

Copy link
Copy Markdown
Collaborator

Mixed intensity and intrinsic-channel image composition currently downloads device pixels into NumPy, and mask projection/broadcasting assumes host arrays. Route these operations through the existing ArrayBridge MemoryType/ArrayOperations while retaining OpenHCS metadata as the authority for intensity and axis semantics. Masks follow the actual image destination device; RGB/grayscale masks are broadcast into their composed slice domains before stacking.

Closes #1079.

Depends on merged ArrayBridge #8, pinned at ee4c0e93 with a package minimum of 0.3.7. Draft until the tagged release is actually available on PyPI. No CPU performance improvement is claimed, and no benchmark source receipts are relabeled.

Validation: 219 affected CPU controls pass on the combined source, including the separately merged alignment repair #1082. Eleven real GTX 1080/CuPy checks pass for mixed intensity, per-plane scaling, mixed intrinsic channels, full/channel-free/absent/shared masks, masked conversion, channel projection and both destination frameworks. GPU-only composition forbids downloads; values, destination devices and independent stack buffers are checked. Torch/TensorFlow/Pycles device execution is not claimed; unsupported Pycles native geometry/allocation is explicit. The performance plan still requires a complete mixed-device production-pipeline conversion profile before P5 can be called complete.

@trissim

trissim commented Oct 7, 2026

Copy link
Copy Markdown
Collaborator Author

ArrayBridge 0.3.7 is now published on PyPI: https://pypi.org/project/arraybridge/0.3.7/ . Both wheel and source archive hashes exactly match the qualified v0.3.7 release assets at ee4c0e93. Uploaded through secure local keyring credentials because the original GitHub publisher remained queued. The PyPI-availability dependency for this PR is resolved; no claim that its remaining OpenHCS receiving or integration is complete.

@trissim
trissim marked this pull request as ready for review October 7, 2026 00:36
Copilot AI balanced review requested due to automatic review settings October 7, 2026 00:36
@trissim
trissim merged commit fea882f into main Oct 7, 2026
2 of 4 checks passed

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot was unable to review this pull request because the user who requested the review has reached their quota limit.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Keep mixed-device image composition and masks in the declared native domain

2 participants