public class ImageServiceImpl extends java.lang.Object implements ImageService
コンストラクタと説明 |
---|
ImageServiceImpl(GatewayFactory gatewayFactory)
Instantiate the imageService with the serviceFactory.
|
修飾子とタイプ | メソッドと説明 |
---|---|
java.lang.Long |
copyImage(long imageId,
int x,
int y,
int t,
int z,
java.util.List<java.lang.Integer> channelList,
java.lang.String imageName)
Copy the image and pixels from image.
|
java.lang.Long |
copyPixels(long pixelsID,
int x,
int y,
int t,
int z,
java.util.List<java.lang.Integer> channelList,
java.lang.String methodology)
Copy the pixels set from pixels to a new set.
|
java.lang.Long |
copyPixels(long pixelsID,
java.util.List<java.lang.Integer> channelList,
java.lang.String imageName)
Copy the pixels set from pixels to a new set.
|
java.lang.Long |
createImage(int sizeX,
int sizeY,
int sizeZ,
int sizeT,
java.util.List<java.lang.Integer> channelList,
omero.model.PixelsType pixelsType,
java.lang.String name,
java.lang.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.
|
java.util.Map<java.lang.Long,byte[]> |
getThumbnailSet(omero.RInt sizeX,
omero.RInt sizeY,
java.util.List<java.lang.Long> pixelsIds)
Get a set of thumbnails.
|
int[] |
renderAsPackedIntAsRGBA(long pixelsId,
int z,
int t)
Render image as Buffered image.
|
void |
setActive(java.lang.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.
|
public ImageServiceImpl(GatewayFactory gatewayFactory)
serviceFactory
- see above.public java.lang.Long createImage(int sizeX, int sizeY, int sizeZ, int sizeT, java.util.List<java.lang.Integer> channelList, omero.model.PixelsType pixelsType, java.lang.String name, java.lang.String description) throws omero.ServerError
ImageService
createImage
インタフェース内 ImageService
omero.ServerError
public java.lang.Long copyPixels(long pixelsID, int x, int y, int t, int z, java.util.List<java.lang.Integer> channelList, java.lang.String methodology) throws omero.ServerError
ImageService
copyPixels
インタフェース内 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 java.lang.Long copyPixels(long pixelsID, java.util.List<java.lang.Integer> channelList, java.lang.String imageName) throws omero.ServerError
ImageService
copyPixels
インタフェース内 ImageService
pixelsID
- pixels id to copy.channelList
- the list of channels to copy.imageName
- what created the pixels.omero.ServerError
public java.lang.Long copyImage(long imageId, int x, int y, int t, int z, java.util.List<java.lang.Integer> channelList, java.lang.String imageName) throws omero.ServerError
ImageService
copyImage
インタフェース内 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
インタフェース内 ImageService
imageID
- image id relating to the iamge.omero.ServerError
public omero.model.Pixels getPixels(long pixelsId) throws omero.ServerError
ImageService
getPixels
インタフェース内 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
インタフェース内 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
インタフェース内 ImageService
pixelsId
- pixels id of the plane to renderz
- z section to rendert
- timepoint to renderomero.ServerError
public int[] renderAsPackedIntAsRGBA(long pixelsId, int z, int t) throws omero.ServerError
ImageService
renderAsPackedIntAsRGBA
インタフェース内 ImageService
pixelsId
- pixels id of the plane to renderz
- z section to rendert
- timepoint to renderomero.ServerError
public int[][][] getRenderedImageMatrix(long pixelsId, int z, int t) throws omero.ServerError
ImageService
getRenderedImageMatrix
インタフェース内 ImageService
pixelsId
- pixels id of the plane to renderz
- z section to rendert
- timepoint to renderomero.ServerError
public byte[] getThumbnail(long pixelsId, omero.RInt sizeX, omero.RInt sizeY) throws omero.ServerError
ImageService
getThumbnail
インタフェース内 ImageService
pixelsId
- for pixelsIdsizeX
- size of thumbnail.sizeY
- size of thumbnail.omero.ServerError
public java.util.Map<java.lang.Long,byte[]> getThumbnailSet(omero.RInt sizeX, omero.RInt sizeY, java.util.List<java.lang.Long> pixelsIds) throws omero.ServerError
ImageService
getThumbnailSet
インタフェース内 ImageService
sizeX
- size of thumbnail.sizeY
- size of thumbnail.pixelsIds
- list of ids.omero.ServerError
public void setActive(java.lang.Long pixelsId, int w, boolean active) throws omero.ServerError
ImageService
setActive
インタフェース内 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
インタフェース内 ImageService
pixelsId
- pixels id to upload to .z
- z section.c
- channel.t
- time point.data
- plane data.DSOutOfServiceException
omero.ServerError