Документ взят из кэша поисковой машины. Адрес оригинального документа : http://www.astro.louisville.edu/software/astroimagej/imagej/api/ij/io/RoiDecoder.html
Дата изменения: Thu Dec 2 23:03:10 2010
Дата индексирования: Mon Oct 1 21:45:06 2012
Кодировка:

Поисковые слова: zodiacal light
RoiDecoder (ImageJ API)

ij.io
Class RoiDecoder

java.lang.Object
  extended by ij.io.RoiDecoder

public class RoiDecoder
extends java.lang.Object

Decodes an ImageJ, NIH Image or Scion Image ROI file.


Field Summary
static int ARROW
           
static int ARROW_HEAD_SIZE
           
static int ARROW_STYLE
           
static int BOTTOM
           
static int COORDINATES
           
static int DOUBLE_HEADED
           
static int FILL_COLOR
           
static int LEFT
           
static int N_COORDINATES
           
static int OPTIONS
           
static int RIGHT
           
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 SUBTYPE
           
static int TEXT
           
static int TOP
           
static int TYPE
           
static int VERSION_OFFSET
           
static int X1
           
static int X2
           
static int Y1
           
static int Y2
           
 
Constructor Summary
RoiDecoder(byte[] bytes, java.lang.String name)
          Constructs an RoiDecoder using a byte array.
RoiDecoder(java.lang.String path)
          Constructs an RoiDecoder using a file path.
 
Method Summary
 Roi getRoi()
          Returns the ROI.
 Roi getShapeRoi()
           
static Roi openFromByteArray(byte[] bytes)
          Opens an ROI from a byte array.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

VERSION_OFFSET

public static final int VERSION_OFFSET
See Also:
Constant Field Values

TYPE

public static final int TYPE
See Also:
Constant Field Values

TOP

public static final int TOP
See Also:
Constant Field Values

LEFT

public static final int LEFT
See Also:
Constant Field Values

BOTTOM

public static final int BOTTOM
See Also:
Constant Field Values

RIGHT

public static final int RIGHT
See Also:
Constant Field Values

N_COORDINATES

public static final int N_COORDINATES
See Also:
Constant Field Values

X1

public static final int X1
See Also:
Constant Field Values

Y1

public static final int Y1
See Also:
Constant Field Values

X2

public static final int X2
See Also:
Constant Field Values

Y2

public static final int Y2
See Also:
Constant Field Values

STROKE_WIDTH

public static final int STROKE_WIDTH
See Also:
Constant Field Values

SHAPE_ROI_SIZE

public static final int SHAPE_ROI_SIZE
See Also:
Constant Field Values

STROKE_COLOR

public static final int STROKE_COLOR
See Also:
Constant Field Values

FILL_COLOR

public static final int FILL_COLOR
See Also:
Constant Field Values

SUBTYPE

public static final int SUBTYPE
See Also:
Constant Field Values

OPTIONS

public static final int OPTIONS
See Also:
Constant Field Values

ARROW_STYLE

public static final int ARROW_STYLE
See Also:
Constant Field Values

ARROW_HEAD_SIZE

public static final int ARROW_HEAD_SIZE
See Also:
Constant Field Values

ROUNDED_RECT_ARC_SIZE

public static final int ROUNDED_RECT_ARC_SIZE
See Also:
Constant Field Values

COORDINATES

public static final int COORDINATES
See Also:
Constant Field Values

TEXT

public static final int TEXT
See Also:
Constant Field Values

ARROW

public static final int ARROW
See Also:
Constant Field Values

SPLINE_FIT

public static final int SPLINE_FIT
See Also:
Constant Field Values

DOUBLE_HEADED

public static final int DOUBLE_HEADED
See Also:
Constant Field Values
Constructor Detail

RoiDecoder

public RoiDecoder(java.lang.String path)
Constructs an RoiDecoder using a file path.


RoiDecoder

public RoiDecoder(byte[] bytes,
                  java.lang.String name)
Constructs an RoiDecoder using a byte array.

Method Detail

getRoi

public Roi getRoi()
           throws java.io.IOException
Returns the ROI.

Throws:
java.io.IOException

getShapeRoi

public Roi getShapeRoi()
                throws java.io.IOException
Throws:
java.io.IOException

openFromByteArray

public static Roi openFromByteArray(byte[] bytes)
Opens an ROI from a byte array.