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

Scijava batch processing do not work with macro language and ImagePlus input #216

Open
NicoKiaru opened this issue Apr 17, 2019 · 1 comment
Assignees

Comments

@NicoKiaru
Copy link
Contributor

NicoKiaru commented Apr 17, 2019

Launching this macro:

#@ImagePlus img

selectImage(img);
print("The opened image has an id of "+img);

Do not work when using the batch button.

See this thread :
https://forum.image.sc/t/scijava-batch-processing-with-macro-language/24881

The workaround is to use ´File´ objects if one want to use batch with macro language.

@NicoKiaru NicoKiaru self-assigned this Apr 23, 2020
@imagejan
Copy link
Member

Can this be solved while setting the bindings for the macro language when running the script? Essentially, when we assign parameter values (here), we could also call setTempCurrentImage to make the macro aware of the current image, or (less intrusively) somehow register it with the WindowManager... there must be some overlap with the functionality in pyimagej around macro calls, so I wonder if code for this exists somewhere already, and we just have to use it here as well (/cc @ctrueden, @hinerm, @gselzer).

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