Getting an ')' expected error when trying to run a stitching plugin

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

Getting an ')' expected error when trying to run a stitching plugin

jblonigan
Hi All,

I am coming across an issue when trying to run a plugin from my macro, when I run the straight recorded version which is:

run("Grid/Collection stitching", "type=[Positions from file] order=[Defined by TileConfiguration] directory=C:\\Users\\JBlon\\Desktop\\Stanford\\Images\\Stitch_Test\\XY02 layout_file=ch1_imj.txt fusion_method=[Linear Blending] regression_threshold=0.50 max/avg_displacement_threshold=2.50 absolute_displacement_threshold=3.50 computation_parameters=[Save memory (but be slower)] image_output=[Fuse and display]");

It runs perfectly, however when I replace the directory parameters with something that I can loop through and customize for my macro it gives me that error. Here is what I am trying to get to run:

run("Grid/Collection stitching", "type=[Positions from file] order=[Defined by TileConfiguration] directory="Root_Folder+"\\"+Analysis_Folder+"\\XY0"+i+"layout_file=ch1_imj.txt fusion_method=[Linear Blending] regression_threshold=0.50 max/avg_displacement_threshold=2.50 absolute_displacement_threshold=3.50 computation_parameters=[Save memory (but be slower)] image_output=[Fuse and display]");

where:

Root_Folder = "C:\\Users\\JBlon\\Desktop\\Stanford\\Images"
Analysis_Folder = "Stitch_Test"
i=2

Does anyone see what I am doing wrong here? Thanks for the help
Reply | Threaded
Open this post in threaded view
|

Re: Getting an ')' expected error when trying to run a stitching plugin

jblonigan
Figured it out... I was an idiot and forgot that + before my first variable.