MakeGrayImage
Creates monochrome image data
int MakeGrayImage(
const BYTE *srcImage,
const int sizeX,
const int sizeY,
const int x1,
const int y1,
const int x2,
const int y2,
const int frameRate,
IMAGE *destImage
)
Parameters
*srcImage
|
Input image data address
|
sizeX
|
Image X size
|
sizeY
|
Image Y size
|
x1, y1
|
Area upper left coordinate
|
x2, y2
|
Area lower right coordinate
|
frameRate
|
Frame rate
0: Frame
1: Field
|
*destImage
|
Output image data structure address
|
Return Value
NORMAL(0): Successful completion
ERROR(-1): Unsuccessful completion
Description
Converts a monochrome image which is input from a camera to the image data.
In the case of a field image, the pixels on even lines are copied to odd lines.
Notes