|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectome.services.blitz.gateway.services.impl.ImageServiceImpl
public class ImageServiceImpl
Constructor Summary | |
---|---|
ImageServiceImpl(GatewayFactory gatewayFactory)
Instantiate the imageService with the serviceFactory. |
Method Summary | |
---|---|
Long |
copyImage(long imageId,
int x,
int y,
int t,
int z,
List<Integer> channelList,
String imageName)
Copy the image and pixels from image. |
Long |
copyPixels(long pixelsID,
int x,
int y,
int t,
int z,
List<Integer> channelList,
String methodology)
Copy the pixels set from pixels to a new set. |
Long |
copyPixels(long pixelsID,
List<Integer> channelList,
String imageName)
Copy the pixels set from pixels to a new set. |
Long |
createImage(int sizeX,
int sizeY,
int sizeZ,
int sizeT,
List<Integer> channelList,
omero.model.PixelsType pixelsType,
String name,
String description)
Create a new image of specified X,Y, Z, T and channels plus pixelsType with name and description |
omero.model.Image |
getImage(long imageID)
Get the image information for an image. |
omero.model.Pixels |
getPixels(long pixelsId)
Get the pixels information for an image. |
byte[] |
getRawPlane(long pixelsId,
int z,
int c,
int t)
Get the raw plane from the server with id pixelsId, and channels, c, timepoint t, and z-section z. |
int[] |
getRenderedImage(long pixelsId,
int z,
int t)
Render image as Buffered image. |
int[][][] |
getRenderedImageMatrix(long pixelsId,
int z,
int t)
Render image as 3d matrix. |
byte[] |
getThumbnail(long pixelsId,
omero.RInt sizeX,
omero.RInt sizeY)
Get the thumbnail of the image. |
Map<Long,byte[]> |
getThumbnailSet(omero.RInt sizeX,
omero.RInt sizeY,
List<Long> pixelsIds)
Get a set of thumbnails. |
int[] |
renderAsPackedIntAsRGBA(long pixelsId,
int z,
int t)
Render image as Buffered image. |
void |
setActive(Long pixelsId,
int w,
boolean active)
Set the active channels in the pixels. |
void |
uploadPlane(long pixelsId,
int z,
int c,
int t,
byte[] data)
Upload the plane to the server, on pixels id with channel and the time, + z section. the data is the client 2d data values. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ImageServiceImpl(GatewayFactory gatewayFactory)
serviceFactory
- see above.Method Detail |
---|
public Long createImage(int sizeX, int sizeY, int sizeZ, int sizeT, List<Integer> channelList, omero.model.PixelsType pixelsType, String name, String description) throws omero.ServerError
ImageService
createImage
in interface ImageService
omero.ServerError
public Long copyPixels(long pixelsID, int x, int y, int t, int z, List<Integer> channelList, String methodology) throws omero.ServerError
ImageService
copyPixels
in interface ImageService
pixelsID
- pixels id to copy.x
- width of plane.y
- height of plane.t
- num timepointsz
- num zsections.channelList
- the list of channels to copy.methodology
- what created the pixels.
omero.ServerError
public Long copyPixels(long pixelsID, List<Integer> channelList, String imageName) throws omero.ServerError
ImageService
copyPixels
in interface ImageService
pixelsID
- pixels id to copy.channelList
- the list of channels to copy.imageName
- what created the pixels.
omero.ServerError
public Long copyImage(long imageId, int x, int y, int t, int z, List<Integer> channelList, String imageName) throws omero.ServerError
ImageService
copyImage
in interface ImageService
imageId
- image id to copy.x
- width of plane.y
- height of plane.t
- number of timepoints.z
- number of zsections.channelList
- the list of channels to copy.imageName
- The name of the image.
omero.ServerError
public omero.model.Image getImage(long imageID) throws omero.ServerError
ImageService
getImage
in interface ImageService
imageID
- image id relating to the iamge.
omero.ServerError
public omero.model.Pixels getPixels(long pixelsId) throws omero.ServerError
ImageService
getPixels
in interface ImageService
pixelsId
- image id relating to the pixels.
omero.ServerError
public byte[] getRawPlane(long pixelsId, int z, int c, int t) throws omero.ServerError
ImageService
getRawPlane
in interface ImageService
pixelsId
- see above.z
- see above.c
- see above.t
- see above.
omero.ServerError
public int[] getRenderedImage(long pixelsId, int z, int t) throws omero.ServerError
ImageService
getRenderedImage
in interface ImageService
pixelsId
- pixels id of the plane to renderz
- z section to rendert
- timepoint to render
omero.ServerError
public int[] renderAsPackedIntAsRGBA(long pixelsId, int z, int t) throws omero.ServerError
ImageService
renderAsPackedIntAsRGBA
in interface ImageService
pixelsId
- pixels id of the plane to renderz
- z section to rendert
- timepoint to render
omero.ServerError
public int[][][] getRenderedImageMatrix(long pixelsId, int z, int t) throws omero.ServerError
ImageService
getRenderedImageMatrix
in interface ImageService
pixelsId
- pixels id of the plane to renderz
- z section to rendert
- timepoint to render
omero.ServerError
public byte[] getThumbnail(long pixelsId, omero.RInt sizeX, omero.RInt sizeY) throws omero.ServerError
ImageService
getThumbnail
in interface ImageService
pixelsId
- for pixelsIdsizeX
- size of thumbnail.sizeY
- size of thumbnail.
omero.ServerError
public Map<Long,byte[]> getThumbnailSet(omero.RInt sizeX, omero.RInt sizeY, List<Long> pixelsIds) throws omero.ServerError
ImageService
getThumbnailSet
in interface ImageService
sizeX
- size of thumbnail.sizeY
- size of thumbnail.pixelsIds
- list of ids.
omero.ServerError
public void setActive(Long pixelsId, int w, boolean active) throws omero.ServerError
ImageService
setActive
in interface ImageService
pixelsId
- the pixels id.w
- the channelactive
- set active?
omero.ServerError
public void uploadPlane(long pixelsId, int z, int c, int t, byte[] data) throws omero.ServerError
uploadPlane
in interface ImageService
pixelsId
- pixels id to upload to .z
- z section.c
- channel.t
- time point.data
- plane data.
DSOutOfServiceException
omero.ServerError
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Version: Beta4.2.1-r8614-Beta4.2-b41
Copyright © 2009 The University of Dundee. All Rights Reserved.