Package fr.igred.omero.roi
Interface Mask
-
- All Superinterfaces:
Annotatable
,Rectangular
,RemoteObject
,Shape
- All Known Implementing Classes:
MaskWrapper
public interface Mask extends Shape, Rectangular
Interface to handle Mask shapes on OMERO.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description MaskData
asDataObject()
Returns anMaskData
corresponding to the handled object.byte[]
getMask()
Returns the mask as a byte array.int[][]
getMaskAsBinaryArray()
Returns the mask image.void
setMask(boolean[][] mask)
Sets the maskvoid
setMask(byte[] mask)
Sets the mask image.void
setMask(int[][] mask)
Sets the maskdefault java.awt.Shape
toAWTShape()
Converts the shape to anShape
.-
Methods inherited from interface fr.igred.omero.Annotatable
addAndReplaceFile, addAndReplaceFile, addAndReplaceTable, addAndReplaceTable, addFile, addKeyValuePair, addTable, addTag, addTag, addTags, copyAnnotationLinks, getAnnotationData, getAnnotations, getFileAnnotations, getKeyValuePairs, getMapAnnotations, getMyRating, getTable, getTables, getTags, getValues, isLinked, link, link, linkIfNotLinked, rate, unlink
-
Methods inherited from interface fr.igred.omero.roi.Rectangular
getCoordinates, getHeight, getWidth, getX, getY, setCoordinates, setCoordinates, setHeight, setWidth, setX, setY
-
Methods inherited from interface fr.igred.omero.RemoteObject
canAnnotate, canChgrp, canChown, canDelete, canEdit, canLink, getCreated, getGroupId, getId, getOwner, saveAndUpdate
-
Methods inherited from interface fr.igred.omero.roi.Shape
createTransformedAWTShape, getBoundingBox, getC, getCZT, getFill, getFontSize, getStroke, getT, getText, getZ, link, setC, setCZT, setFill, setFontSize, setStroke, setT, setText, setTransform, setTransform, setZ, toAWTTransform, toImageJ
-
-
-
-
Method Detail
-
asDataObject
MaskData asDataObject()
Returns anMaskData
corresponding to the handled object.- Specified by:
asDataObject
in interfaceRemoteObject
- Specified by:
asDataObject
in interfaceShape
- Returns:
- See above.
-
toAWTShape
default java.awt.Shape toAWTShape()
Converts the shape to anShape
.- Specified by:
toAWTShape
in interfaceShape
- Returns:
- The converted AWT Shape.
-
getMaskAsBinaryArray
int[][] getMaskAsBinaryArray()
Returns the mask image.- Returns:
- See above.
-
getMask
byte[] getMask()
Returns the mask as a byte array.- Returns:
- See above.
-
setMask
void setMask(byte[] mask)
Sets the mask image.- Parameters:
mask
- See above.
-
setMask
void setMask(int[][] mask)
Sets the mask- Parameters:
mask
- The binary mask (int[width][height])
-
setMask
void setMask(boolean[][] mask)
Sets the mask- Parameters:
mask
- The binary mask (boolean[width][height])
-
-