public class YUYVImage
extends java.lang.Object
| Constructor and Description |
|---|
YUYVImage(byte[] pix,
int width,
int height)
Create a YUYV image of the requested size using the byte array as the source of pixel information
|
YUYVImage(int width,
int height)
Create a new YUYV image of the specified size
|
| Modifier and Type | Method and Description |
|---|---|
void |
display(GraphicsLCD device,
int xDest,
int yDest,
int threshold)
Display the image at the specified location on the provided monochrome device or image.
|
int |
getHeight()
return the image height
|
int |
getMeanY()
Return the mean of the Y components for the image (mean brightness)
|
int |
getNumPixels()
return the number of pixels in the image
|
int |
getU(int x,
int y)
return the U component of the specified pixel
|
int |
getV(int x,
int y)
return the V component of the specified pixel
|
int |
getWidth()
return the image width
|
int |
getY(int x,
int y)
return the Y component of the specified pixel
|
public YUYVImage(byte[] pix,
int width,
int height)
pix - pixelswidth - image widthheight - image heightpublic YUYVImage(int width,
int height)
width - height - public int getNumPixels()
public int getWidth()
public int getHeight()
public int getY(int x,
int y)
x - y - public int getU(int x,
int y)
x - y - public int getV(int x,
int y)
x - y - public int getMeanY()
public void display(GraphicsLCD device, int xDest, int yDest, int threshold)
threshold -