public class PixelsData extends DataObject
Modifier and Type | Field and 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 the
PixelsI.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 and Description |
---|
PixelsData()
Creates a new instance.
|
PixelsData(omero.model.Pixels pixels)
Creates a new instance.
|
Modifier and Type | Method and 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-axis
|
void |
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-axis
|
void |
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.
|
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
public static final java.lang.String IMAGE
PixelsI.IMAGE
field.public static final java.lang.String INT8_TYPE
int8
string identifier.public static final java.lang.String INT16_TYPE
int16
string identifier.public static final java.lang.String INT32_TYPE
"int32
string identifier.public static final java.lang.String UINT8_TYPE
uint8
string identifier.public static final java.lang.String UINT16_TYPE
uint16
string identifier.public static final java.lang.String UINT32_TYPE
uint32
string identifier.public static final java.lang.String FLOAT_TYPE
float
string identifier.public static final java.lang.String DOUBLE_TYPE
double
string identifier.public static final java.lang.String COMPLEX_TYPE
complex
string identifier.public static final java.lang.String DOUBLE_COMPLEX_TYPE
double-complex
string identifier.public PixelsData()
public PixelsData(omero.model.Pixels pixels)
pixels
- Back pointer to the Pixels
model object. Mustn't be
null
.java.lang.IllegalArgumentException
- If the object is null
.public void setSizeX(int sizeX)
sizeX
- The number of pixels along the X-axis.public int getSizeX()
public void setSizeY(int sizeY)
sizeY
- The number of pixels along the Y-axis.public int getSizeY()
public void setSizeZ(int sizeZ)
sizeZ
- The number of pixels along the Z-axis.public int getSizeZ()
public void setSizeC(int sizeC)
sizeC
- The number of channels.public int getSizeC()
public void setSizeT(int sizeT)
sizeT
- The number of time-points.public int getSizeT()
public void setPixelSizeX(omero.model.Length pixelSizeX)
pixelSizeX
- The dimension of a pixel along the X-axis.public omero.model.Length getPixelSizeX(omero.model.enums.UnitsLength unit) throws ome.model.units.BigResult
unit
- The unit (may be null, in which case no conversion will be
performed)ome.model.units.BigResult
- If an arithmetic under-/overflow occurredpublic void setPixelSizeY(omero.model.Length pixelSizeY)
pixelSizeY
- The dimension of a pixel along the Y-axis.public omero.model.Length getPixelSizeY(omero.model.enums.UnitsLength unit) throws ome.model.units.BigResult
unit
- The unit (may be null, in which case no conversion will be
performed)ome.model.units.BigResult
- If an arithmetic under-/overflow occurredpublic void setPixelSizeZ(omero.model.Length pixelSizeZ)
pixelSizeZ
- The dimension of a pixel along the Z-axis.public omero.model.Length getPixelSizeZ(omero.model.enums.UnitsLength unit) throws ome.model.units.BigResult
unit
- The unit (may be null, in which case no conversion will be
performed)ome.model.units.BigResult
- If an arithmetic under-/overflow occurredpublic java.lang.String getPixelType()
public ImageData getImage()
public void setImage(ImageData image)
image
- The linked image.