|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.ObjectTER.TERdecoder.Weighting.InverseWeighting
public class InverseWeighting
This class receives an image and inverse weights the specified components.
Usage example:
construct
set functions
run
Field Summary | |
---|---|
(package private) float[][] |
customWeight
Definition in ForwardWeighting.customWeight |
(package private) int[] |
customWtFlag
Definition in ForwardWeighting.customWtFlag |
(package private) float[][][] |
imageSamples
Image samples (index meaning [z][y][x]). |
(package private) boolean |
parametersSet
To know if parameters are set. |
(package private) int[] |
WTLevels
Definition in ForwardWaveletTransform.WTLevels |
(package private) int[] |
WTType
Definition in ForwardWaveletTransform.WTTypes |
(package private) int |
xSize
Definition in Coder.xSize |
(package private) int |
ySize
Definition in Coder.ySize |
(package private) int |
zSize
Definition in Coder.zSize |
Constructor Summary | |
---|---|
InverseWeighting(float[][][] imageSamples)
Constructor that receives the recovered image samples. |
Method Summary | |
---|---|
float[][] |
getCustomWeight()
return parameter customWeight defined in ForwardWeighting.customWeight |
int[] |
getCustomWtFlag()
return parameter customWtFlag defined in ForwardWeighting.customWtFlag |
float |
getWeight(int subband,
int channel)
Finds the weight for a given subbands and channel |
float[][][] |
run()
Performs the inverse weighting desired to each component |
void |
setParameters(int[] customWtFlag,
int[] WTType,
int[] WTLevels,
float[][] customWeight)
Set the parameters used to do the inverse weighting operation |
static boolean |
setWeightingNeed(int[] customWtFlag,
int[] WTType,
int zSize)
States if weighting is defined in needed according to the user specifications |
boolean |
weightingRequired(int component)
For a given component indicates if weigthing must be applied |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
float[][][] imageSamples
All values allowed.
int zSize
Coder.zSize
int ySize
Coder.ySize
int xSize
Coder.xSize
int[] customWtFlag
ForwardWeighting.customWtFlag
float[][] customWeight
ForwardWeighting.customWeight
int[] WTType
ForwardWaveletTransform.WTTypes
int[] WTLevels
ForwardWaveletTransform.WTLevels
boolean parametersSet
True indicates that they are set otherwise false.
Constructor Detail |
---|
public InverseWeighting(float[][][] imageSamples)
imageSamples
- definition in imageSamples
Method Detail |
---|
public void setParameters(int[] customWtFlag, int[] WTType, int[] WTLevels, float[][] customWeight)
customWtFlag
- definition in ForwardWeighting.customWtFlag
WTType
- definition in ForwardWaveletTransform.WTTypes
WTLevels
- definition in ForwardWaveletTransform.WTLevels
customWeight
- definition in ForwardWeighting.customWeight
public int[] getCustomWtFlag()
ForwardWeighting.customWtFlag
public float[][] getCustomWeight()
ForwardWeighting.customWeight
public static boolean setWeightingNeed(int[] customWtFlag, int[] WTType, int zSize)
customWtFlag
- definition in ForwardWeighting.customWtFlag
WTType
- definition in ForwardWaveletTransform.WTTypes
zSize
- definition in Coder.zSize
public float getWeight(int subband, int channel)
subband
- indicates the subband that requires the weighting factorchannel
- indicates the channel that requires the weighting factor
public boolean weightingRequired(int component)
component
- indicates the component that requires the weighting factor
public float[][][] run() throws ParameterException
ParameterException
- when something goes wrong and the inverse weighting must be stopped
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |