Class image2DDouble
java.lang.Object
|
+--image
|
+--image2DDouble
- public class image2DDouble
- extends image
Image representation consisting of a 2d double array, double values are
generated from some convolutions, pixel multiplication (x0.5 etc).
Constructor Summary |
image2DDouble()
No argument constructor, initialises all variables to 0. |
image2DDouble(image oldImage)
Converts an existing image representation to make a new image2DDouble
(an exisiting image1DDouble is simply cloned). |
image2DDouble(int width,
int height,
double[] values)
Constructs a new image2DDouble from a 1d double array. |
image2DDouble(int width,
int height,
double[][] values)
Constructor that takes a 2d double array and combines this with
the width and height to make a new image2DDouble. |
image2DDouble(int width,
int height,
int[] values)
Constructs a new image2DDouble from a 1d int array. |
Method Summary |
int[] |
getValues()
Returns the pixel values in 1d int form by converting to a 1d array
and rounding the double values. |
double[][] |
getValues2D()
Returns the pixel values in 2d double form by returning the internal
representation. |
Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
image2DDouble
public image2DDouble()
- No argument constructor, initialises all variables to 0.
image2DDouble
public image2DDouble(int width,
int height,
double[][] values)
- Constructor that takes a 2d double array and combines this with
the width and height to make a new image2DDouble.
- Parameters:
width
- the width of the imageheight
- the height of the imagevalues
- the 2d double array of pixel grey level values
image2DDouble
public image2DDouble(int width,
int height,
double[] values)
- Constructs a new image2DDouble from a 1d double array.
- Parameters:
width
- the width of the imageheight
- the height of the imagevalues
- the 1d double array of pixel grey level values
image2DDouble
public image2DDouble(int width,
int height,
int[] values)
- Constructs a new image2DDouble from a 1d int array.
- Parameters:
width
- the width of the imageheight
- the height of the imagevalues
- the 1d int array of pixel grey level values
image2DDouble
public image2DDouble(image oldImage)
- Converts an existing image representation to make a new image2DDouble
(an exisiting image1DDouble is simply cloned).
- Parameters:
oldImage
- the original image to be converted
getValues
public int[] getValues()
- Returns the pixel values in 1d int form by converting to a 1d array
and rounding the double values.
- Returns:
- the 1d integer array
- Overrides:
- getValues in class image
getValues2D
public double[][] getValues2D()
- Returns the pixel values in 2d double form by returning the internal
representation.
- Returns:
- the 2d double array of pixel values