I'm retrieving image data from OMERO and it's working ok except for getting the dimension order.
- Code: Select all
s = obj.sessionHolder.session;
img = getImages(s, obj.imageID);
pixelsList = img.copyPixels();
pixels = pixelsList.get(0);
obj.szXYZCT = getPixelsSize(pixels);
pixelsId = pixels.getId().getValue();
store = s.createRawPixelsStore();
store.setPixelsId(pixelsId, false);
dord = pixels.getDimensionOrder();
The last line works, but then
- Code: Select all
dordval = dord.getValue();
throws an UnloadedEntityException. I've run across the Unloaded error before, but I'm not sure how to avoid it.
I'm also assuming that if I do retrieve this value, it will be an ordinal number and I will have to use the Enumeration to learn the string value.
Thanks for help!
Gary