Package omero.gateway.model
Class PixelsData
- java.lang.Object
-
- omero.gateway.model.DataObject
-
- omero.gateway.model.PixelsData
-
public class PixelsData extends DataObject
The data that makes up an OME Pixels object along with a back pointer to the Image that owns this Pixels. A Pixels object represents a 5D raw data array that stores the Image pixels.- Since:
- OME2.2
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.String
COMPLEX_TYPE
Identifies the type used to store pixel values.static java.lang.String
DOUBLE_COMPLEX_TYPE
Identifies the type used to store pixel values.static java.lang.String
DOUBLE_TYPE
Identifies the type used to store pixel values.static java.lang.String
FLOAT_TYPE
Identifies the type used to store pixel values.static java.lang.String
IMAGE
Identifies thePixelsI.IMAGE
field.static java.lang.String
INT16_TYPE
Identifies the type used to store pixel values.static java.lang.String
INT32_TYPE
Identifies the type used to store pixel values.static java.lang.String
INT8_TYPE
Identifies the type used to store pixel values.static java.lang.String
UINT16_TYPE
Identifies the type used to store pixel values.static java.lang.String
UINT32_TYPE
Identifies the type used to store pixel values.static java.lang.String
UINT8_TYPE
Identifies the type used to store pixel values.
-
Constructor Summary
Constructors Constructor Description PixelsData()
Creates a new instance.PixelsData(omero.model.Pixels pixels)
Creates a new instance.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ImageData
getImage()
Returns the image linked to this pixels' set.omero.model.Length
getPixelSizeX(omero.model.enums.UnitsLength unit)
Returns the dimension of a pixel along the X-axis.omero.model.Length
getPixelSizeY(omero.model.enums.UnitsLength unit)
Returns the dimension of a pixel along the Y-axis.omero.model.Length
getPixelSizeZ(omero.model.enums.UnitsLength unit)
Returns the dimension of a pixel along the Z-axis Note: Do not use the returned Length object to modify the pixel size, use the setPixelSizeZ method instead.java.lang.String
getPixelType()
Returns the pixels type.int
getSizeC()
Returns the number of channels.int
getSizeT()
Returns the number of time-points.int
getSizeX()
Returns the number of pixels along the X-axis.int
getSizeY()
Returns the number of pixels along the Y-axis.int
getSizeZ()
Returns the number of pixels along the Z-axis.void
setImage(ImageData image)
Sets the image linked to this pixels' set.void
setPixelSizeX(omero.model.Length pixelSizeX)
Sets the dimension of a pixel along the X-axisvoid
setPixelSizeY(omero.model.Length pixelSizeY)
Sets the dimension of a pixel along the Y-axis.void
setPixelSizeZ(omero.model.Length pixelSizeZ)
Sets the dimension of a pixel along the Z-axisvoid
setSizeC(int sizeC)
Sets the number of channels.void
setSizeT(int sizeT)
Sets the number of time-points.void
setSizeX(int sizeX)
Sets the number of pixels along the X-axis.void
setSizeY(int sizeY)
Sets the number of pixels along the Y-axis.void
setSizeZ(int sizeZ)
Sets the number of pixels along the Z-axis.-
Methods inherited from class omero.gateway.model.DataObject
asAnnotation, asChannel, asDataset, asExperimenter, asFolder, asGroup, asIAnnotated, asImage, asIObject, asPixels, asPlaneInfo, asPlate, asPojo, asPojos, asPojos, asProject, asScreen, asWell, asWellSample, canAnnotate, canChgrp, canChown, canDelete, canEdit, canLink, getCreated, getDetails, getGroupId, getId, getOwner, getPermissions, getUpdated, getVersion, isDirty, isLoaded, nullDetails, nullSafe, nullSafe, nullSafe, nullSafe, nullSafe, nullSafe, nullSafe, nullSafe, setDirty, setId, setValue, setVersion, timeOfEvent, toString
-
-
-
-
Field Detail
-
IMAGE
public static final java.lang.String IMAGE
Identifies thePixelsI.IMAGE
field.- See Also:
- Constant Field Values
-
INT8_TYPE
public static final java.lang.String INT8_TYPE
Identifies the type used to store pixel values. Maps onto the OMEint8
string identifier.- See Also:
- Constant Field Values
-
INT16_TYPE
public static final java.lang.String INT16_TYPE
Identifies the type used to store pixel values. Maps onto the OMEint16
string identifier.- See Also:
- Constant Field Values
-
INT32_TYPE
public static final java.lang.String INT32_TYPE
Identifies the type used to store pixel values. Maps onto the OME"int32
string identifier.- See Also:
- Constant Field Values
-
UINT8_TYPE
public static final java.lang.String UINT8_TYPE
Identifies the type used to store pixel values. Maps onto the OMEuint8
string identifier.- See Also:
- Constant Field Values
-
UINT16_TYPE
public static final java.lang.String UINT16_TYPE
Identifies the type used to store pixel values. Maps onto the OMEuint16
string identifier.- See Also:
- Constant Field Values
-
UINT32_TYPE
public static final java.lang.String UINT32_TYPE
Identifies the type used to store pixel values. Maps onto the OMEuint32
string identifier.- See Also:
- Constant Field Values
-
FLOAT_TYPE
public static final java.lang.String FLOAT_TYPE
Identifies the type used to store pixel values. Maps onto the OMEfloat
string identifier.- See Also:
- Constant Field Values
-
DOUBLE_TYPE
public static final java.lang.String DOUBLE_TYPE
Identifies the type used to store pixel values. Maps onto the OMEdouble
string identifier.- See Also:
- Constant Field Values
-
COMPLEX_TYPE
public static final java.lang.String COMPLEX_TYPE
Identifies the type used to store pixel values. Maps onto the OMEcomplex
string identifier.- See Also:
- Constant Field Values
-
DOUBLE_COMPLEX_TYPE
public static final java.lang.String DOUBLE_COMPLEX_TYPE
Identifies the type used to store pixel values. Maps onto the OMEdouble-complex
string identifier.- See Also:
- Constant Field Values
-
-
Constructor Detail
-
PixelsData
public PixelsData()
Creates a new instance.
-
PixelsData
public PixelsData(omero.model.Pixels pixels)
Creates a new instance.- Parameters:
pixels
- Back pointer to thePixels
model object. Mustn't benull
.- Throws:
java.lang.IllegalArgumentException
- If the object isnull
.
-
-
Method Detail
-
setSizeX
public void setSizeX(int sizeX)
Sets the number of pixels along the X-axis.- Parameters:
sizeX
- The number of pixels along the X-axis.
-
getSizeX
public int getSizeX()
Returns the number of pixels along the X-axis.- Returns:
- See above.
-
setSizeY
public void setSizeY(int sizeY)
Sets the number of pixels along the Y-axis.- Parameters:
sizeY
- The number of pixels along the Y-axis.
-
getSizeY
public int getSizeY()
Returns the number of pixels along the Y-axis.- Returns:
- See above.
-
setSizeZ
public void setSizeZ(int sizeZ)
Sets the number of pixels along the Z-axis.- Parameters:
sizeZ
- The number of pixels along the Z-axis.
-
getSizeZ
public int getSizeZ()
Returns the number of pixels along the Z-axis.- Returns:
- See above.
-
setSizeC
public void setSizeC(int sizeC)
Sets the number of channels.- Parameters:
sizeC
- The number of channels.
-
getSizeC
public int getSizeC()
Returns the number of channels.- Returns:
- See above.
-
setSizeT
public void setSizeT(int sizeT)
Sets the number of time-points.- Parameters:
sizeT
- The number of time-points.
-
getSizeT
public int getSizeT()
Returns the number of time-points.- Returns:
- See above.
-
setPixelSizeX
public void setPixelSizeX(omero.model.Length pixelSizeX)
Sets the dimension of a pixel along the X-axis- Parameters:
pixelSizeX
- The dimension of a pixel along the X-axis.
-
getPixelSizeX
public omero.model.Length getPixelSizeX(omero.model.enums.UnitsLength unit) throws ome.model.units.BigResult
Returns the dimension of a pixel along the X-axis. Note: Do not use the returned Length object to modify the pixel size, use the setPixelSizeX method instead.- Parameters:
unit
- The unit (may be null, in which case no conversion will be performed)- Returns:
- See above.
- Throws:
ome.model.units.BigResult
- If an arithmetic under-/overflow occurred
-
setPixelSizeY
public void setPixelSizeY(omero.model.Length pixelSizeY)
Sets the dimension of a pixel along the Y-axis.- Parameters:
pixelSizeY
- The dimension of a pixel along the Y-axis.
-
getPixelSizeY
public omero.model.Length getPixelSizeY(omero.model.enums.UnitsLength unit) throws ome.model.units.BigResult
Returns the dimension of a pixel along the Y-axis. Note: Do not use the returned Length object to modify the pixel size, use the setPixelSizeY method instead.- Parameters:
unit
- The unit (may be null, in which case no conversion will be performed)- Returns:
- See above.
- Throws:
ome.model.units.BigResult
- If an arithmetic under-/overflow occurred
-
setPixelSizeZ
public void setPixelSizeZ(omero.model.Length pixelSizeZ)
Sets the dimension of a pixel along the Z-axis- Parameters:
pixelSizeZ
- The dimension of a pixel along the Z-axis.
-
getPixelSizeZ
public omero.model.Length getPixelSizeZ(omero.model.enums.UnitsLength unit) throws ome.model.units.BigResult
Returns the dimension of a pixel along the Z-axis Note: Do not use the returned Length object to modify the pixel size, use the setPixelSizeZ method instead.- Parameters:
unit
- The unit (may be null, in which case no conversion will be performed)- Returns:
- See above.
- Throws:
ome.model.units.BigResult
- If an arithmetic under-/overflow occurred
-
getPixelType
public java.lang.String getPixelType()
Returns the pixels type.- Returns:
- See above.
-
getImage
public ImageData getImage()
Returns the image linked to this pixels' set.- Returns:
- See above.
-
setImage
public void setImage(ImageData image)
Sets the image linked to this pixels' set.- Parameters:
image
- The linked image.
-
-