Skip to content, Skip to search

Changes

Script Parameters

8 bytes removed, 14:23, 16 June 2016
Remove explicit TOC
{{Scripting}}{{TOC}}All scripting languages have access to a universal <code>@parameter</code> notation for declaring inputs and outputs. This approach is preferred to using ImageJ 1.x <code>GenericDialog</code> because it is totally agnostic of the user interface, allowing such scripts to run in a variety of contexts. As with [[Writing_ImageJ2_plugins|ImageJ2 plugins]], script parameterization is based on the [[SciJava]] [https://github.com/scijava/scijava-common/blob/scijava-common-2.40.0/src/main/java/org/scijava/plugin/Parameter.java @Parameter annotation]—so experience with plugin writing directly translates to scripting, and vice versa.
== Basic syntax ==
Bureaucrat, emailconfirmed, incoming, administrator, uploaders
11,833
edits