|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.ObjectCADI.Server.LogicalTarget.JPEG2000.Codestream.TagTreeEncoder
public class TagTreeEncoder
This class codifies a matrix using a Tag Tree structure. Usage example:
construct
encoder
| Field Summary | |
|---|---|
private int |
cols
Number of columns Negative values are not allowed |
private int |
levels
Number of levels Negative values are not allowed |
private int |
rows
Number of rows Negative values are not allowed |
private int[][][] |
states
Tag Tree States. |
private int[][][] |
tagTree
Tag Tree values. |
| Constructor Summary | |
|---|---|
TagTreeEncoder(int[][] matrix)
Constructor with a matrix. |
|
TagTreeEncoder(int rows,
int cols)
Constructor with an empty matrix. |
|
| Method Summary | |
|---|---|
void |
encoder(PacketHeaderDataOutputStream packetHeaderDataOutputStream,
int t,
int m,
int n)
Encode a value of the matrix. |
void |
list(java.io.PrintStream out)
Prints this Tag Tree out to the specified output stream. |
void |
reset()
Sets attributes to its initial values; |
java.lang.String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
private int levels
Negative values are not allowed
private int rows
Negative values are not allowed
private int cols
Negative values are not allowed
private int[][][] tagTree
Negative values are not allowed
private int[][][] states
Negative values are not allowed
| Constructor Detail |
|---|
public TagTreeEncoder(int rows,
int cols)
throws ErrorException
rows - matrix rowscols - matrix columns
ErrorException - when rows or cols are negative
public TagTreeEncoder(int[][] matrix)
throws ErrorException
matrix - matrix to code
ErrorException - when rows or cols are negative| Method Detail |
|---|
public void encoder(PacketHeaderDataOutputStream packetHeaderDataOutputStream,
int t,
int m,
int n)
throws ErrorException,
java.io.IOException
packetHeaderDataOutputStream - data output stream.t - thresholdm - row of the value to be codedn - column of the value to be coded
ErrorException - when invalid dimensions are passed
java.io.IOExceptionpublic void reset()
public java.lang.String toString()
toString in class java.lang.Objectpublic void list(java.io.PrintStream out)
out - an output stream.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||