skip to content
Headshot Maxwell Campbell

Fixing the Fiji Grid Stitching Plugin Confirmation Dialog

The number of images you can use with the grid stitching plugin in Fiji is limited not by your computer’s memory or it’s processing power, but by the height of your monitor’s display, because of an insane bug where for some reason you can not scroll in the confirmation dialog after selecting the images to be loaded.

To fix this you just have to remove the following lines in src/main/java/plugin/Stitching_Grid.java:

if ( confirmFiles )
{
    final GenericDialogPlus gd = new GenericDialogPlus( "Confirm files" );

    for ( final String name : files )
        gd.addCheckbox( name, true );

    gd.showDialog();

    if ( gd.wasCanceled() )
        return null;

    for ( int i = 0; i < files.size(); ++i )
        useFile[ i ] = gd.getNextBoolean();
}

And then you just have to compile it from source with maven and replace the stitching plugin in Fiji with the jar file produced by mvn package.

But to save you the several hours of fighting with maven that I had to go through to get this to compile you can get a patched jar file here built from this fork.