fable.python
Class EdfFile

java.lang.Object
  extended by fable.python.EdfFile

public class EdfFile
extends java.lang.Object


Constructor Summary
EdfFile(java.lang.String fileName)
           
 
Method Summary
 int getBytesPerPixel()
           
 int getHeight()
          get image height from EDF keyword Dim_2
 int[] getImageAsInt()
           
 java.lang.String[] getKeys()
           
 java.util.Vector<java.lang.String> getKeysAsListedInHeader()
           
 double getMaximum()
          return maximum value in image
 double getMinimum()
          return minimum value in image
 java.lang.String getValue(java.lang.String key)
           
 int getWidth()
          get image width from EDF keyword Dim_1
 void readBuffer()
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

EdfFile

public EdfFile(java.lang.String fileName)
        throws FabioFileException
Parameters:
fileName -
Throws:
FabioFileException
Method Detail

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object

getKeys

public java.lang.String[] getKeys()
Returns:
EDF header keys

getKeysAsListedInHeader

public java.util.Vector<java.lang.String> getKeysAsListedInHeader()
Returns:
a vector of EDF Header Keys

getValue

public java.lang.String getValue(java.lang.String key)
                          throws FabioFileException
Throws:
FabioFileException

getWidth

public int getWidth()
get image width from EDF keyword Dim_1

Returns:
image width

getHeight

public int getHeight()
get image height from EDF keyword Dim_2

Returns:
image height

getBytesPerPixel

public int getBytesPerPixel()

readBuffer

public void readBuffer()

getImageAsInt

public int[] getImageAsInt()

getMinimum

public double getMinimum()
return minimum value in image

Returns:
image minimum

getMaximum

public double getMaximum()
return maximum value in image

Returns:
image maximum