|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectomerojava.util.GatewayUtils
public class GatewayUtils
Constructor Summary | |
---|---|
GatewayUtils()
|
Method Summary | |
---|---|
static byte[] |
convertClientToServer(omero.model.Pixels pixels,
double[][] data)
convert the client data pixels to server byte array, also sets the data pixel size to the size of the pixels in the pixels Id param. |
static int |
getBytesPerPixels(String pixelsType)
Returns the number of bytes per pixel depending on the pixel type. |
static List<omero.model.Dataset> |
getDatasetsFromProject(omero.model.Project project)
Get the datasets from the project, the project must have the datasets loaded already. |
static List<omero.model.Image> |
getImagesFromDataset(omero.model.Dataset dataset)
Get the images from the Dataset, the Dataset must be loaded in the project beforehand. |
static List<omero.model.Image> |
getImagesFromProject(omero.model.Project project)
Get the images from the Project, the images must be loaded in the project beforehand. |
static List<omero.model.Pixels> |
getPixelsFromDataset(omero.model.Dataset dataset)
Get the pixels from the Dataset, the pixels must be loaded in the Dataset beforehand. |
static List<omero.model.Pixels> |
getPixelsFromImageList(List<omero.model.Image> images)
Get the pixels from the list of images, these images must have the pixels loaded beforehand. |
static List<omero.model.Pixels> |
getPixelsFromProject(omero.model.Project project)
Get the pixels from the Project, the pixels must be loaded in the project beforehand. |
static Map<Long,omero.model.Pixels> |
getPixelsImageMap(List<omero.model.Image> images)
create a map of pixelsId to pixels from the images in the image list. |
static Plane1D |
getPlane1D(omero.model.Pixels pixels,
byte[] rawPlane)
Extracts a 1D plane from the pixels set this object is working for. |
static Plane2D |
getPlane2D(omero.model.Pixels pixels,
byte[] rawPlane)
Extracts a 2D plane from the pixels set this object is working for. |
static BufferedImage |
toBufferedImage(omero.model.Pixels pixels,
int[] rawImage)
Convert the raw integer(4byte colour data) to a bufferedImage, for pixels object pixels. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public GatewayUtils()
Method Detail |
---|
public static BufferedImage toBufferedImage(omero.model.Pixels pixels, int[] rawImage)
pixels
- see above.rawImage
- see above.
public static Plane2D getPlane2D(omero.model.Pixels pixels, byte[] rawPlane) throws omero.ServerError
pixels
- The pixels object from which the rawPlane was retrieved.rawPlane
- The raw bytes of the plane (z,c,t)
DSAccessException
DSOutOfServiceException
omero.ServerError
public static Plane1D getPlane1D(omero.model.Pixels pixels, byte[] rawPlane) throws omero.ServerError
pixels
- The pixels object from which the rawPlane was retrieved.rawPlane
- The raw bytes of the plane (z,c,t)
DSAccessException
DSOutOfServiceException
omero.ServerError
public static List<omero.model.Dataset> getDatasetsFromProject(omero.model.Project project) throws omero.ServerError
project
-
omero.ServerError
public static List<omero.model.Pixels> getPixelsFromProject(omero.model.Project project) throws omero.ServerError
project
- see above.
omero.ServerError
public static List<omero.model.Pixels> getPixelsFromImageList(List<omero.model.Image> images)
images
- see above.
public static Map<Long,omero.model.Pixels> getPixelsImageMap(List<omero.model.Image> images)
images
- see above.
public static List<omero.model.Pixels> getPixelsFromDataset(omero.model.Dataset dataset) throws omero.ServerError
dataset
- see above.
omero.ServerError
public static List<omero.model.Image> getImagesFromDataset(omero.model.Dataset dataset) throws omero.ServerError
dataset
- see above.
omero.ServerError
public static List<omero.model.Image> getImagesFromProject(omero.model.Project project) throws omero.ServerError
project
- see above.
omero.ServerError
public static int getBytesPerPixels(String pixelsType)
pixelsType
- The pixels Type.
public static byte[] convertClientToServer(omero.model.Pixels pixels, double[][] data)
pixels
- the pixels in the server.data
- the data on the client.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Version: Beta-4.2.0-r7571-b29
Copyright © 2009 The University of Dundee. All Rights Reserved.