mw::hgr::HGConfig Structure

Syntax

#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;

Description

This structure is used to set parameters for the HGRcgGetWorkSize, HGRcgProcessInit, and HGRcgProcessExec functions.

Restrictions

  • Set either (HGIMG_WIDMIN,HGIMG_HEIMIN), or (HGIMG_WIDMAX,HGIMG_HEIMAX) in (xsize,ysize).
  • Set the coordinate value (in pixels) in the image data size to PSRect.
  • Set the target rectangle so its width is MGEXT_RECTMIN≦(hgrect.ex-hgrect.sx+1).
  • Set the target rectangle so its height is MGEXT_RECTMIN≦(hgrect.ey-hgrect.sy+1).
  • The [pixel] coordinate is the coordinate that uses the top left as the origin (0, 0).
  • Member Variables

    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: Reserved
    2: Reserved
    Note: 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).

    Revision History

    2014/05/28
    Initial version.

    CONFIDENTIAL