public class RoiDecoder extends Object
Modifier and Type | Field and Description |
---|---|
static int |
ARROW |
static int |
ARROW_HEAD_SIZE |
static int |
ARROW_STYLE |
static int |
AVAILABLE_BYTE1 |
static int |
BOTTOM |
static int |
C_POSITION |
static int |
COORDINATES |
static int |
COUNTERS_OFFSET |
static int |
DOUBLE_HEADED |
static int |
DRAW_OFFSET |
static int |
ELLIPSE |
static int |
FILL_COLOR |
static int |
FLOAT_PARAM |
static int |
FLOAT_STROKE_WIDTH |
static int |
HEADER2_OFFSET |
static int |
HEIGHTD |
static int |
IMAGE |
static int |
IMAGE_OPACITY |
static int |
IMAGE_SIZE |
static int |
LEFT |
static int |
N_COORDINATES |
static int |
NAME_LENGTH |
static int |
NAME_OFFSET |
static int |
OPTIONS |
static int |
OUTLINE |
static int |
OVERLAY_BACKGROUNDS |
static int |
OVERLAY_BOLD |
static int |
OVERLAY_FONT_SIZE |
static int |
OVERLAY_LABEL_COLOR |
static int |
OVERLAY_LABELS |
static int |
OVERLAY_NAMES |
static int |
POINT_TYPE |
static int |
POSITION |
static int |
RIGHT |
static int |
ROI_PROPS_LENGTH |
static int |
ROI_PROPS_OFFSET |
static int |
ROTATED_RECT |
static int |
ROUNDED_RECT_ARC_SIZE |
static int |
SHAPE_ROI_SIZE |
static int |
SPLINE_FIT |
static int |
STROKE_COLOR |
static int |
STROKE_WIDTH |
static int |
SUB_PIXEL_RESOLUTION |
static int |
SUBTYPE |
static int |
T_POSITION |
static int |
TEXT |
static int |
TOP |
static int |
TYPE |
static int |
VERSION_OFFSET |
static int |
WIDTHD |
static int |
X1 |
static int |
X2 |
static int |
XD |
static int |
Y1 |
static int |
Y2 |
static int |
YD |
static int |
Z_POSITION |
static int |
ZERO_TRANSPARENT |
Constructor and Description |
---|
RoiDecoder(byte[] bytes,
String name)
Constructs an RoiDecoder using a byte array.
|
RoiDecoder(String path)
Constructs an RoiDecoder using a file path.
|
Modifier and Type | Method and Description |
---|---|
Roi |
getRoi()
Returns the ROI.
|
Roi |
getShapeRoi() |
static Roi |
open(String path)
Opens the Roi at the specified path.
|
static Roi |
openFromByteArray(byte[] bytes)
Opens an ROI from a byte array.
|
public static final int VERSION_OFFSET
public static final int TYPE
public static final int TOP
public static final int LEFT
public static final int BOTTOM
public static final int RIGHT
public static final int N_COORDINATES
public static final int X1
public static final int Y1
public static final int X2
public static final int Y2
public static final int XD
public static final int YD
public static final int WIDTHD
public static final int HEIGHTD
public static final int STROKE_WIDTH
public static final int SHAPE_ROI_SIZE
public static final int STROKE_COLOR
public static final int FILL_COLOR
public static final int SUBTYPE
public static final int OPTIONS
public static final int ARROW_STYLE
public static final int FLOAT_PARAM
public static final int POINT_TYPE
public static final int ARROW_HEAD_SIZE
public static final int ROUNDED_RECT_ARC_SIZE
public static final int POSITION
public static final int HEADER2_OFFSET
public static final int COORDINATES
public static final int C_POSITION
public static final int Z_POSITION
public static final int T_POSITION
public static final int NAME_OFFSET
public static final int NAME_LENGTH
public static final int OVERLAY_LABEL_COLOR
public static final int OVERLAY_FONT_SIZE
public static final int AVAILABLE_BYTE1
public static final int IMAGE_OPACITY
public static final int IMAGE_SIZE
public static final int FLOAT_STROKE_WIDTH
public static final int ROI_PROPS_OFFSET
public static final int ROI_PROPS_LENGTH
public static final int COUNTERS_OFFSET
public static final int TEXT
public static final int ARROW
public static final int ELLIPSE
public static final int IMAGE
public static final int ROTATED_RECT
public static final int SPLINE_FIT
public static final int DOUBLE_HEADED
public static final int OUTLINE
public static final int OVERLAY_LABELS
public static final int OVERLAY_NAMES
public static final int OVERLAY_BACKGROUNDS
public static final int OVERLAY_BOLD
public static final int SUB_PIXEL_RESOLUTION
public static final int DRAW_OFFSET
public static final int ZERO_TRANSPARENT
public RoiDecoder(String path)
public RoiDecoder(byte[] bytes, String name)
public static Roi open(String path)
public Roi getRoi() throws IOException
IOException
public Roi getShapeRoi() throws IOException
IOException
public static Roi openFromByteArray(byte[] bytes)