Class image1DInt
java.lang.Object
|
+--image
|
+--image1DInt
- public class image1DInt
- extends image
Image representation consisting of an array of integers, each integer
representing a grey-scale value between 0 and 255 (values outside this
range are allowed but it should be noted that the imageDisplay and
possibly other operators will simply set all values above 255 to 255
and all negative values to 0), starting at the top-left corner of the
image (0,0) and continuing row by row to the bottom-right corner.
Constructor Summary |
image1DInt()
No argument constructor, sets all variables to 0. |
image1DInt(image oldImage)
Constructor that makes an image1DInt image representation by
either making an identical copy of an existing image1DInt or by
converting a different image representation. |
image1DInt(int width,
int height,
int[] values)
Constructor taking a width, a height and an int array (all
the individual components of this image representation). |
image1DInt(int src_w,
int src_h,
int dest_w,
int dest_h,
int[] src_1d)
Constructor for an image which size is smaller than the image src
the real size is the same, but some part of the new image are black |
Method Summary |
int[] |
getValues()
Returns the image as an int array by simply returning the values array. |
Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
image1DInt
public image1DInt()
- No argument constructor, sets all variables to 0.
image1DInt
public image1DInt(int width,
int height,
int[] values)
- Constructor taking a width, a height and an int array (all
the individual components of this image representation).
- Parameters:
width
- of the imageheight
- of the imagevalues
- representing the pixel gray levels
image1DInt
public image1DInt(image oldImage)
- Constructor that makes an image1DInt image representation by
either making an identical copy of an existing image1DInt or by
converting a different image representation.
- Parameters:
oldImage
- the existing image
image1DInt
public image1DInt(int src_w,
int src_h,
int dest_w,
int dest_h,
int[] src_1d)
- Constructor for an image which size is smaller than the image src
the real size is the same, but some part of the new image are black
getValues
public int[] getValues()
- Returns the image as an int array by simply returning the values array.
- Returns:
- the int array representing the pixel values
- Overrides:
- getValues in class image