Skip to content

ADD testing Jython scripts to understand fiji handling datasets#26

Draft
xulman wants to merge 9 commits into
mainfrom
jython-scripts-to-understand-fiji-handling-datasets
Draft

ADD testing Jython scripts to understand fiji handling datasets#26
xulman wants to merge 9 commits into
mainfrom
jython-scripts-to-understand-fiji-handling-datasets

Conversation

@xulman

@xulman xulman commented Feb 26, 2026

Copy link
Copy Markdown
Contributor

This PR adds several tiny Jython scripts to peek into Fiji as follows:

  • scripts to create pure img and display it using different mechanisms
  • script to create IJ1 ImagePlus and display it
  • script to create Dataset and show it
    • standardly via UIService as IJ1-like window
    • via BigDataViewer, in which case some example magic is done in order to allow access to the Dataset again from Fiji
  • scripts to list what Datasets are around, and to try to "work" with Dataset and ImagePlus ("work" means to print info about the image)

The scripts are in the test folder.

...python id (alike mem address) of the images
...when it is displayed in BDV, and yet emulating as if it was
displayed with the standard IJ1 windows. The trick is in using
the Dataset#incrementReferences() and decrementReferences().

Indeed, when references count drops to zero, the Dataset is released
and no longer available anywhere in Fiji.
@xulman xulman marked this pull request as draft February 26, 2026 23:46
@xulman xulman self-assigned this Feb 26, 2026
@sonarqubecloud

Copy link
Copy Markdown

@xulman

xulman commented Feb 26, 2026

Copy link
Copy Markdown
Contributor Author

Most of the scripts also show the "memory address" of the images using Python's id() to see better if copies are created on the fly by Fiji, or if existing objects are reused.

@xulman

xulman commented Mar 12, 2026

Copy link
Copy Markdown
Contributor Author

mention (in the yet unfinished README) that ome-zarr view could be used to monitor which chunks are loaded

@sonarqubecloud

Copy link
Copy Markdown

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