public interface Pixels extends RemoteObject
Modifier and Type | Method and Description |
---|---|
PixelsData |
asDataObject()
Returns a
PixelsData corresponding to the handled object. |
default double[][][][][] |
getAllPixels(ConnectionHandler client)
Returns an array containing the value for each voxel
|
double[][][][][] |
getAllPixels(ConnectionHandler client,
int[] xBounds,
int[] yBounds,
int[] cBounds,
int[] zBounds,
int[] tBounds)
Returns an array containing the value for each voxel corresponding to the bounds
|
Time |
getMeanExposureTime(int channel)
Computes the mean exposure time for a given channel from the planes exposureTime.
|
Time |
getMeanTimeInterval()
Computes the mean time interval from the planes deltaTs.
|
Length |
getPixelSizeX()
Gets the size of a single image pixel on the X axis.
|
Length |
getPixelSizeY()
Gets the size of a single image pixel on the Y axis.
|
Length |
getPixelSizeZ()
Gets the size of a single image pixel on the Z axis.
|
String |
getPixelType()
Gets the pixel type.
|
List<PlaneInfo> |
getPlanesInfo()
Retrieves the planes information (which need to be
loaded first). |
Length |
getPositionX()
Retrieves the X stage position.
|
Length |
getPositionY()
Retrieves the Y stage position.
|
Length |
getPositionZ()
Retrieves the Z stage position.
|
default byte[][][][] |
getRawPixels(ConnectionHandler client,
int bpp)
Returns an array containing the raw values for each voxel of each plane.
|
byte[][][][] |
getRawPixels(ConnectionHandler client,
int[] xBounds,
int[] yBounds,
int[] cBounds,
int[] zBounds,
int[] tBounds,
int bpp)
Returns an array containing the raw values for each voxel for each plane corresponding to the bounds
|
int |
getSizeC()
Gets the size of the image on the C axis
|
int |
getSizeT()
Gets the size of the image on the T axis
|
int |
getSizeX()
Gets the size of the image on the X axis
|
int |
getSizeY()
Gets the size of the image on the Y axis
|
int |
getSizeZ()
Gets the size of the image on the Z axis
|
Time |
getTimeIncrement()
Gets the time increment between time points.
|
void |
loadPlanesInfo(Browser browser)
Loads the planes information.
|
canAnnotate, canChgrp, canChown, canDelete, canEdit, canLink, distinct, flatten, getCreated, getElementsOf, getGroupId, getId, getOwner, getUpdated, saveAndUpdate
PixelsData asDataObject()
PixelsData
corresponding to the handled object.asDataObject
in interface RemoteObject
void loadPlanesInfo(Browser browser) throws ServiceException, AccessException, ExecutionException
browser
- The data browser.ServiceException
- Cannot connect to OMERO.AccessException
- Cannot access data.ExecutionException
- A Facility can't be retrieved or instantiated.List<PlaneInfo> getPlanesInfo()
loaded
first).String getPixelType()
Length getPixelSizeX()
Length getPixelSizeY()
Length getPixelSizeZ()
Time getTimeIncrement()
Time getMeanTimeInterval()
Planes information needs to be loaded
first.
Time getMeanExposureTime(int channel)
Planes information needs to be loaded
first.
channel
- The channel index.Length getPositionX()
Planes information needs to be loaded
first.
Length getPositionY()
Planes information needs to be loaded
first.
Length getPositionZ()
Planes information needs to be loaded
first.
int getSizeX()
int getSizeY()
int getSizeZ()
int getSizeC()
int getSizeT()
default double[][][][][] getAllPixels(ConnectionHandler client) throws AccessException, ExecutionException
client
- The client handling the connection.AccessException
- If an error occurs while retrieving the plane data from the pixels source.ExecutionException
- A Facility can't be retrieved or instantiated.double[][][][][] getAllPixels(ConnectionHandler client, int[] xBounds, int[] yBounds, int[] cBounds, int[] zBounds, int[] tBounds) throws AccessException, ExecutionException
client
- The client handling the connection.xBounds
- Array containing the X bounds from which the pixels should be retrieved.yBounds
- Array containing the Y bounds from which the pixels should be retrieved.cBounds
- Array containing the C bounds from which the pixels should be retrieved.zBounds
- Array containing the Z bounds from which the pixels should be retrieved.tBounds
- Array containing the T bounds from which the pixels should be retrieved.AccessException
- If an error occurs while retrieving the plane data from the pixels source.ExecutionException
- A Facility can't be retrieved or instantiated.default byte[][][][] getRawPixels(ConnectionHandler client, int bpp) throws AccessException, ExecutionException
client
- The client handling the connection.bpp
- Bytes per pixels of the image.AccessException
- If an error occurs while retrieving the plane data from the pixels source.ExecutionException
- A Facility can't be retrieved or instantiated.byte[][][][] getRawPixels(ConnectionHandler client, int[] xBounds, int[] yBounds, int[] cBounds, int[] zBounds, int[] tBounds, int bpp) throws ExecutionException, AccessException
client
- The client handling the connection.xBounds
- Array containing the X bounds from which the pixels should be retrieved.yBounds
- Array containing the Y bounds from which the pixels should be retrieved.cBounds
- Array containing the C bounds from which the pixels should be retrieved.zBounds
- Array containing the Z bounds from which the pixels should be retrieved.tBounds
- Array containing the T bounds from which the pixels should be retrieved.bpp
- Bytes per pixels of the image.AccessException
- If an error occurs while retrieving the plane data from the pixels source.ExecutionException
- A Facility can't be retrieved or instantiated.Copyright © 2020–2023 GReD. All rights reserved.