|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.ObjectTER.TERdecoder.BPEDecoder.RefineGenerationAC
public class RefineGenerationAC
Field Summary | |
---|---|
(package private) byte[][][][] |
blockStatus
Definition in CodeBlockAC.blockStatus |
(package private) int[] |
BP
|
(package private) int |
channel
|
(package private) ACEntropyDecoder |
entropyDecoder
|
(package private) float |
gamma
|
(package private) int |
generation
|
(package private) boolean |
minusHalf
|
(package private) boolean |
parametersSet
To know if parameters are set. |
(package private) float[][][] |
recoveredImage
|
(package private) int |
threshold
|
(package private) int |
WTLevels
|
(package private) int[] |
xInit
|
(package private) int[] |
yInit
|
Constructor Summary | |
---|---|
RefineGenerationAC(float[][][] recoveredImage)
|
Method Summary | |
---|---|
byte[][][][] |
getBlockStatus()
|
private float |
getGamma(int bitPlane,
boolean lastBitPlane)
Get the value to be added or substracted to get the desired approximation of the refined value |
float[][][] |
getRecoveredImage()
|
private boolean |
lastBitPlane(int bitPlane,
int rLevel,
int subband)
Indicates if a bitplane if the last for a given bit plane |
void |
run(int bitplane)
Decode as many generations as the user indicates in the parameters |
void |
setParameters(ACEntropyDecoder entropyDecoder,
byte[][][][] blockStatus,
int WTLevels,
int resolutionLevel,
int[] BP,
int[] xInit,
int[] yInit,
int channel,
float gamma,
boolean minusHalf)
|
private void |
setRefinedValue(int family,
int y,
int x,
int refinementBit,
float gammaT,
float previousGammaT)
|
private void |
setThreshold(int bitplane)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
ACEntropyDecoder entropyDecoder
float[][][] recoveredImage
boolean parametersSet
True indicates that they are set otherwise false.
byte[][][][] blockStatus
CodeBlockAC.blockStatus
int[] xInit
int[] yInit
int channel
int generation
int WTLevels
int[] BP
int threshold
float gamma
boolean minusHalf
Constructor Detail |
---|
public RefineGenerationAC(float[][][] recoveredImage)
Method Detail |
---|
public void setParameters(ACEntropyDecoder entropyDecoder, byte[][][][] blockStatus, int WTLevels, int resolutionLevel, int[] BP, int[] xInit, int[] yInit, int channel, float gamma, boolean minusHalf)
public void run(int bitplane) throws java.lang.Exception
bitplane
- indicates the bit plane that must be refined
java.lang.Exception
- when something goes wrong and the AC decoding must be stopedprivate void setThreshold(int bitplane)
private void setRefinedValue(int family, int y, int x, int refinementBit, float gammaT, float previousGammaT)
private float getGamma(int bitPlane, boolean lastBitPlane)
bitPlane
- indicates the bit plane that must be refinedlastBitPlane
- indicates if this bit plane is the last to be refined
private boolean lastBitPlane(int bitPlane, int rLevel, int subband)
bitPlane
- indicates the bit plane that is being refinedrLevel
- indicates the resolution level that is being refinedsubband
- indicates the family that is being refined
public float[][][] getRecoveredImage()
public byte[][][][] getBlockStatus()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |