Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

New public method ImageJVirtualStack.getSource returning the underlying RandomAccessibleInterval #36

Merged
merged 1 commit into from
Jan 8, 2024

Conversation

acardona
Copy link
Contributor

@acardona acardona commented Nov 8, 2023

There are many occasions when one wants to get the underlying RandomAccessibleInterval. Offering a public method to return the private field "source" addresses this well, so one can write, for example:

RandomAccessibleInterval rai = IJ.getImage().getStack().getSource();

Or more simply from a script:

rai = IJ.getImage().getStack().getSource()

…ng RandomAccessibleInterval.

There are many occasions when one wants to get the underlying RandomAccessibleInterval. Offering a public method to return
the private field "source" addresses this well, so one can write, for example:

RandomAccessibleInterval<UnsignedShortType> rai = IJ.getImage().getStack().getSource();

Or more simply from a script:

rai = IJ.getImage().getStack().getSource()
Copy link
Member

@ctrueden ctrueden left a comment

Choose a reason for hiding this comment

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

This looks like a sensible improvement to me. What do you think, @tpietzsch?

@acardona acardona merged commit bfe61df into master Jan 8, 2024
1 check passed
@ctrueden ctrueden deleted the acardona-patch-1 branch January 9, 2024 04:03
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