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

Macro language compatibility? #11

Open
7rebor opened this issue Jan 29, 2018 · 2 comments
Open

Macro language compatibility? #11

7rebor opened this issue Jan 29, 2018 · 2 comments

Comments

@7rebor
Copy link

7rebor commented Jan 29, 2018

Since the plugin works really well with my experimental data, I'm interested to run it through a whole directory to batch process them.

Is there any scope to write this in to an IJ1 macro?

@imagejan
Copy link

imagejan commented Jan 29, 2018

The SciJava framework handles recording of macro options when running a Command with Parameters. The issue here is that RegistrationPlugin doesn't do any computation in its run method; all processing is done in callback methods that are only triggered from the UI, when a dialog is shown.

@7rebor for now you might be able to call the different components of the UI plugin from scripts (all except IJ1 macro language though) by re-using the commands here (although @tischi might have better advice):

Registration registration = new Registration( settings );
registration.run();
registration.logTransformations();
setOutputImages( registration );
//showTransformedOutputWithBigDataViewer();
showTransformedOutputWithImageJFunctions();

@tischi
Copy link
Owner

tischi commented Jan 31, 2018

I don't have a better idea right now. I am still learning the ins and outs of macro recording in ImageJ2 myself. Probably will have a better idea in some weeks/months. If it helps I have java code (which should be easy to convert to a groovy script) that analyzes your example data set:

https://github.com/tischi/fiji-plugin-imageRegistration/blob/master/src/test/java/Register3D7rebor.java

I can however understand if that is too complex, I hope that I (or @imagejan ?) find the time to make a nice and simply groovy script for you that can easily by put in a loop.

Let us know what would be best for you!

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

3 participants