Package fr.igred.omero.repository
Class PixelsWrapper
- java.lang.Object
-
- fr.igred.omero.GenericObjectWrapper<PixelsData>
-
- fr.igred.omero.repository.PixelsWrapper
-
public class PixelsWrapper extends GenericObjectWrapper<PixelsData>
Class containing a PixelDataImplements function using the PixelData contained
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
PixelsWrapper.Bounds
Class containing 5D bounds coordinatesstatic class
PixelsWrapper.Coordinates
Class containing 5D pixel coordinates
-
Field Summary
Fields Modifier and Type Field Description static int
MAX_DIST
Size of tiles when retrieving pixels-
Fields inherited from class fr.igred.omero.GenericObjectWrapper
data
-
-
Constructor Summary
Constructors Constructor Description PixelsWrapper(PixelsData pixels)
Constructor of the PixelsWrapper class
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description double[][][][][]
getAllPixels(Client client)
Returns an array containing the value for each voxeldouble[][][][][]
getAllPixels(Client client, int[] xBound, int[] yBound, int[] cBound, int[] zBound, int[] tBound)
Returns an array containing the value for each voxel corresponding to the boundsLength
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.byte[][][][]
getRawPixels(Client client, int bpp)
Returns an array containing the raw values for each voxel for each planesbyte[][][][]
getRawPixels(Client client, int[] xBound, int[] yBound, int[] cBound, int[] zBound, int[] tBound, int bpp)
Returns an array containing the raw values for each voxel for each plane corresponding to the boundsint
getSizeC()
Gets the size of the image on the C axisint
getSizeT()
Gets the size of the image on the T axisint
getSizeX()
Gets the size of the image on the X axisint
getSizeY()
Gets the size of the image on the Y axisint
getSizeZ()
Gets the size of the image on the Z axis-
Methods inherited from class fr.igred.omero.GenericObjectWrapper
canAnnotate, canChgrp, canChown, canDelete, canEdit, canLink, delete, distinct, getCreated, getGroupId, getId, getOwner, saveAndUpdate, toString, wrap, wrap
-
-
-
-
Field Detail
-
MAX_DIST
public static final int MAX_DIST
Size of tiles when retrieving pixels- See Also:
- Constant Field Values
-
-
Constructor Detail
-
PixelsWrapper
public PixelsWrapper(PixelsData pixels)
Constructor of the PixelsWrapper class- Parameters:
pixels
- PixelData to be contained.
-
-
Method Detail
-
getPixelType
public String getPixelType()
Gets the pixel type.- Returns:
- the pixel type.
-
getPixelSizeX
public Length getPixelSizeX()
Gets the size of a single image pixel on the X axis.- Returns:
- Size of a pixel on the X axis.
-
getPixelSizeY
public Length getPixelSizeY()
Gets the size of a single image pixel on the Y axis.- Returns:
- Size of a pixel on the Y axis.
-
getPixelSizeZ
public Length getPixelSizeZ()
Gets the size of a single image pixel on the Z axis.- Returns:
- Size of a pixel on the Z axis.
-
getSizeX
public int getSizeX()
Gets the size of the image on the X axis- Returns:
- Size of the image on the X axis.
-
getSizeY
public int getSizeY()
Gets the size of the image on the Y axis- Returns:
- Size of the image on the Y axis.
-
getSizeZ
public int getSizeZ()
Gets the size of the image on the Z axis- Returns:
- Size of the image on the Z axis.
-
getSizeC
public int getSizeC()
Gets the size of the image on the C axis- Returns:
- Size of the image on the C axis.
-
getSizeT
public int getSizeT()
Gets the size of the image on the T axis- Returns:
- Size of the image on the T axis.
-
getAllPixels
public double[][][][][] getAllPixels(Client client) throws AccessException, ExecutionException
Returns an array containing the value for each voxel- Parameters:
client
- The client handling the connection.- Returns:
- Array containing the value for each voxel of the image.
- Throws:
AccessException
- If an error occurs while retrieving the plane data from the pixels source.ExecutionException
- A Facility can't be retrieved or instantiated.
-
getAllPixels
public double[][][][][] getAllPixels(Client client, int[] xBound, int[] yBound, int[] cBound, int[] zBound, int[] tBound) throws AccessException, ExecutionException
Returns an array containing the value for each voxel corresponding to the bounds- Parameters:
client
- The client handling the connection.xBound
- Array containing the X bound from which the pixels should be retrieved.yBound
- Array containing the Y bound from which the pixels should be retrieved.cBound
- Array containing the C bound from which the pixels should be retrieved.zBound
- Array containing the Z bound from which the pixels should be retrieved.tBound
- Array containing the T bound from which the pixels should be retrieved.- Returns:
- Array containing the value for each voxel of the image.
- Throws:
AccessException
- If an error occurs while retrieving the plane data from the pixels source.ExecutionException
- A Facility can't be retrieved or instantiated.
-
getRawPixels
public byte[][][][] getRawPixels(Client client, int bpp) throws AccessException, ExecutionException
Returns an array containing the raw values for each voxel for each planes- Parameters:
client
- The client handling the connection.bpp
- Bytes per pixels of the image.- Returns:
- a table of bytes containing the pixel values
- Throws:
AccessException
- If an error occurs while retrieving the plane data from the pixels source.ExecutionException
- A Facility can't be retrieved or instantiated.
-
getRawPixels
public byte[][][][] getRawPixels(Client client, int[] xBound, int[] yBound, int[] cBound, int[] zBound, int[] tBound, int bpp) throws ExecutionException, AccessException
Returns an array containing the raw values for each voxel for each plane corresponding to the bounds- Parameters:
client
- The client handling the connection.xBound
- Array containing the X bound from which the pixels should be retrieved.yBound
- Array containing the Y bound from which the pixels should be retrieved.cBound
- Array containing the C bound from which the pixels should be retrieved.zBound
- Array containing the Z bound from which the pixels should be retrieved.tBound
- Array containing the T bound from which the pixels should be retrieved.bpp
- Bytes per pixels of the image.- Returns:
- a table of bytes containing the pixel values
- Throws:
AccessException
- If an error occurs while retrieving the plane data from the pixels source.ExecutionException
- A Facility can't be retrieved or instantiated.
-
-