src/flipdetect.c
l_int32
pixUpDownDetectDwa(PIX        *pixs,
                  l_float32  *pconf,
                  l_int32     mincount,
                  l_int32     debug)
{
    return pixUpDownDetectGeneralDwa(pixs, pconf, mincount, 0, debug);
}
/*!
 *  pixUpDownDetectDwa()
 *
 *      Input:  pixs (1 bpp, deskewed, English text, 150 - 300 ppi)
 *              &conf (<return> confidence that text is rightside-up)
 *              mincount (min number of up + down; use 0 for default)
 *              debug (1 for debug output; 0 otherwise)
 *      Return: 0 if OK, 1 on error
 *
 *  Notes:
 *      (1) Faster (DWA) version of pixUpDownDetect().
 *      (2) This is a special case (but typical and slightly faster) of
 *          pixUpDownDetectGeneralDwa(), where the pixels identified
 *          through the HMT (hit-miss transform) are not clipped by
 *          a truncated word mask pixm.  See pixUpDownDetectGeneral()
 *          for usage and other details.
 *      (3) The returned confidence is the normalized difference
 *          between the number of detected up and down ascenders,
 *          assuming that the text is either rightside-up or upside-down
 *          and not rotated at a 90 degree angle.
 */
pixUpDownDetectDwa()
Input:  pixs (1 bpp, deskewed, English text, 150 - 300 ppi)
&conf ( confidence that text is rightside-up)
mincount (min number of up + down; use 0 for default)
debug (1 for debug output; 0 otherwise)
Return: 0 if OK, 1 on error

(1) Faster (DWA) version of pixUpDownDetect().
(2) This is a special case (but typical and slightly faster) of
pixUpDownDetectGeneralDwa(), where the pixels identified
through the HMT (hit-miss transform) are not clipped by
a truncated word mask pixm.  See pixUpDownDetectGeneral()
for usage and other details.
(3) The returned confidence is the normalized difference
between the number of detected up and down ascenders,
assuming that the text is either rightside-up or upside-down
and not rotated at a 90 degree angle.
pixUpDownDetectDwa () Input : pixs ( 1 bpp deskewed English text 150 - 300 ppi ) &conf ( confidence that text is rightside - up ) mincount ( min number of up + down ; use 0 for default ) debug ( 1 for debug output ; 0 otherwise ) Return : 0 if OK 1 on error ( 1 ) Faster ( DWA ) version of pixUpDownDetect () . ( 2 ) This is a special case ( but typical and slightly faster ) of pixUpDownDetectGeneralDwa () where the pixels identified through the HMT ( hit - miss transform ) are not clipped by a truncated word mask pixm . See pixUpDownDetectGeneral () for usage and other details . ( 3 ) The returned confidence is the normalized difference between the number of detected up and down ascenders assuming that the text is either rightside - up or upside - down and not rotated at a 90 degree angle .
l_int32
pixUpDownDetectDwa(PIX        *pixs,
                  l_float32  *pconf,
                  l_int32     mincount,
                  l_int32     debug)
{
    return pixUpDownDetectGeneralDwa(pixs, pconf, mincount, 0, debug);
}
l_int32 pixUpDownDetectDwa ( PIX * pixs , l_float32 * pconf , l_int32 mincount , l_int32 debug ) { return pixUpDownDetectGeneralDwa ( pixs , pconf , mincount , 0 , debug ) ; }
pixUpDownDetectDwa()
      Input:  pixs (1 bpp, deskewed, English text, 150 - 300 ppi)
              &conf (<return> confidence that text is rightside-up)
              mincount (min number of up + down; use 0 for default)
              debug (1 for debug output; 0 otherwise)
      Return: 0 if OK, 1 on error
pixUpDownDetectDwa () Input : pixs ( 1 bpp deskewed English text 150 - 300 ppi ) &conf ( <return > confidence that text is rightside - up ) mincount ( min number of up + down ; use 0 for default ) debug ( 1 for debug output ; 0 otherwise ) Return : 0 if OK 1 on error