GiciTransform
Class RangeCheck

java.lang.Object
  extended by GiciTransform.RangeCheck

public class RangeCheck
extends java.lang.Object

This class receives an image and check that all image samples have a valid range.
Usage example:
  construct
  set functions
  run

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

Field Summary
(package private)  float[][][] imageSamples
          Original image samples (index meaning [z][y][x]).
(package private)  boolean[] LSSignedComponents
          Level Shift
(package private)  boolean parametersSet
          To know if parameters are set.
(package private)  int[] QComponentsBits
          Number of bits for pixel for every component of the image
(package private)  int RCType
          Range type to apply.
(package private)  int xSize
          Width of the image
(package private)  int ySize
          Height of the image
(package private)  int zSize
          Number of components of the image
 
Constructor Summary
RangeCheck(float[][][] imageSamples)
          Constructor that receives the original image samples.
 
Method Summary
 float[][][] run()
          Check image samples range.
 void setParameters(int RCType, boolean[] LSSignedComponents, int[] QComponentsBits)
          Set the parameters used to do the range check operation.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

imageSamples

float[][][] imageSamples
Original image samples (index meaning [z][y][x]).

All values allowed.


zSize

int zSize
Number of components of the image


ySize

int ySize
Height of the image


xSize

int xSize
Width of the image


RCType

int RCType
Range type to apply.

Valid values are:


LSSignedComponents

boolean[] LSSignedComponents
Level Shift


QComponentsBits

int[] QComponentsBits
Number of bits for pixel for every component of the image


parametersSet

boolean parametersSet
To know if parameters are set.

True indicates that they are set otherwise false.

Constructor Detail

RangeCheck

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

Parameters:
imageSamples - definition in imageSamples
Method Detail

setParameters

public void setParameters(int RCType,
                          boolean[] LSSignedComponents,
                          int[] QComponentsBits)
Set the parameters used to do the range check operation.

Parameters:
RCType - definition in RCType
LSSignedComponents - definition in LSSignedComponents
QComponentsBits - definition in QComponentsBits

run

public float[][][] run()
                throws ErrorException
Check image samples range.

Returns:
the check range image
Throws:
ErrorException - when some oput of range is detected (if RCType == 2)


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)