public class MaskData extends ShapeData
READONLY_FLAG, settings| Constructor and Description |
|---|
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.
|
| Modifier and Type | Method and Description |
|---|---|
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.
|
fromPoints, getC, getROICoordinate, getShapeSettings, getT, getTransform, getZ, isClientObject, isReadOnly, parsePointsToIntegerList, parsePointsToPoint2DList, setC, setClientObject, setDirty, setReadOnly, setROICoordinate, setShapeSettings, setT, setTransform, setZ, toNumber, toPointsasAnnotation, asChannel, asDataset, asExperimenter, asFolder, asGroup, asIAnnotated, asImage, asIObject, asPixels, asPlate, asPojo, asPojos, asPojos, asProject, asScreen, asWell, asWellSample, canAnnotate, canDelete, canEdit, canLink, getCreated, getDetails, getGroupId, getId, getOwner, getPermissions, getUpdated, getVersion, isDirty, isLoaded, nullDetails, nullSafe, nullSafe, nullSafe, nullSafe, nullSafe, nullSafe, nullSafe, nullSafe, setId, setValue, setVersion, timeOfEvent, toStringpublic 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.width - The width of the image.height - The height of the image.mask - The mask image.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.
Version: 5.3.3-ice35-b63
Copyright © 2017 The University of Dundee & Open Microscopy Environment. All Rights Reserved.