Skip to content

Issues with Multipage TIFF Datastore #82

@nicost

Description

@nicost

The script below - that should acquire 3 images, and put them in different positions in the datastore - results in the images being saved on disk, but not being retrievable: Only the last image (position) can be found. This is most dramatically illustrated in the viewer: it displays each new image as it is snapped, but at the end, only the last image is present. Setting the intended dimensions in the SUmmary Metadat does not make a difference. I do not understand why/how normal MDA acquisitions work. This problem does not exist in the RAMDatastore (did not test single page TIFF yet). A similar issue exists for channels, time pints and z-positions seem to be handled correctly.

//targetStore = mm.data().createRAMDatastore();

nrPos = 3;

cb = Coordinates.builder().t(0).c(0).p(nrPos + 1).z(0);
c = cb.build();
targetStore.setSummaryMetadata(targetStore.getSummaryMetadata().
									copyBuilder().intendedDimensions(c).build());
            
mm.displays().createDisplay(targetStore);

for (int i = 0; i < nrPos; i++) {
	imgs = mm.live().snap(true);
	cb.c(0).t(0).z(0).p(i);
	img = imgs.get(0).copyAtCoords(cb.build());
	targetStore.putImage(img);
	Thread.sleep(1000);
}

targetStore.freeze();

mm.scripter().message("Done");

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions