Hello, I am av avid Python programmer and I have thus far successfully stayed mostly ignorant of Java. While checking out some of the example Jython code in FIJI I noticed a new kind of “decorator” at the top of the the Jython code. For instance the first lines of the Templates->ImageJ2->Apply DOG filtering.py
#@ Dataset data #@ Float(label="Sigma 1 (pixel)", required=true, value=4.2, stepSize=0.1) sigma1 #@ Float(label="Sigma 2 (pixel)", required=true, value=1.25, stepSize=0.1) sigma2 #@OUTPUT Dataset output #@ OpService ops #@ DatasetService ds
Last time I developed a Jython plugin I don’t think I ran in to this #@-type of “shebang line”. I kind of understand what it does and it’s super convenient that you don’t have to create a user input dialogue to get user input. However, it kind of bugs me that I don’t truly understand whats going on. There must be documentation for this feature, but since I don’t know what it’s called I’m a little stuck. Could someone point me towards some resource where I can read up on the #@-jython decorator thingy?