#include <mw/hgr/hgr.h> typedef struct { s32 xsize ; /* Image data width (320,640)[pixel] */ s32 ysize ; /* Image data height (240,480)[pixel] */ PSRect hgrect ; /* Rectangular area to process [pixel] coordinates */ s16 hgmode ; /* Recognition mode (0,1) */ s16 hgnumb ; /* Number of the finger to detect (1 to 10) */ s16 hganglflg ;/* Range of the finger angle (0:0-180deg,1:0-360deg) */ s16 hgminleng ;/* Finger length minimum value (50 to 350) */ s16 hgmaxleng ;/* Finger length maximum value (50 to 350) */ u8 reserve0 ; /* Reserved flag 0 */ u8 reserve1 ; /* Reserved flag 1 */ } HGConfig;
This structure is used to set parameters for the HGRcgGetWorkSize
, HGRcgProcessInit
, and HGRcgProcessExec
functions.
xsize
.ysize
.hgrect
.0
, 1
, or 2
in hgmode
.
0
: Finger detection mode1
: Reserved (unused).2
: Reserved (unused).1
to 10
in hgnumb
.0
or 1
in hganglflg
.
0
: Detects fingers in the 0 to 180 degree direction.1
: Detects fingers in the 0 to 360 degree direction.50
to 350
in hgminleng
.50
to 350
in hgmaxleng
.reserve0
is unused.reserve1
is unused.
Restrictions
HGIMG_WIDMIN
,HGIMG_HEIMIN
), or (HGIMG_WIDMAX
,HGIMG_HEIMAX
) in (xsize
,ysize
).PSRect
.MGEXT_RECTMIN
≦(hgrect.ex-hgrect.sx+1)
.MGEXT_RECTMIN
≦(hgrect.ey-hgrect.sy+1)
.Name | Description | |
---|---|---|
in | xsize | Sets the image data width, in pixels. |
in | ysize | Sets the image data height, in pixels. |
in | hgrect | Sets the rectangular region targeted for processing, in pixels. |
in | hgmode |
Sets the recognition movement mode (0 , 1 , or 2 ). 0 : Finger detection mode (default)1 : Reserved2 : ReservedNote: The current version runs in finger detection mode regardless of which value is specified. |
in | hgnumb |
Sets the number of fingers to detect (1 to 10 ). |
in | hganglflg |
Sets the range of finger angles (0 , 1 ). 0 : Detects fingers in the 0 to 180 degree direction.1 : Detects fingers in the 0 to 360 degree direction. |
in | hgminleng |
Sets the minimum finger length (50 to 350 ). |
in | hgmaxleng |
Sets the maximum finger length (50 to 350 ). |
CONFIDENTIAL