I found this Matlab example useful:
https://github.com/mporter-gre/ImageAnalysis/blob/master/createNewImageFromOldPixels.m
try to summarize:
1) "Pixels" are used to get ZCT "physical sizes"
- Code: Select all
physSizeX = oldPixels.getPhysicalSizeX.getValue; % alive!
physSizeY = oldPixels.getPhysicalSizeY.getValue; % alive!
physSizeZ = oldPixels.getPhysicalSizeZ.getValue; % alive!
2) "Pixels" are also used to get wavelength info, albeit not directly but via "Channles":
- Code: Select all
pixelsService = factory.getPixelsService();
pixelsDesc = pixelsService.retrievePixDescription(pixels.getId().getValue());
channels = pixelsDesc.copyChannels();
%
for c = 1:sizeC
ch = channels.get(c-1);
ch.getLogicalChannel.getName.getValue % alive!
% ....
end
3) "planeInfo" structure is used to get exposure times and macro times (delays from the beginning of experiment)
- Code: Select all
planeInfo00T = getPlaneInfo(factory, getImages(factory, uint64(image.getId().getValue())), 0, 0, []);
%
for k = 1 : planeInfo00T.size()
z = planeInfo00T(k).getTheZ.getValue;
c = planeInfo00T(k).getTheC.getValue;
t = planeInfo00T(k).getTheT.getValue;
exposuretime = planeInfo00T(k).getExposureTime.getValue; % alive!
deltaT = planeInfo00T(k).getDeltaT.getValue; % alive!
% ...
end
settings should work correspondingly.
I hope I interpreted getDeltaT correctly, as returning macro-time.
Many thanks Andy and Will.
...