GiciTransform
Class LevelUnshift

java.lang.Object
  extended by GiciTransform.LevelUnshift

public class LevelUnshift
extends java.lang.Object

This class receives an image and performs level unshift operations.
Usage example:
  construct
  set functions
  run

Version:
1.0
Author:
Group on Interactive Coding of Images (GICI)

Field Summary
(package private)  float[][][] imageSamples
           
(package private)  boolean[] LSComponents
          Definition in LevelShift.LSComponents
(package private)  int[] LSSubsValues
          Definition in LevelShift.LSSubsValues
(package private)  int LSType
          Definition in LevelShift.LSType
(package private)  boolean parametersSet
          To know if parameters are set.
(package private)  int[] QComponentsBits
          Definition in
(package private)  int xSize
           
(package private)  int ySize
           
(package private)  int zSize
           
 
Constructor Summary
LevelUnshift(float[][][] imageSamples)
          Constructor that receives the original image samples.
 
Method Summary
 float[][][] run()
          Performs the level unshift operations and returns the result image.
 void setParameters(int LSType, boolean[] LSComponents, int[] LSSubsValues, int[] QComponentsBits)
          Set the parameters used to do the level unshift operation.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

imageSamples

float[][][] imageSamples

zSize

int zSize

ySize

int ySize

xSize

int xSize

LSType

int LSType
Definition in LevelShift.LSType


LSComponents

boolean[] LSComponents
Definition in LevelShift.LSComponents


LSSubsValues

int[] LSSubsValues
Definition in LevelShift.LSSubsValues


QComponentsBits

int[] QComponentsBits
Definition in


parametersSet

boolean parametersSet
To know if parameters are set.

True indicates that they are set otherwise false.

Constructor Detail

LevelUnshift

public LevelUnshift(float[][][] imageSamples)
Constructor that receives the original image samples.

Parameters:
imageSamples -
Method Detail

setParameters

public void setParameters(int LSType,
                          boolean[] LSComponents,
                          int[] LSSubsValues,
                          int[] QComponentsBits)
Set the parameters used to do the level unshift operation.

Parameters:
LSType - definition in LevelShift.LSType
LSComponents - definition in LevelShift.LSComponents
LSSubsValues - definition in LevelShift.LSSubsValues
QComponentsBits -

run

public float[][][] run()
                throws ErrorException
Performs the level unshift operations and returns the result image.

Returns:
the level unshifted image
Throws:
ErrorException - when parameters are not set or unrecognized colour transform is passed


TER - Copyright (C) 2006
This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

Group on Interactive Coding of Images (GICI) - UAB (Spain)