visualize
Class Volume

java.lang.Object
  extended by visualize.Volume

public class Volume
extends java.lang.Object

The Class Volume reads the data from a data-set and stores it into a FloatBuffer.

Version:
1.9
Author:
Markus Diem, Fabian Hollaus

Constructor Summary
Volume(java.io.File file)
          Reads the data from a data-set saved in a File and stores the data in a FloatBuffer.
 
Method Summary
 java.nio.FloatBuffer getBufferedData()
          Returns the data read from a file in FloatBuffer-form.
 java.nio.FloatBuffer getBufferedGradientData()
          Returns the gradients of the Volume
 int getDepth()
          Returns the depth of the data-set.
 int getHeight()
          Returns the height of the data-set.
 float[] getHistogram()
          Returns the normalized histogram of the data-set.
 int getWidth()
          Returns the width of the data-set.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Volume

public Volume(java.io.File file)
Reads the data from a data-set saved in a File and stores the data in a FloatBuffer. The data read is also used for computing a histogram, that is later ploted in the LineDrawPanel.

Parameters:
file - Data-Set.
Method Detail

getBufferedData

public java.nio.FloatBuffer getBufferedData()
Returns the data read from a file in FloatBuffer-form.


getBufferedGradientData

public java.nio.FloatBuffer getBufferedGradientData()
Returns the gradients of the Volume

Returns:
gradients in FloatBuffer-form.

getWidth

public int getWidth()
Returns the width of the data-set.

Returns:
width in integer-form.

getHeight

public int getHeight()
Returns the height of the data-set.

Returns:
height in integer-form.

getDepth

public int getDepth()
Returns the depth of the data-set.

Returns:
depth in integer-form.

getHistogram

public float[] getHistogram()
Returns the normalized histogram of the data-set.

Returns:
histogram in float-array-form.