Class ROI
java.lang.Object
loci.formats.in.LeicaMicrosystemsMetadata.ROI
This class helps saving ROI information to a reader's MetadataStore
- Author:
- Melissa Linkert melissa at glencoesoftware.com, Constanze Wendlandt constanze.wendlandt at leica-microsystems.com
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intlongstatic final intintstatic final longprivate booleanstatic final intstatic final intdoublestatic final intdoubledoublestatic final intdoubledoubleint -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate voidVertices and transformation values are not stored in pixel coordinates.voidstoreROI(MetadataStore store, int series, int roi, int roiIndex, int sizeX, int sizeY, boolean alternateCenter, MetadataLevel level)
-
Field Details
-
TEXT
public static final int TEXT- See Also:
-
SCALE_BAR
public static final int SCALE_BAR- See Also:
-
POLYGON
public static final int POLYGON- See Also:
-
RECTANGLE
public static final int RECTANGLE- See Also:
-
LINE
public static final int LINE- See Also:
-
ARROW
public static final int ARROW- See Also:
-
METER_MULTIPLY
public static final long METER_MULTIPLY- See Also:
-
type
public int type -
x
-
y
-
transX
public double transX -
transY
public double transY -
scaleX
public double scaleX -
scaleY
public double scaleY -
rotation
public double rotation -
color
public long color -
linewidth
public int linewidth -
text
-
fontName
-
fontSize
-
name
-
normalized
private boolean normalized
-
-
Constructor Details
-
ROI
ROI()
-
-
Method Details
-
storeROI
public void storeROI(MetadataStore store, int series, int roi, int roiIndex, int sizeX, int sizeY, boolean alternateCenter, MetadataLevel level) -
normalize
private void normalize()Vertices and transformation values are not stored in pixel coordinates. We need to convert them from physical coordinates to pixel coordinates so that they can be stored in a MetadataStore.
-