Search in sources :

Example 1 with RawPixelsStorePrx

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;
}
Also used : ImageData(omero.gateway.model.ImageData) RawPixelsStorePrx(omero.api.RawPixelsStorePrx)

Example 2 with RawPixelsStorePrx

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;
}
Also used : RawPixelsStorePrx(omero.api.RawPixelsStorePrx)

Aggregations

RawPixelsStorePrx (omero.api.RawPixelsStorePrx)2 ImageData (omero.gateway.model.ImageData)1