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

Feature request: display options for multiple images #138

Open
tomfrankkirk opened this issue May 9, 2024 · 2 comments
Open

Feature request: display options for multiple images #138

tomfrankkirk opened this issue May 9, 2024 · 2 comments

Comments

@tomfrankkirk
Copy link

It would be really useful if when display options are provided at the command line before any image files, they are applied to all following images, rather than having to set display options for each image.

For example:
fsleyes -cm -dr 0 10 /path/to/images/*.nii.gz

@pauldmccarthy
Copy link
Owner

Hi @tomfrankkirk !

I think this would be too complicated to implement within the existing argument parsing logic. However, it would be very straightforward to implement it as a separate entry point (i.e. a second command called e.g. fsleyes_all [just a placeholder] in addition to the standard fsleyes). Alternatively it be invoked via a global argument, e.g. fsleyes --all [other arguments], which could be checked for and used to invoke a separate entry point which re-arranges the arguments and pass them to the main argument parsing routines.

But in either case this separate entry point would have to be somewhat limited, i.e. you wouldn't be able to pass other global options (e.g. -std, --scene lightbox, etc). Unless, for example, the user were to pass a delimiter separating the global from the overlay arguments, e.g. (OVERLAY_ARGS being a placeholder for the delimiter):

fsleyes --scene lightbox -std OVERLAY_ARGS -cm red-yellow -dr 100 500 data/*.nii.gz

@tomfrankkirk
Copy link
Author

Hi Paul,

Thanks for your reply. I think either of your suggestions would provide the right functionality, and I'll defer to your judgement about how this could be incorporated with the argument parsing logic. The thought simply came to me the other day when I was mass-loading multiple images that I know ahead of time to all be on the same data scale.

thanks
tom

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

No branches or pull requests

2 participants