use of omero.api.RawPixelsStorePrx in project imagej-omero by imagej.
the class DefaultOMEROSession method createPixels.
@Override
public RawPixelsStorePrx createPixels(final OMEROFormat.Metadata meta) throws ServerError, FormatException {
// create a new Image which will house the written pixels
final ImageData newImage = createImage(meta);
final long imageID = newImage.getId();
meta.setImageID(imageID);
// configure the raw pixels store
final RawPixelsStorePrx store = session.createRawPixelsStore();
final long pixelsID = newImage.getDefaultPixels().getId();
store.setPixelsId(pixelsID, false);
meta.setPixelsID(pixelsID);
return store;
}
use of omero.api.RawPixelsStorePrx in project imagej-omero by imagej.
the class DefaultOMEROSession method openPixels.
@Override
public RawPixelsStorePrx openPixels(final OMEROFormat.Metadata meta) throws ServerError {
final RawPixelsStorePrx store = session.createRawPixelsStore();
store.setPixelsId(loadPixelsID(meta), false);
return store;
}
Aggregations