Skip to content

Let ImageJ edits show up in BigDataViewer - #148

Merged
stefanhahmann merged 3 commits into
mainfrom
unmerge-rgb-channels
Oct 8, 2026
Merged

stefanhahmann merged 3 commits into
mainfrom
unmerge-rgb-channels

Conversation

@stefanhahmann

@stefanhahmann stefanhahmann commented Oct 2, 2026 •

Copy link
Copy Markdown
Collaborator

An OME-Zarr opened in ImageJ via Open Current OME-Zarr Image in ImageJ... shares its cell images with
BigDataViewer, so edits in ImageJ show up in BDV — once ImageJ leaves the edited plane and BDV redraws.

  • README ("Dual dataset view"): documents this, and that edits are in memory only and may be lost.
  • OmeZarrTest#rectangleFilledInImageJIsRenderedInBdv (both backends): fills a ROI in ImageJ and checks an offscreen BDV render.
  • PyramidalDataset calls setRGBMerged( false ): ImageJ opened 3-channel uint8 images as RGB on a read-only virtual stack, so edits never reached the cell images in these cases. They now open as 3-channel composites.

For the reviewer: truly RGB data (e.g. brightfield from bioformats2raw) now opens as a composite, so
RGB-only tools such as Colour Deconvolution stop working on it. Is that acceptable, or should we keep RGB=true and have the test switch off the merge on its own in PyramidalDataset?

🤖 Generated with Claude Code

@stefanhahmann stefanhahmann self-assigned this Oct 2, 2026
stefanhahmann and others added 3 commits October 6, 2026 14:18
ImageJ merged them into one RGB image on a read-only virtual stack.
Now each channel is a writable plane.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
@stefanhahmann stefanhahmann changed the title Open 3-channel 8-bit images as composites, not RGB, in ImageJ Let ImageJ edits show up in BigDataViewer Oct 6, 2026
@sonarqubecloud

sonarqubecloud Bot commented Oct 6, 2026

Copy link
Copy Markdown

@stefanhahmann
stefanhahmann requested a review from xulman October 6, 2026 13:03

@xulman xulman left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

This is indeed a nice fix, many thanks for it.

It was an unfortunate omission that we allowed Fiji to mess with the channels and interpert them. Also the test is very nice as it is using BDV's internal own rendering machine to read out what it has rendered-out, and thus to test what goes on the screen.

@stefanhahmann
stefanhahmann merged commit 69b32fc into main Oct 8, 2026
6 checks passed
@stefanhahmann
stefanhahmann deleted the unmerge-rgb-channels branch October 8, 2026 10:20
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.

2 participants