I run the plugin and it does perfectly work.
This is what I get from the macro recorder:
run("Grid/Collection stitching", "type=[Filename defined position] order=[Defined by filename ] grid_size_x=3 grid_size_y=3 tile_overlap=10 first_file_index_x=00 first_file_index_y=00 directory=C:\Users\jsoriano\Desktop\Prueba_Stitching_Ralph\experiment--2012_11_28_19_55\Slide--S00\Results file_names=Field--X{xx}--Y{yy}.tif output_textfile_name=TileConfiguration.txt fusion_method=[Linear Blending] regression_threshold=0.30 max/avg_displacement_threshold=2.50 absolute_displacement_threshold=3.50 compute_overlap subpixel_accuracy computation_parameters=[Save memory (but be slower)] image_output=[Fuse and display]");
However, when copying and pasting the previous text into an script (imagej language), it wouldn't work!
I get the following error instead.
Started New_.ijm at Fri Jan 25 15:58:43 CET 2013
java.lang.NullPointerException: cannot add null item to Choice
at java.awt.Choice.insertNoInvalidate(Choice.java:208)
at java.awt.Choice.addItem(Choice.java:189)
at ij.gui.GenericDialog.addChoice(GenericDialog.java:445)
at plugin.GridType.<init>(GridType.java:94)
at plugin.Stitching_Grid.run(Stitching_Grid.java:96)
at ij.IJ.runUserPlugIn(IJ.java:184)
at ij.IJ.runPlugIn(IJ.java:151)
at sun.reflect.NativeMethodAccessorImpl.invoke0(NativeMethodAccessorImpl.java:-2)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at ij.Command.runPlugIn(Command.java:148)
at ij.Command.runCommand(Command.java:97)
at ij.Executer.run(Executer.java:61)
at ij.IJ.run(IJ.java:250)
at ij.macro.Functions.doRun(Functions.java:580)
at ij.macro.Functions.doFunction(Functions.java:83)
at ij.macro.Interpreter.doStatement(Interpreter.java:219)
at ij.macro.Interpreter.doStatements(Interpreter.java:207)
at ij.macro.Interpreter.run(Interpreter.java:104)
at ij.macro.Interpreter.run(Interpreter.java:74)
at CLI.Refresh_Macros.runScript(Refresh_Macros.java:56)
at common.RefreshScripts.runScript(RefreshScripts.java:325)
at fiji.scripting.TextEditor$Tab$6.execute(TextEditor.java:1216)
at fiji.scripting.TextEditor$Executer$1.run(TextEditor.java:1776)
Hope this info is useful!!!
Thanks again!!!
Joaquim Soriano Felipe.
Confocal Microscopy Unit
Spanish National Cancer Research Centre (CNIO)
Melchor Fernández Almagro,3, E-28029 Madrid, Spain
Phone + 34 917 328 000, exts.: 3161, 3162. [log in to unmask]
-----Mensaje original-----
De: ImageJ Interest Group [mailto:[log in to unmask]] En nombre de Ignacio Arganda-Carreras
Enviado el: viernes, 25 de enero de 2013 16:39
Para: [log in to unmask]
Asunto: Re: problems calling plugins from scripts written using the macro recorder
Dear Joaquim,
Can you send an example of your script so we can reproduce the error?
thanks!
ignacio
On Fri, Jan 25, 2013 at 6:24 AM, Soriano.Joaquim <[log in to unmask]> wrote:
> I have problems calling plugins from scripts written using the macro
> recorder.
>
> I used to use the macro recorder to record the Grid/Collection
> Stitching and then paste it to my scripts. It used to work but it doesn't anymore.
>
> I keep FIJI and ImageJ updated and I even downloaded a new version.
> But it wouldn't work.
>
> Does anyone know what's going on?
>
> Thanks in advance.
>
>
>
>
>
> Joaquim Soriano Felipe.
>
> Confocal Microscopy Unit
>
> Spanish National Cancer Research Centre (CNIO)
>
> Melchor Fernández Almagro,3, E-28029 Madrid, Spain
>
> Phone + 34 917 328 000, exts.: 3161, 3162. [log in to unmask] <mailto:
> [log in to unmask]>
>
>
>
>
>
> **NOTA DE CONFIDENCIALIDAD** Este correo electr˙nico, y en su caso los
> ficheros adjuntos, pueden contener informaci˙n protegida para el uso
> exclusivo de su destinatario. Se proh˙be la distribuci˙n, reproducci˙n
> o cualquier otro tipo de transmisi˙n por parte de otra persona que no
> sea el destinatario. Si usted recibe por error este correo, se ruega
> comunicarlo al remitente y borrar el mensaje recibido.
> **CONFIDENTIALITY NOTICE** This email communication and any
> attachments may contain confidential and privileged information for
> the sole use of the designated recipient named above. Distribution,
> reproduction or any other use of this transmission by any party other
> than the intended recipient is prohibited. If you are not the intended
> recipient please contact the sender and delete all copies.
>
>
>
> --
> ImageJ mailing list: http://imagej.nih.gov/ij/list.html
>
--
Ignacio Arganda-Carreras, Ph.D.
Seung's lab, 46-5065
Department of Brain and Cognitive Sciences Massachusetts Institute of Technology
43 Vassar St.
Cambridge, MA 02139
USA
Phone: (001) 617-324-3747
Website: http://bioweb.cnb.csic.es/~iarganda/index_EN.html
--
ImageJ mailing list: http://imagej.nih.gov/ij/list.html
**NOTA DE CONFIDENCIALIDAD** Este correo electrónico, y en su caso los ficheros adjuntos, pueden contener información protegida para el uso exclusivo de su destinatario. Se prohíbe la distribución, reproducción o cualquier otro tipo de transmisión por parte de otra persona que no sea el destinatario. Si usted recibe por error este correo, se ruega comunicarlo al remitente y borrar el mensaje recibido.
**CONFIDENTIALITY NOTICE** This email communication and any attachments may contain confidential and privileged information for the sole use of the designated recipient named above. Distribution, reproduction or any other use of this transmission by any party other than the intended recipient is prohibited. If you are not the intended recipient please contact the sender and delete all copies.
--
ImageJ mailing list: http://imagej.nih.gov/ij/list.html
|