Skip to content

Fake: add labelPlanes option to add human-readable labels to planes#4339

Merged
sbesson merged 1 commit intoome:developfrom
melissalinkert:fake-informative-planes
Aug 20, 2025
Merged

Fake: add labelPlanes option to add human-readable labels to planes#4339
sbesson merged 1 commit intoome:developfrom
melissalinkert:fake-informative-planes

Conversation

@melissalinkert
Copy link
Copy Markdown
Member

Discussed with @sbesson that in the same line as MakeTestOmeTiff, it might be useful for some test scenarios to have FakeReader show readable ZCT indexes and other metadata included in each plane's pixels. This is encoded already in the "special pixels" in the top left corner, but human-readable values would be nice as well.

showinf test&labelPlanes=true&...fake should draw the relevant metadata in white, as MakeTestOmeTiff does. This doesn't attempt to wrap the image name if it spans multiple lines. The default behavior without the labelPlanes key should remain unchanged.

@melissalinkert melissalinkert requested a review from sbesson July 15, 2025 16:33
@melissalinkert melissalinkert added this to the 8.4.0 milestone Jul 30, 2025
Copy link
Copy Markdown
Member

@sbesson sbesson left a comment

Choose a reason for hiding this comment

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

Tested with a few example of synthetic images e.g.

% ./tools/showinf "test&labelPlanes=true&sizeZ=20&sizeC=3&sizeT=3&series=2.fake" -series 1
Screenshot 2025-08-14 at 13 57 09

The primary goal from my side was to simplify the validation of plane reading in the context of glencoesoftware/omero-zarr-pixel-buffer#28. Coupled with bioformats2raw, I think this change is sufficient to easy generate test datasets with various modalities and dimensionalities.

Proposing to merge unless @jburel @dominikl can think of features introduced in their investigation worth bringing here.

@sbesson sbesson merged commit 48b3d0b into ome:develop Aug 20, 2025
22 checks passed
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