public class ROIConverters extends Object
Modifier and Type | Field and Description |
---|---|
static String |
CLOSED_BOUNDARY_TEXT
String identifiers for boundary imagej boundary behaviors
|
static String |
IJO_VERSION_DESC
Description value of imagej-omero version tags
|
static String |
OPEN_BOUNDARY_TEXT |
static String |
UNSPECIFIED_BOUNDARY_TEXT |
Constructor and Description |
---|
ROIConverters() |
Modifier and Type | Method and Description |
---|---|
static <S extends ShapeData> |
boundaryType(S shape,
OMEROSession session,
LogService log)
Gets the boundary behavior of this shape.
|
static AffineGet |
createAffine(AffineTransform transformFromSource)
Converts an OMERO
AffineTransform to an
ImgLib2 AffineTransform2D . |
static AffineTransform |
createAffine(AffineTransform2D transformToSource)
Converts an ImgLib2
AffineTransform2D to an OMERO
AffineTransform . |
static String |
createBoundaryTypeString(BoundaryType bt) |
static boolean |
shapeDataEquals(ShapeData shapeOne,
ShapeData shapeTwo)
Checks if the two given
ShapeData objects are equivalent. |
static void |
synchronizeShapeData(ShapeData updatedShape,
ShapeData oldShape)
Synchronizes
oldShape to be equivalent to updatedShape ,
with the exception of ID. |
static void |
synchronizeShapeSettings(ShapeSettingsData updatedSettings,
ShapeSettingsData oldSettings)
Updates the
oldSettings to be equivalent to
updatedSettings . |
public static final String CLOSED_BOUNDARY_TEXT
public static final String OPEN_BOUNDARY_TEXT
public static final String UNSPECIFIED_BOUNDARY_TEXT
public static final String IJO_VERSION_DESC
public static <S extends ShapeData> BoundaryType boundaryType(S shape, OMEROSession session, LogService log)
CLOSED
boundary behavior.shape
- OMERO shape which will be checked for a boundaryType
annotationshape
was previously converted to an ImageJ mask, then
its previous boundary behavior is returned otherwise CLOSED
is returned.public static AffineGet createAffine(AffineTransform transformFromSource)
AffineTransform
to an
ImgLib2 AffineTransform2D
.transformFromSource
- the OMERO AffineTransform to be convertedpublic static AffineTransform createAffine(AffineTransform2D transformToSource)
AffineTransform2D
to an OMERO
AffineTransform
.transformToSource
- an AffineTransform2D to be convertedpublic static String createBoundaryTypeString(BoundaryType bt)
public static boolean shapeDataEquals(ShapeData shapeOne, ShapeData shapeTwo)
ShapeData
objects are equivalent. This
means they are the same shape, have the same shape characteristics, have
the same text, and are one the same ZTC plane.shapeOne
- first shape to compare withshapeTwo
- second shape to compare withpublic static void synchronizeShapeSettings(ShapeSettingsData updatedSettings, ShapeSettingsData oldSettings)
oldSettings
to be equivalent to
updatedSettings
.updatedSettings
- ShapeSettingsData
to transferoldSettings
- ShapeSettingsData
to updateCopyright © 2014–2022 ImageJ. All rights reserved.