|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.ObjectCADI.Common.LogicalTarget.JPEG2000.CalculateRequiredComponentsDPCM
public class CalculateRequiredComponentsDPCM
This class is useful to calculate which are the necessary components to invert a DPCM transform.
| Field Summary | |
|---|---|
static int |
CLASSIC
Is the classical DPCM, where each component (apart from first one) is obtained as a difference from the previous one. |
private int[] |
compsArray
Is an one-dimensional array with the inital components values. |
private int |
maxNumComps
Is the maximum number of components. |
private int[] |
requiredCompsArray
Contains the required components which will be necessary to invert the compsArray components. |
static int |
RESTART_ARBITRARY
Is a clustered DPCM where the indexes for the restart can take each value from the value ranges, with and without regular recurrence. |
static int |
RESTART_PERIODIC
Is a clustered DPCM where the restart index is fixed. |
private int |
restartIndex
Is the component index used in the RESTART_PERIODIC mode. |
private int[] |
restartIndexes
Is a one-dimensional array with component indexes for the 3 mode. |
private int |
type
Indicates the type of DPCM. |
| Constructor Summary | |
|---|---|
CalculateRequiredComponentsDPCM(int[][] comps,
int maxNumComps)
Constructor. |
|
CalculateRequiredComponentsDPCM(int[] compsArray,
int maxNumComps)
Constructor. |
|
| Method Summary | |
|---|---|
private int[] |
calculateRequiredComponentsWithRestartFixed()
Calculates which are the necessary components to invert a DPCM transform using fixed restart components. |
private int[] |
calculateRequiredComponentsWithRestartPeriodical()
Calculates which are the necessary components to inver a DPCM transform using periodical components. |
int[][] |
getRequiredComps()
Returns the requiredCompsArray as a range of components. |
int[] |
getRequiredCompsArray()
Returns the requiredCompsArray attribute. |
void |
list(java.io.PrintStream out)
Prints this Client Capabilities and Preferences fields out to the specified output stream. |
void |
run()
Performs the calculus of the required components. |
void |
setClassical()
Sets the DPCM type to classic. |
void |
setRestartArbitrary(int[] restartIndexes)
Sets the DPCM type to the restart fixed mode. |
void |
setRestartPeriodic(int restartIndex)
Sets the DPCM type to the restart periodical mode. |
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 type
CLASSIC,
RESTART_PERIODIC, and RESTART_ARBITRARY.
public static final int CLASSIC
public static final int RESTART_PERIODIC
public static final int RESTART_ARBITRARY
private int[] compsArray
private int maxNumComps
private int restartIndex
RESTART_PERIODIC mode.
private int[] restartIndexes
private int[] requiredCompsArray
compsArray components.
| Constructor Detail |
|---|
public CalculateRequiredComponentsDPCM(int[] compsArray,
int maxNumComps)
compsArray - definition compsArray.maxNumComps - definition in maxNumComps.
public CalculateRequiredComponentsDPCM(int[][] comps,
int maxNumComps)
comps - definition in ViewWindowField.comps.maxNumComps - definition in maxNumComps.| Method Detail |
|---|
public void setClassical()
CLASSIC.
public void setRestartPeriodic(int restartIndex)
RESTART_PERIODIC.
restartIndex - definition in restartIndex.public void setRestartArbitrary(int[] restartIndexes)
RESTART_ARBITRARY.
restartIndexes - defintion in restartIndexes.
public void run()
throws java.lang.IllegalAccessException
java.lang.IllegalAccessExceptionpublic int[] getRequiredCompsArray()
requiredCompsArray attribute.
requiredCompsArray attribute.public int[][] getRequiredComps()
requiredCompsArray as a range of components.
requiredCompsArray as a range of components.public java.lang.String toString()
toString in class java.lang.Objectpublic void list(java.io.PrintStream out)
out - an output stream.private int[] calculateRequiredComponentsWithRestartPeriodical()
private int[] calculateRequiredComponentsWithRestartFixed()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||