fiji / Stitching

Fiji's Stitching plugins reconstruct big images from tiled input images.
http://imagej.net/Stitching
GNU General Public License v2.0
96 stars 64 forks source link

Grid stitching column grid #45

Closed schroef closed 7 years ago

schroef commented 7 years ago

Just tried grid stitch using column by column > down & right using these settings;

screen shot 2017-08-02 at 2 11 40 pm

My images are name according to this grid so 1-1, 1-2, 1-2, 1-4 etc etc. When i use this for filename, Thea1355File name...{x}-{y}_8-8.png

I receive this error; ERROR: Cannot find file: '/Users/romboutversluijs/Desktop/region/Thea1355File name...{x}-{y}_8-8.png' - abort stitching. ERROR: Error during tile discovery, or invalid grid type. Aborting.

Hiow can we use custom named files correctly?

StephanPreibisch commented 7 years ago

Hi, it is explained in the documentation: http://imagej.net/Image_Stitching#Grid.2FCollection_Stitching

"The grid stitching assumes that the tiles which are arranged in any kind of grid are incrementally numbered. The First tile index i defines the number of the first tile in your approximate tile configuration (see figure above)."

"The next entry File name for tiles in the dialog is used to tell the plugin how to find the images which are in the grid (e.g. 49 different file names). Let's assume the files are simply named like this: tile_001.lsm tile_002.lsm .... tile049.lsm which translates to the following entry tile{iii}.lsm. It tells the plugin where to put the increasing index number i, and furthermore to use leading zeros with a length of 3. If the tiles would be called tile_1.lsm tile_2.lsm .... tile49.lsm, it would translate to tile{i}.lsm."

"If you select 'Filename defined position / Defined by filename as type, the approximate coordinates in the grid should be part of the filename. Assuming your files are called: tile_x01_y01.lsm tile_x02_y01.lsm .... tile_x10_y10.lsm it would translate to the following pattern: tile_x{xx}_y{yy}.lsm."

StephanPreibisch commented 7 years ago

Oh, an overlap of 0 means nothing will be computed, so I am not sure this is what you want?

schroef commented 7 years ago

After looking a bit more in it I did sort understand the naming. Yet I was wondering why the x and y examples still gave errors.

I think I even tried with overlap.

I don't need to put x and y in the name right. As long as it gets the coordinates for x and y it should work I guess

schroef commented 7 years ago

Yes, i want to put them side to side.

The problem is with the X and the Y formula part. I just single numbers.

So if i understand correct the files need to in order from 1 > 64

schroef commented 7 years ago

In the page it says; "If you select 'Filename defined position / Defined by filename as type, the approximate coordinates in the grid should be part of the filename. Assuming your files are called: tile_x01_y01.lsm tile_x02_y01.lsm .... tile_x10_y10.lsm

it would translate to the following pattern: tile_x{xx}_y{yy}.lsm."

I dont see that option however

schroef commented 7 years ago

I got it to work now using "stitch grid images".

StephanPreibisch commented 7 years ago

Hi, for {x} and {y} to work you need to select "Filename defined position / Defined by filename", otherwise only {i} will work assuming a constant numbering of files.

StephanPreibisch commented 7 years ago

Those kind of questions are maybe better asked on the ImageJ mailing list (http://imagej.net/Mailing_Lists), here mostly source code related issues should be discussed

ctrueden commented 7 years ago

@StephanPreibisch These days we recommend the ImageJ Forum over the NIH ImageJ mailing list, for a lot of reasons. An additional reason beyond those in the article: the clunkiness of confirming each posting to the list, resulting in hours- or days-long delays. But in general, I agree that both the forum and the mailing list are better suited than GH issues for usage questions.

schroef commented 7 years ago

Well that option, Filename defined position / Defined by filename, i dont see it in the menu. As i explained it, i solved it using a different menu item.

I jsut wanted to point out, that the option isnt visible.

StephanPreibisch commented 7 years ago

There it is ...

screen shot 2017-08-03 at 19 37 03
schroef commented 7 years ago

Aha, thanks!

i try that as well. Column by Column got the result i needed using X and Y

– Rombout

On Thu, Aug 3, 2017 at 1:37 PM, Stephan Preibisch notifications@github.com wrote:

There it is ... [image: screen shot 2017-08-03 at 19 37 03] https://user-images.githubusercontent.com/1420587/28934990-381c553a-7883-11e7-8dd8-36a999e451d7.png

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/fiji/Stitching/issues/45#issuecomment-320038899, or mute the thread https://github.com/notifications/unsubscribe-auth/AGmjAErqQgARiuCmf2hWd0UfyU7WXIUeks5sUgVzgaJpZM4OreTq .

StephanPreibisch commented 7 years ago

Ok, great, hope all is good. As @ctrueden mentioned, please address further requests on how to use a specific software to the ImageJ Forum. Thanks a lot.