|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.ObjectCADI.Common.LogicalTarget.JPEG2000.Detransform.RangeRecovery
public class RangeRecovery
This class receives an image and change its range (the bit depth) to their original one. Usage example:
construct
setParameters
run
get functions
| Field Summary | |
|---|---|
private float[][][] |
imageSamples
Definition in JPEG2KLogicalTarget.imageSamplesFloat |
private boolean |
parametersSet
To know if parameters are set. |
private int[] |
precision
Definition in SIZParameters.precision |
private float[] |
RMMultValues
Value used to modificate the range of each component using a multiplication. |
private int |
xSize
Definition in SIZParameters.xSize |
private int |
ySize
Definition in SIZParameters.ySize |
private int |
zSize
Definition in SIZParameters.zSize |
| Constructor Summary | |
|---|---|
RangeRecovery(float[][][] imageSamples,
int[] precision)
Constructor that receives the original image samples and some other data. |
|
| Method Summary | |
|---|---|
int[] |
getPrecision()
Returns the precision attribute. |
void |
list(java.io.PrintStream out)
Prints this Range recovery's fields to the specified output stream. |
float[][][] |
run()
Performs the range remodification operations and returns the result image. |
void |
setParameters(float[] RMMultValues)
Set the parameters used to do the range modification operation. |
java.lang.String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
private float[][][] imageSamples
JPEG2KLogicalTarget.imageSamplesFloat
private int zSize
SIZParameters.zSize
private int ySize
SIZParameters.ySize
private int xSize
SIZParameters.xSize
private int[] precision
SIZParameters.precision
private float[] RMMultValues
Only values greater than 0 allowed.
private boolean parametersSet
True indicates that they are set otherwise false.
| Constructor Detail |
|---|
public RangeRecovery(float[][][] imageSamples,
int[] precision)
imageSamples - definition in imageSamplesprecision - definition in precision| Method Detail |
|---|
public void setParameters(float[] RMMultValues)
RMMultValues - definition in RMMultValues
public float[][][] run()
throws ErrorException
ErrorException - when parameters are not set or unrecognized range modification type is passedpublic int[] getPrecision()
precision attribute.
precision attribute.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 | ||||||||