AutoFocus

Auto-focus judgement

int AutoFocus(
        const IMAGE             *image,
        const FIG_HEADER        *figure,
        int                     *focus,
        double          *standardValue,
        int                     *status
)

Parameters
*image
Image data address
*figure
Figure data structure address
*focus
Focus value storage space address
*standardValue
Reference value storage space address
*status
judgement state

Return Value
NORMAL(0): Successful completion
ERROR(-1): Unsuccessful completion
ERR_WBUPP: Too bright
ERR_WBLOW: Too dark

Description
Adjusts the focus of the electric varifocal lens automatically.
In the application software, the optimum focus value can be determined by inputting image with varying focus values and calling this method.

Notes