imagej / ImageJ

Public domain software for processing and analyzing scientific images
http://imagej.org
Other
576 stars 227 forks source link

The folder opener only used the first FileInfo from a tiffile. #251

Closed odinsbane closed 5 months ago

odinsbane commented 5 months ago

I made a test, but I didn't put it in the source because of the requisite test data. The test data can be created using the code found in issue https://github.com/imagej/ImageJ/issues/242

Here is the test.

public class FolderOpenerTest {
    @Test
    public void compareVirtualToNormalStackSize(){
        ImagePlus one = FolderOpener.open("./volumes");
        ImagePlus two = FolderOpener.open("./volumes", "virtual");

        Assert.assertEquals(one.getStack().getSize(), two.getStack().getSize());
    }
}

I have two collaborators who have sent me image stacks that break from this bug. One of the collaborators sent data from multiple sources.

rasband commented 5 months ago

This bug fix is in the ImageJ 1.54k1 daily build. The commit is at https://github.com/imagej/ImageJ/commit/8fa08fa17d0729930209bb1cf894c72f7d63e6e3.