Class image1DDouble
java.lang.Object
|
+--image
|
+--image1DDouble
- public class image1DDouble
- extends image
Image representation consisting of a 1d double array, double values are
generated from some convolutions, pixel multiplication (x0.5 etc).
Constructor Summary |
image1DDouble()
No argument constructor, initialises all variables to 0. |
image1DDouble(int width,
int height,
double[] values)
Constructs a new image1DDouble from a 1d double array. |
image1DDouble(int width,
int height,
int[] values)
Constructs a new image1DDouble 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[] |
getValuesDouble()
|
Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
image1DDouble
public image1DDouble()
- No argument constructor, initialises all variables to 0.
image1DDouble
public image1DDouble(int width,
int height,
double[] values)
- Constructs a new image1DDouble 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
image1DDouble
public image1DDouble(int width,
int height,
int[] values)
- Constructs a new image1DDouble 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
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
getValuesDouble
public double[] getValuesDouble()