Posted by
MChapman on
Feb 25, 2018; 2:43pm
URL: http://imagej.273.s1.nabble.com/replace-substring-of-filename-with-string-tp5020154p5020157.html
Hey Owen,
I do not know of a way to make it a callable list inside of grid collection/stitching, but stephan preibisch would know more about how the algorithm works and what the input structure looks like.
If the reason that you are wanting the filenames to be consistent with the original is because you are using the TileConfiguration.registered.txt file that comes out of a run, then I would manipulate the filename strings in the .txt file after running the plugin.
Alternatively, if you know the grid spacing on the mosaic that you collected, you could just create your own TileConfiguration.txt file and then you can have whatever file names you would like. Then instead of selecting “Grid:row by row” you would select “Positions from file”
Hope this helps!
Mike
> On Feb 25, 2018, at 4:51 AM, OwenGwydion <
[hidden email]> wrote:
>
> Hi Mike,
>
> Thanks for your response! I think I understand now. So my real problem then
> is that the second part of the file name (after the "_s01") changes and is
> unique to each file. I'm able to do the manual method for grid/collection
> stitching if I remove the unique string at the end of each file, but Ideally
> I'd like to find a way around this.
>
> I need to specify a variable filename in the plugin call eg:
>
> run("Grid/Collection stitching"......file_names = [&genericFileName]
>
> Can you specify a variable within another variable?
>
> I would like to make the secondPartOfFilename a variable within the
> &genericFileName variable? Don't know if that makes sense or is even the
> best way around this.
>
> Cheers,
>
> Owen
> ////////////////////////
>
>
>
>
> --
> Sent from:
http://imagej.1557.x6.nabble.com/>
> --
> ImageJ mailing list:
http://imagej.nih.gov/ij/list.html--
ImageJ mailing list:
http://imagej.nih.gov/ij/list.html