uk.ac.ed.ph.signal
Class ComplexImage

java.lang.Object
  extended by javax.vecmath.Tuple2d
      extended by javax.vecmath.Point2d
          extended by uk.ac.ed.ph.signal.Grid2d
              extended by uk.ac.ed.ph.signal.Image
                  extended by uk.ac.ed.ph.signal.ComplexImage
All Implemented Interfaces:
Serializable, Cloneable

public class ComplexImage
extends Image

Class to manipulate Complex monochrome images with the underlying data held in a one-dimensional double array compatible with jfftw.

See Also:
Serialized Form

Field Summary
 
Fields inherited from class uk.ac.ed.ph.signal.Image
data, statistics
 
Fields inherited from class uk.ac.ed.ph.signal.Grid2d
height, width
 
Fields inherited from class javax.vecmath.Tuple2d
x, y
 
Constructor Summary
ComplexImage(ComplexImage s)
          Constrcuor to form new ComplexImage being a copy of the specified ComplexImage
ComplexImage(int w, int h)
          Constrcuor to form a new ComplexImage of specified size
ComplexImage(RealImage s)
          Constrcuor to form new ComplexImage with the Real part being taken from the scecified RealImage
 
Method Summary
 ComplexImage clone()
          Methed to clone the current image, inclduing the data
 ComplexImage extract(int xstart, int ystart, int w, int h)
          Method to extract a region of an Complex image into a` new ComplexImage with samples of 1 in both direction.
 ComplexImage extract(int xstart, int ystart, int w, int h, int xsample, int ysample)
          Method to extract a region of an Complex image into a` new ComplexImage
 ComplexSignal getColumn(int i)
          Method to get a Column as a ComplexSignal
 ComplexDataArray getDataArray()
          Method to get the underlying ComplexDataArray
 RealImage getRealImage(int flag)
          Method to get RealImage with conversion determined by the conversion flag
 ComplexSignal getRow(int j)
          Method to get a row as a ComplexSignal
 
Methods inherited from class uk.ac.ed.ph.signal.Image
add, add, add, centreFourier, conjugate, conjugate, conjugate, fill, fourier, getComplex, getComplex, getConversion, getDataBuffer, getDouble, getDoubleValue, getSpace, getTitle, getType, mult, mult, mult, mult, mult, mult, mult, mult, multConjugate, setComplex, setComplex, setComplex, setComplex, setConversion, setDouble, setDouble, setStatisticsInvalid, setTitle, toString, validStatistics
 
Methods inherited from class uk.ac.ed.ph.signal.Grid2d
getCentre, getDeltaX, getDeltaY, getHeight, getPoint, getPoint, getSample, getSamplePoint, getWidth, getXCentre, getXRange, getYCentre, getYRange, setCentre, setCentre, setHeight, setRange, setRange, setSampleGrid, setSampleGrid, setWidth
 
Methods inherited from class javax.vecmath.Point2d
distance, distanceL1, distanceLinf, distanceSquared
 
Methods inherited from class javax.vecmath.Tuple2d
absolute, absolute, add, add, clamp, clamp, clampMax, clampMax, clampMin, clampMin, epsilonEquals, equals, equals, get, getX, getY, hashCode, interpolate, interpolate, negate, negate, scale, scale, scaleAdd, scaleAdd, set, set, set, set, setX, setY, sub, sub
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ComplexImage

public ComplexImage(int w,
                    int h)
Constrcuor to form a new ComplexImage of specified size

Parameters:
w - the width of the image
h - the heigh of the image

ComplexImage

public ComplexImage(ComplexImage s)
Constrcuor to form new ComplexImage being a copy of the specified ComplexImage

Parameters:
s - the specifing ComplexImage

ComplexImage

public ComplexImage(RealImage s)
Constrcuor to form new ComplexImage with the Real part being taken from the scecified RealImage

Parameters:
s - the specifing ComplexImage
Method Detail

clone

public ComplexImage clone()
Methed to clone the current image, inclduing the data

Overrides:
clone in class Grid2d
Returns:
ComplexImage clone of curret ComplexImage

getDataArray

public ComplexDataArray getDataArray()
Method to get the underlying ComplexDataArray

Returns:
ComplexDataArray underlying dataarray

getRealImage

public RealImage getRealImage(int flag)
Method to get RealImage with conversion determined by the conversion flag

Parameters:
flag - the conversion flag
See Also:
uk.ac.ed.ph.jfftw.Complex

getRow

public ComplexSignal getRow(int j)
Method to get a row as a ComplexSignal

Parameters:
j - the row

getColumn

public ComplexSignal getColumn(int i)
Method to get a Column as a ComplexSignal

Parameters:
i - the column

extract

public ComplexImage extract(int xstart,
                            int ystart,
                            int w,
                            int h,
                            int xsample,
                            int ysample)
Method to extract a region of an Complex image into a` new ComplexImage

Parameters:
xstart - left start pixel
ystart - top start pixel
w - width to be extracted
h - height to be extracted
xsample - sample interval in x direction
ysample - sample internal in y direction

extract

public ComplexImage extract(int xstart,
                            int ystart,
                            int w,
                            int h)
Method to extract a region of an Complex image into a` new ComplexImage with samples of 1 in both direction.

Parameters:
xstart - left start pixel
ystart - top start pixel
w - width to be extracted
h - height to be extracted