|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectpojos.DataObject
pojos.ShapeData
pojos.MaskData
public class MaskData
Represents an Mask in the Euclidean space R2.
Field Summary |
---|
Fields inherited from class pojos.ShapeData |
---|
READONLY_FLAG, settings |
Constructor Summary | |
---|---|
MaskData()
Creates a new instance of MaskData. |
|
MaskData(double x,
double y,
double width,
double height,
byte[] mask)
Creates a new instance of the MaskData. |
|
MaskData(omero.model.Shape shape)
Creates a new instance. |
Method Summary | |
---|---|
byte |
getBit(byte[] data,
int bit)
Sets the bit value in a byte array at position bit to be the value value. |
double |
getHeight()
Returns the height of the mask. |
byte[] |
getMask()
Returns the mask as a byte array. |
int[][] |
getMaskAsBinaryArray()
Returns the mask image. |
BufferedImage |
getMaskAsBufferedImage()
Returns the mask image. |
String |
getText()
Returns the text of the shape. |
double |
getWidth()
Returns the width of the mask. |
double |
getX()
Returns the x-coordinate of the top-left corner of the mask. |
double |
getY()
Returns the y-coordinate of the top-left corner of the mask. |
void |
setBit(byte[] data,
int bit,
int val)
Sets the bit value in a byte array at position bit to be the value value. |
void |
setHeight(double height)
Sets the height of an untransformed mask. |
void |
setMask(BufferedImage image)
Sets the mask from the bufferedImage. |
void |
setMask(byte[] mask)
Sets the mask image. |
void |
setText(String text)
Sets the text of the shape. |
void |
setWidth(double width)
Sets the width of an untransformed mask. |
void |
setX(double x)
Sets the x-coordinate top-left corner of an untransformed mask. |
void |
setY(double y)
Sets the y-coordinate top-left corner of an untransformed mask. |
Methods inherited from class pojos.ShapeData |
---|
fromPoints, getC, getROICoordinate, getShapeSettings, getT, getTransform, getZ, isClientObject, isReadOnly, parsePointsToIntegerList, parsePointsToPoint2DList, setC, setClientObject, setDirty, setReadOnly, setROICoordinate, setShapeSettings, setT, setTransform, setZ, toNumber, toPoints |
Methods inherited from class pojos.DataObject |
---|
asAnnotation, asChannel, asDataset, asExperimenter, asGroup, asIAnnotated, asImage, asIObject, asPixels, asPlate, asPojo, asPojos, asPojos, asProject, asScreen, asWell, asWellSample, getCreated, getDetails, getId, getOwner, getPermissions, getUpdated, getVersion, isDirty, isLoaded, nullDetails, nullSafe, nullSafe, nullSafe, nullSafe, nullSafe, nullSafe, nullSafe, setId, setValue, setVersion, timeOfEvent, toString |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public MaskData(omero.model.Shape shape)
shape
- The shape this object represents.public MaskData()
public MaskData(double x, double y, double width, double height, byte[] mask)
x
- The x-coordinate of the top-left corner of the image.y
- The y-coordinate of the top-left corner of the image.widht
- The width of the image.height
- The height of the image.mask
- The mask image.Method Detail |
---|
public String getText()
public void setText(String text)
text
- See above.public double getX()
public void setX(double x)
x
- The value to set.public double getY()
public void setY(double y)
y
- See above.public double getWidth()
public void setWidth(double width)
width
- See above.public double getHeight()
public void setHeight(double height)
height
- See above.public void setMask(byte[] mask)
mask
- See above.public void setMask(BufferedImage image)
image
- See above.public BufferedImage getMaskAsBufferedImage()
public int[][] getMaskAsBinaryArray()
public byte[] getMask()
public void setBit(byte[] data, int bit, int val)
data
- See above.bit
- See above.val
- See above.public byte getBit(byte[] data, int bit)
data
- See above.bit
- See above.val
- See above.
|
||||||||||
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.