|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.ObjectGiciTransform.LevelShift
public class LevelShift
This class receives an image and performs level shift operations. Usage example:
construct
setParameters
run
get functions
| Field Summary | |
|---|---|
(package private) float[][][] |
imageSamples
|
(package private) boolean[] |
LSComponents
Specification of the image component to apply the level shift. |
(package private) int[] |
LSSubsValues
Substracted values of each image component. |
(package private) int |
LSType
Shift type to apply. |
(package private) boolean |
parametersSet
To know if parameters are set. |
(package private) int[] |
QComponentsBits
|
(package private) int |
xSize
|
(package private) int |
ySize
|
(package private) int |
zSize
|
| Constructor Summary | |
|---|---|
LevelShift(float[][][] imageSamples)
Constructor that receives the original image samples. |
|
| Method Summary | |
|---|---|
int[] |
getSubsValues()
|
float[][][] |
run()
Performs the level shift operations and returns the result image. |
void |
setParameters(int LSType,
boolean[] LSComponents,
int[] LSSubsValues,
int[] QComponentsBits)
Set the parameters used to do the level shift operation. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
float[][][] imageSamples
int zSize
int ySize
int xSize
int LSType
Valid values are:
boolean[] LSComponents
If true the level shift will be applied, otherwise false.
int[] LSSubsValues
If LSType == 4 then this variable cannot be null, otherwise it can be null in setParameters function
int[] QComponentsBits
boolean parametersSet
True indicates that they are set otherwise false.
| Constructor Detail |
|---|
public LevelShift(float[][][] imageSamples)
imageSamples - | Method Detail |
|---|
public void setParameters(int LSType,
boolean[] LSComponents,
int[] LSSubsValues,
int[] QComponentsBits)
LSType - definition in LSTypeLSComponents - definition in LSComponentsLSSubsValues - definition in LSSubsValuesQComponentsBits -
public float[][][] run()
throws ErrorException
ErrorException - when parameters are not set or unrecognized level shift type is passedpublic int[] getSubsValues()
LSSubsValues
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||