Logo Search packages:      
Sourcecode: leptonlib version File versions  Download package

leptprotos.h

/*
 *  This file was autogen'd by xtractprotos, v. 1.0
 */
#ifdef __cplusplus
extern "C" {
#endif  /* __cplusplus */

extern PIX * pixBackgroundNorm ( PIX *pixs, PIX *pixim, l_int32 sx, l_int32 sy, l_int32 thresh, l_int32 mincount, l_int32 bgval, l_int32 smoothx, l_int32 smoothy );
extern PIX * pixBackgroundNormMorph ( PIX *pixs, PIX *pixim, l_int32 reduction, l_int32 size, l_int32 bgval );
extern l_int32 pixGetBackgroundGrayMap ( PIX *pixs, PIX *pixim, l_int32 sx, l_int32 sy, l_int32 thresh, l_int32 mincount, PIX **ppixd );
extern l_int32 pixGetBackgroundRGBMap ( PIX *pixs, PIX *pixim, l_int32 sx, l_int32 sy, l_int32 thresh, l_int32 mincount, PIX **ppixmr, PIX **ppixmg, PIX **ppixmb );
extern l_int32 pixGetBackgroundGrayMapMorph ( PIX *pixs, PIX *pixim, l_int32 reduction, l_int32 size, PIX **ppixm );
extern l_int32 pixGetBackgroundRGBMapMorph ( PIX *pixs, PIX *pixim, l_int32 reduction, l_int32 size, PIX **ppixmr, PIX **ppixmg, PIX **ppixmb );
extern l_int32 pixFillMapHoles ( PIX *pix, l_int32 nx, l_int32 ny );
extern PIX * pixExtendByReplication ( PIX *pixs, l_int32 addw, l_int32 addh );
extern PIX * pixGetInvBackgroundMap ( PIX *pixs, l_int32 bgval, l_int32 smoothx, l_int32 smoothy );
extern PIX * pixApplyInvBackgroundGrayMap ( PIX *pixs, PIX *pixm, l_int32 sx, l_int32 sy );
extern PIX * pixApplyInvBackgroundRGBMap ( PIX *pixs, PIX *pixmr, PIX *pixmg, PIX *pixmb, l_int32 sx, l_int32 sy );
extern PIX * pixAffineSequential ( PIX *pixs, PTA *ptad, PTA *ptas, l_int32 bw, l_int32 bh );
extern PIX * pixAffineSampled ( PIX *pixs, PTA *ptad, PTA *ptas );
extern PIX * pixAffineInterpolated ( PIX *pixs, PTA *ptad, PTA *ptas, l_uint8 grayval );
extern PIX * pixAffineInterpolatedColor ( PIX *pixs, PTA *ptad, PTA *ptas, l_uint8 grayval );
extern PIX * pixAffineInterpolatedGray ( PIX *pixs, PTA *ptad, PTA *ptas, l_uint8 grayval );
extern void affineInterpolatedLow ( l_uint32 *datad, l_int32 w, l_int32 h, l_int32 wpld, l_uint32 *datas, l_int32 wpls, l_float32 *vc );
extern l_int32 affineXformCoeffs ( PTA *ptas, PTA *ptad, l_float32 **pvc );
extern l_int32 affineXformSampled ( l_float32 *vc, l_int32 x, l_int32 y, l_int32 *pxp, l_int32 *pyp );
extern l_int32 affineXformInterpolated ( l_float32 *vc, l_int32 x, l_int32 y, l_int32 *pxp, l_int32 *pyp, l_int32 *pfxp, l_int32 *pfyp );
extern l_int32 gaussjordan ( l_float32 **a, l_float32 *b, l_int32 n );
extern void addConstantGrayLow ( l_uint32 *data, l_int32 w, l_int32 h, l_int32 d, l_int32 wpl, l_int32 val );
extern void addGrayLow ( l_uint32 *datad, l_int32 w, l_int32 h, l_int32 d, l_int32 wpld, l_uint32 *datas, l_int32 wpls );
extern void subtractGrayLow ( l_uint32 *datad, l_int32 w, l_int32 h, l_int32 d, l_int32 wpld, l_uint32 *datas, l_int32 wpls, l_int32 swap );
extern void thresholdToValueLow ( l_uint32 *datad, l_int32 w, l_int32 h, l_int32 d, l_int32 wpld, l_int32 threshval, l_int32 setval );
extern void finalAccumulateLow ( l_uint32 *datad, l_int32 w, l_int32 h, l_int32 d, l_int32 wpld, l_uint32 *datas, l_int32 wpls, l_uint32 offset );
extern void accumulateLow ( l_uint32 *datad, l_int32 w, l_int32 h, l_int32 wpld, l_uint32 *datas, l_int32 d, l_int32 wpls, l_int32 op );
extern void multConstAccumulateLow ( l_uint32 *data, l_int32 w, l_int32 h, l_int32 wpl, l_float32 factor, l_uint32 offset );
extern void absDifferenceLow ( l_uint32 *datad, l_int32 w, l_int32 h, l_int32 wpld, l_uint32 *datas1, l_uint32 *datas2, l_int32 d, l_int32 wpls );
extern l_int32 l_getDataBit ( l_uint32 *line, l_int32 n );
extern void l_setDataBit ( l_uint32 *line, l_int32 n );
extern void l_clearDataBit ( l_uint32 *line, l_int32 n );
extern l_int32 l_getDataDibit ( l_uint32 *line, l_int32 n );
extern void l_setDataDibit ( l_uint32 *line, l_int32 n, l_int32 val );
extern void l_clearDataDibit ( l_uint32 *line, l_int32 n );
extern l_int32 l_getDataQbit ( l_uint32 *line, l_int32 n );
extern void l_setDataQbit ( l_uint32 *line, l_int32 n, l_int32 val );
extern void l_clearDataQbit ( l_uint32 *line, l_int32 n );
extern l_int32 l_getDataByte ( l_uint32 *line, l_int32 n );
extern void l_setDataByte ( l_uint32 *line, l_int32 n, l_int32 val );
extern l_int32 l_getDataTwoBytes ( l_uint32 *line, l_int32 n );
extern void l_setDataTwoBytes ( l_uint32 *line, l_int32 n, l_int32 val );
extern NUMA * pixFindBaselines ( PIX *pixs, PTA **ppta );
extern PIX * pixDeskewLocal ( PIX *pixs, l_int32 nslices, l_int32 redsweep, l_int32 redsearch, l_float32 sweeprange, l_float32 sweepdelta, l_float32 minbsdelta );
extern l_int32 pixGetLocalSkewTransform ( PIX *pixs, l_int32 nslices, l_int32 redsweep, l_int32 redsearch, l_float32 sweeprange, l_float32 sweepdelta, l_float32 minbsdelta, PTA **pptas, PTA **pptad );
extern NUMA * pixGetLocalSkewAngles ( PIX *pixs, l_int32 nslices, l_int32 redsweep, l_int32 redsearch, l_float32 sweeprange, l_float32 sweepdelta, l_float32 minbsdelta, l_float32 *pa, l_float32 *pb );
extern BBUFFER * bbufferCreate ( l_uint8 *indata, l_int32 nalloc );
extern void bbufferDestroy ( BBUFFER **pbb );
extern l_uint8 * bbufferDestroyAndSaveData ( BBUFFER **pbb, l_int32 *pnbytes );
extern l_int32 bbufferRead ( BBUFFER *bb, l_uint8 *src, l_int32 nbytes );
extern l_int32 bbufferReadStream ( BBUFFER *bb, FILE *fp, l_int32 nbytes );
extern l_int32 bbufferExtendArray ( BBUFFER *bb, l_int32 nbytes );
extern l_int32 bbufferWrite ( BBUFFER *bb, l_uint8 *dest, l_int32 nbytes, l_int32 *pnout );
extern l_int32 bbufferWriteStream ( BBUFFER *bb, FILE *fp, l_int32 nbytes, l_int32 *pnout );
extern l_int32 bbufferBytesToWrite ( BBUFFER *bb, l_int32 *pnbytes );
extern l_uint8 * zlibCompress ( l_uint8 *datain, l_int32 nin, l_int32 *pnout );
extern l_uint8 * zlibUncompress ( l_uint8 *datain, l_int32 nin, l_int32 *pnout );
extern PIX * pixBilinearSampled ( PIX *pixs, PTA *ptad, PTA *ptas );
extern PIX * pixBilinearInterpolated ( PIX *pixs, PTA *ptad, PTA *ptas, l_uint8 grayval );
extern PIX * pixBilinearInterpolatedColor ( PIX *pixs, PTA *ptad, PTA *ptas, l_uint8 grayval );
extern PIX * pixBilinearInterpolatedGray ( PIX *pixs, PTA *ptad, PTA *ptas, l_uint8 grayval );
extern void bilinearInterpolatedLow ( l_uint32 *datad, l_int32 w, l_int32 h, l_int32 wpld, l_uint32 *datas, l_int32 wpls, l_float32 *vc );
extern l_int32 bilinearXformCoeffs ( PTA *ptas, PTA *ptad, l_float32 **pvc );
extern l_int32 bilinearXformSampled ( l_float32 *vc, l_int32 x, l_int32 y, l_int32 *pxp, l_int32 *pyp );
extern l_int32 bilinearXformInterpolated ( l_float32 *vc, l_int32 x, l_int32 y, l_int32 *pxp, l_int32 *pyp, l_int32 *pfxp, l_int32 *pfyp );
extern PIX * pixExpandBinary ( PIX *pixs, l_int32 factor );
extern l_int32 expandBinaryLow ( l_uint32 *datad, l_int32 wd, l_int32 hd, l_int32 wpld, l_uint32 *datas, l_int32 ws, l_int32 hs, l_int32 wpls, l_int32 factor );
extern l_uint16 * makeExpandTab2x ( void );
extern l_uint32 * makeExpandTab4x ( void );
extern l_uint32 * makeExpandTab8x ( void );
extern PIX * pixReduceBinary2 ( PIX *pixs, l_uint8 *intab );
extern PIX * pixReduceRankBinaryCascade ( PIX *pixs, l_int32 level1, l_int32 level2, l_int32 level3, l_int32 level4 );
extern PIX * pixReduceRankBinary2 ( PIX *pixs, l_int32 level, l_uint8 *intab );
extern void reduceBinary2Low ( l_uint32 *datad, l_int32 wpld, l_uint32 *datas, l_int32 hs, l_int32 wpls, l_uint8 *tab );
extern void reduceRankBinary2Low ( l_uint32 *datad, l_int32 wpld, l_uint32 *datas, l_int32 hs, l_int32 wpls, l_uint8 *tab, l_int32 level );
extern l_uint8 * makeSubsampleTab2x ( void );
extern PIX * pixBlend ( PIX *pixs1, PIX *pixs2, l_int32 x, l_int32 y, l_float32 fract );
extern PIX * pixBlendMask ( PIX *pixd, PIX *pixs1, PIX *pixs2, l_int32 x, l_int32 y, l_float32 fract, l_int32 type );
extern PIX * pixBlendGray ( PIX *pixd, PIX *pixs1, PIX *pixs2, l_int32 x, l_int32 y, l_float32 fract, l_int32 type, l_int32 transparent, l_uint32 transpix );
extern PIX * pixBlendColor ( PIX *pixd, PIX *pixs1, PIX *pixs2, l_int32 x, l_int32 y, l_float32 fract, l_int32 transparent, l_uint32 transpix );
extern PIX * pixBlendColorByChannel ( PIX *pixd, PIX *pixs1, PIX *pixs2, l_int32 x, l_int32 y, l_float32 rfract, l_float32 gfract, l_float32 bfract, l_int32 transparent, l_uint32 transpix );
extern l_int32 pixBlendCmap ( PIX *pixs, PIX *pixb, l_int32 x, l_int32 y, l_int32 sindex );
extern l_int32 pixColorGray ( PIX *pixs, BOX *box, l_int32 type, l_int32 thresh, l_int32 rval, l_int32 gval, l_int32 bval );
extern PIX * pixSnapColor ( PIX *pixd, PIX *pixs, l_uint32 srcval, l_uint32 dstval, l_int32 diff );
extern PIX * pixSnapColorCmap ( PIX *pixd, PIX *pixs, l_uint32 srcval, l_uint32 dstval, l_int32 diff );
extern BMF * bmfCreate ( const char *dir, l_int32 size );
extern void bmfDestroy ( BMF **pbmf );
extern PIX * bmfGetPix ( BMF *bmf, char chr );
extern l_int32 bmfGetWidth ( BMF *bmf, char chr, l_int32 *pw );
extern l_int32 bmfGetBaseline ( BMF *bmf, char chr, l_int32 *pbaseline );
extern PIXA * pixaGetFont ( const char *dir, l_int32 size, l_int32 *pbl0, l_int32 *pbl1, l_int32 *pbl2 );
extern l_int32 pixaSaveFont ( const char *indir, const char *outdir, l_int32 size );
extern PIXA * pixaGenerateFont ( const char *dir, l_int32 size, l_int32 *pbl0, l_int32 *pbl1, l_int32 *pbl2 );
extern PIX * pixReadStreamBmp ( FILE *fp );
extern l_int32 pixWriteStreamBmp ( FILE *fp, PIX *pix );
extern BOX * boxCreate ( l_int32 x, l_int32 y, l_int32 w, l_int32 h );
extern BOX * boxCopy ( BOX *box );
extern BOX * boxClone ( BOX *box );
extern void boxDestroy ( BOX **pbox );
extern l_int32 boxGetRefcount ( BOX *box );
extern l_int32 boxChangeRefcount ( BOX *box, l_int32 delta );
extern l_int32 boxContains ( BOX *box1, BOX *box2, l_int32 *presult );
extern l_int32 boxIntersects ( BOX *box1, BOX *box2, l_int32 *presult );
extern BOXA * boxaContainedInBox ( BOXA *boxas, BOX *box );
extern BOXA * boxaIntersectsBox ( BOXA *boxas, BOX *box );
extern BOX * boxClipToRectangle ( BOX *box, l_int32 w, l_int32 h );
extern BOXA * boxaCreate ( l_int32 n );
extern BOXA * boxaCopy ( BOXA *boxa, l_int32 copyflag );
extern void boxaDestroy ( BOXA **pboxa );
extern l_int32 boxaAddBox ( BOXA *boxa, BOX *box, l_int32 copyflag );
extern l_int32 boxaExtendArray ( BOXA *boxa );
extern l_int32 boxaGetCount ( BOXA *boxa );
extern BOX * boxaGetBox ( BOXA *boxa, l_int32 index, l_int32 accessflag );
extern l_int32 boxaReplaceBox ( BOXA *boxa, l_int32 index, BOX *box );
extern l_int32 boxaInsertBox ( BOXA *boxa, l_int32 index, BOX *boxs );
extern l_int32 boxaRemoveBox ( BOXA *boxa, l_int32 index );
extern l_int32 boxaJoin ( BOXA *boxad, BOXA *boxas, l_int32 istart, l_int32 iend );
extern l_int32 boxaGetExtent ( BOXA *boxa, BOX **pbox, l_int32 *pw, l_int32 *ph );
extern l_int32 boxaSizeRange ( BOXA *boxa, l_int32 *pminw, l_int32 *pminh, l_int32 *pmaxw, l_int32 *pmaxh );
extern BOXA * boxaRemoveLargeComponents ( BOXA *boxas, l_int32 maxwidth, l_int32 maxheight, l_int32 type );
extern BOXA * boxaRemoveSmallComponents ( BOXA *boxas, l_int32 minwidth, l_int32 minheight, l_int32 type );
extern BOXA * boxaTransform ( BOXA *boxas, l_int32 shiftx, l_int32 shifty, l_float32 scalex, l_float32 scaley );
extern BOX * boxTransform ( BOX *box, l_int32 shiftx, l_int32 shifty, l_float32 scalex, l_float32 scaley );
extern BOXA * boxaSort ( BOXA *boxas, l_int32 sorttype, l_int32 sortorder, NUMA **pnaindex );
extern BOXA * boxaRead ( const char *filename );
extern BOXA * boxaReadStream ( FILE *fp );
extern l_int32 boxaWrite ( const char *filename, BOXA *boxa );
extern l_int32 boxaWriteStream ( FILE *fp, BOXA *boxa );
extern l_int32 boxPrintStreamInfo ( FILE *fp, BOX *box );
extern CCBORDA * ccbaCreate ( PIX *pixs, l_int32 n );
extern void ccbaDestroy ( CCBORDA **pccba );
extern CCBORD * ccbCreate ( PIX *pixs );
extern void ccbDestroy ( CCBORD **pccb );
extern l_int32 ccbaAddCcb ( CCBORDA *ccba, CCBORD *ccb );
extern l_int32 ccbaExtendArray ( CCBORDA *ccba );
extern l_int32 ccbaGetCount ( CCBORDA *ccba );
extern CCBORD * ccbaGetCcb ( CCBORDA *ccba, l_int32 index );
extern CCBORDA * pixGetAllCCBorders ( PIX *pixs );
extern CCBORD * pixGetCCBorders ( PIX *pixs, BOX *box, l_int32 *xpostab, l_int32 *ypostab, l_int32 *qpostab );
extern l_int32 pixGetOuterBorder ( CCBORD *ccb, PIX *pixs, BOX *box, l_int32 *xpostab, l_int32 *ypostab, l_int32 *qpostab );
extern l_int32 pixGetHoleBorder ( CCBORD *ccb, PIX *pixs, BOX *box, l_int32 xs, l_int32 ys, l_int32 *xpostab, l_int32 *ypostab, l_int32 *qpostab );
extern l_int32 findNextBorderPixel ( l_int32 w, l_int32 h, l_uint32 *data, l_int32 wpl, l_int32 px, l_int32 py, l_int32 *pqpos, l_int32 *pnpx, l_int32 *pnpy, l_int32 *xpostab, l_int32 *ypostab, l_int32 *qpostab );
extern void locateOutsideSeedPixel ( l_int32 fpx, l_int32 fpy, l_int32 spx, l_int32 spy, l_int32 *pxs, l_int32 *pys );
extern l_int32 ccbaGenerateGlobalLocs ( CCBORDA *ccba );
extern l_int32 ccbaGenerateStepChains ( CCBORDA *ccba );
extern l_int32 ccbaStepChainsToPixCoords ( CCBORDA *ccba, l_int32 coordtype );
extern l_int32 ccbaGenerateSPGlobalLocs ( CCBORDA *ccba, l_int32 ptsflag );
extern l_int32 ccbaGenerateSinglePath ( CCBORDA *ccba );
extern PTA * getCutPathForHole ( PIX *pix, PTA *pta, BOX *boxinner, l_int32 *pdir, l_int32 *plen );
extern PIX * ccbaDisplayBorder ( CCBORDA *ccba );
extern PIX * ccbaDisplaySPBorder ( CCBORDA *ccba );
extern PIX * ccbaDisplayImage1 ( CCBORDA *ccba );
extern PIX * ccbaDisplayImage2 ( CCBORDA *ccba );
extern l_int32 ccbaWrite ( const char *filename, CCBORDA *ccba );
extern l_int32 ccbaWriteStream ( FILE *fp, CCBORDA *ccba );
extern CCBORDA * ccbaRead ( const char *filename );
extern CCBORDA * ccbaReadStream ( FILE *fp );
extern l_int32 ccbaWriteSVG ( const char *filename, CCBORDA *ccba );
extern char * ccbaWriteSVGString ( const char *filename, CCBORDA *ccba );
extern PIXCMAP * pixcmapCreate ( l_int32 depth );
extern PIXCMAP * pixcmapCopy ( PIXCMAP *cmaps );
extern void pixcmapDestroy ( PIXCMAP **pcmap );
extern l_int32 pixcmapAddColor ( PIXCMAP *cmap, l_int32 rval, l_int32 gval, l_int32 bval );
extern l_int32 pixcmapAddNewColor ( PIXCMAP *cmap, l_int32 rval, l_int32 gval, l_int32 bval, l_int32 *pindex );
extern l_int32 pixcmapAddBlackOrWhite ( PIXCMAP *cmap, l_int32 color, l_int32 *pindex );
extern l_int32 pixcmapGetCount ( PIXCMAP *cmap );
extern l_int32 pixcmapGetFreeCount ( PIXCMAP *cmap );
extern l_int32 pixcmapClear ( PIXCMAP *cmap );
extern l_int32 pixcmapGetColor ( PIXCMAP *cmap, l_int32 index, l_int32 *prval, l_int32 *pgval, l_int32 *pbval );
extern l_int32 pixcmapResetColor ( PIXCMAP *cmap, l_int32 index, l_int32 rval, l_int32 gval, l_int32 bval );
extern l_int32 pixcmapGetIndex ( PIXCMAP *cmap, l_int32 rval, l_int32 gval, l_int32 bval, l_int32 *pindex );
extern l_int32 pixcmapHasColor ( PIXCMAP *cmap, l_int32 *pcolor );
extern l_int32 pixcmapGetRankIntensity ( PIXCMAP *cmap, l_float32 rankval, l_int32 *pindex );
extern PIXCMAP * pixcmapReadStream ( FILE *fp );
extern l_int32 pixcmapWriteStream ( FILE *fp, PIXCMAP *cmap );
extern l_int32 pixcmapToArrays ( PIXCMAP *cmap, l_int32 **prmap, l_int32 **pgmap, l_int32 **pbmap );
extern l_int32 pixcmapGammaTRC ( PIXCMAP *cmap, l_float32 gamma, l_int32 minval, l_int32 maxval );
extern l_int32 pixcmapContrastTRC ( PIXCMAP *cmap, l_float32 factor );
extern l_int32 pixcmapShiftIntensity ( PIXCMAP *cmap, l_float32 fraction );
extern l_int32 pixcmapConvertRGBToHSV ( PIXCMAP *cmap );
extern l_int32 pixcmapConvertHSVToRGB ( PIXCMAP *cmap );
extern PIX * pixColorQuant1Pass ( PIX *pixs, l_int32 ditherflag );
extern PIX * pixOctreeColorQuant ( PIX *pixs, l_int32 colors, l_int32 ditherflag );
extern CQCELL *** octreeGenerateAndPrune ( PIX *pixs, l_int32 colors, l_int32 reservedcolors, PIXCMAP **pcmap );
extern PIX * pixOctreeQuantizePixels ( PIX *pixs, CQCELL ***cqcaa, l_int32 ditherflag );
extern l_int32 octreeFindColorCell ( l_int32 octindex, CQCELL ***cqcaa, l_int32 *pindex, l_int32 *prval, l_int32 *pgval, l_int32 *pbval );
extern CQCELL *** cqcellTreeCreate ( void );
extern void cqcellTreeDestroy ( CQCELL ****pcqcaa );
extern l_int32 makeRGBToIndexTables ( l_uint32 **prtab, l_uint32 **pgtab, l_uint32 **pbtab, l_int32 cqlevels );
extern void getRGBFromOctcube ( l_int32 cubeindex, l_int32 level, l_int32 *prval, l_int32 *pgval, l_int32 *pbval );
extern l_int32 getOctcubeIndices ( l_int32 rgbindex, l_int32 level, l_int32 *pbindex, l_int32 *psindex );
extern void getOctcubeIndexFromRGB ( l_int32 rval, l_int32 gval, l_int32 bval, l_uint32 *rtab, l_uint32 *gtab, l_uint32 *btab, l_uint32 *pindex );
extern l_int32 octcubeGetCount ( l_int32 level, l_int32 *psize );
extern PIX * pixOctreeQuant ( PIX *pixs, l_int32 maxcolors, l_int32 subsample );
extern PIX * pixFixedOctcubeQuant ( PIX *pixs, l_int32 level );
extern PIX * pixFixedOctcubeQuantRGB ( PIX *pixs, l_int32 level );
extern PIX * pixFixedOctcubeQuantCmap ( PIX *pixs, l_int32 level );
extern PIX * pixOctcubeQuantMixed ( PIX *pixs, l_int32 depth, l_int32 graylevels, l_int32 delta );
extern NUMA * pixOctcubeHistogram ( PIX *pixs, l_int32 level );
extern l_int32 * pixcmapToOctcubeLUT ( PIXCMAP *cmap, l_int32 level );
extern l_int32 pixRemoveUnusedColors ( PIX *pixs );
extern PIX * pixColorSegment ( PIX *pixs, l_int32 maxdist, l_int32 maxcolors, l_int32 selsize, l_int32 finalcolors );
extern PIX * pixColorSegmentCluster ( PIX *pixs, l_int32 maxdist, l_int32 maxcolors );
extern l_int32 pixAssignToNearestColor ( PIX *pixd, PIX *pixs, PIX *pixm, l_int32 level, l_int32 *countarray );
extern l_int32 pixColorSegmentClean ( PIX *pixs, l_int32 selsize, l_int32 *countarray );
extern l_int32 pixColorSegmentRemoveColors ( PIX *pixd, PIX *pixs, l_int32 finalcolors );
extern BOXA * pixConnComp ( PIX *pixs, PIXA **ppixa, l_int32 connectivity );
extern BOXA * pixConnCompPixa ( PIX *pixs, PIXA **ppixa, l_int32 connectivity );
extern BOXA * pixConnCompBB ( PIX *pixs, l_int32 connectivity );
extern l_int32 nextOnPixelInRaster ( PIX *pix, l_int32 xstart, l_int32 ystart, l_int32 *px, l_int32 *py );
extern l_int32 nextOnPixelInRasterLow ( l_uint32 *data, l_int32 w, l_int32 h, l_int32 wpl, l_int32 xstart, l_int32 ystart, l_int32 *px, l_int32 *py );
extern BOX * pixSeedfillBB ( PIX *pix, STACK *stack, l_int32 x, l_int32 y, l_int32 connectivity );
extern BOX * pixSeedfill4BB ( PIX *pix, STACK *stack, l_int32 x, l_int32 y );
extern BOX * pixSeedfill8BB ( PIX *pix, STACK *stack, l_int32 x, l_int32 y );
extern void pushFillsegBB ( STACK *stack, l_int32 xleft, l_int32 xright, l_int32 y, l_int32 dy, l_int32 ymax, l_int32 *pminx, l_int32 *pmaxx, l_int32 *pminy, l_int32 *pmaxy );
extern void popFillsegBB ( STACK *stack, l_int32 *pxleft, l_int32 *pxright, l_int32 *py, l_int32 *pdy );
extern PIX * pixBlockconv ( PIX *pix, l_int32 wc, l_int32 hc );
extern PIX * pixBlockconvColor ( PIX *pixs, l_int32 wc, l_int32 hc );
extern PIX * pixBlockconvGray ( PIX *pixs, PIX *pixacc, l_int32 wc, l_int32 hc );
extern PIX * pixBlockconvAccum ( PIX *pixs );
extern PIX * pixBlockrank ( PIX *pixs, PIX *pixacc, l_int32 wc, l_int32 hc, l_float32 rank );
extern PIX * pixBlocksum ( PIX *pixs, PIX *pixacc, l_int32 wc, l_int32 hc );
extern void blockconvLow ( l_uint32 *data, l_int32 w, l_int32 h, l_int32 wpl, l_uint32 *dataa, l_int32 wpla, l_int32 wc, l_int32 hc );
extern void blockconvAccumLow ( l_uint32 *datad, l_int32 w, l_int32 h, l_int32 wpld, l_uint32 *datas, l_int32 d, l_int32 wpls );
extern void blocksumLow ( l_uint32 *datad, l_int32 w, l_int32 h, l_int32 wpl, l_uint32 *dataa, l_int32 wpla, l_int32 wc, l_int32 hc );
extern PIX * pixGammaTRC ( PIX *pixd, PIX *pixs, l_float32 gamma, l_int32 minval, l_int32 maxval );
extern PIX * pixGammaTRCMasked ( PIX *pixd, PIX *pixs, PIX *pixm, l_float32 gamma, l_int32 minval, l_int32 maxval );
extern NUMA * numaGammaTRC ( l_float32 gamma, l_int32 minval, l_int32 maxval );
extern PIX * pixContrastTRC ( PIX *pixd, PIX *pixs, l_float32 factor );
extern PIX * pixContrastTRCMasked ( PIX *pixd, PIX *pixs, PIX *pixm, l_float32 factor );
extern NUMA * numaContrastTRC ( l_float32 factor );
extern l_int32 pixTRCMap ( PIX *pixs, PIX *pixm, NUMA *na );
extern PIX * pixUnsharpMask ( PIX *pix, l_int32 smooth, l_float32 fract );
extern PIX * pixUnsharpMaskColor ( PIX *pixs, l_int32 smooth, l_float32 fract );
extern PIX * pixUnsharpMaskGray ( PIX *pixs, l_int32 smooth, l_float32 fract );
extern PIX * pixHalfEdgeByBandpass ( PIX *pixs, l_int32 sm1h, l_int32 sm1v, l_int32 sm2h, l_int32 sm2v );
extern l_int32 fhmtautogen ( SELA *sela, l_int32 fileindex );
extern PIX * pixFHMTGen_1 ( PIX *pixd, PIX *pixs, char *selname );
extern l_int32 fhmtgen_low_1 ( l_uint32 *datad, l_int32 w, l_int32 h, l_int32 wpld, l_uint32 *datas, l_int32 wpls, l_int32 index );
extern PIX * pixDilateFast ( PIX *pixd, PIX *pixs, l_int32 setype, l_int32 size );
extern PIX * pixErodeFast ( PIX *pixd, PIX *pixs, l_int32 setype, l_int32 size );
extern PIX * pixOpenFast ( PIX *pixd, PIX *pixs, l_int32 setype, l_int32 size );
extern PIX * pixCloseFast ( PIX *pixd, PIX *pixs, l_int32 setype, l_int32 size );
extern PIX * pixDilateIterFast ( PIX *pixd, PIX *pixs, l_int32 setype, l_int32 size, l_int32 iters );
extern PIX * pixErodeIterFast ( PIX *pixd, PIX *pixs, l_int32 setype, l_int32 size, l_int32 iters );
extern PIX * pixOpenIterFast ( PIX *pixd, PIX *pixs, l_int32 setype, l_int32 size, l_int32 iters );
extern PIX * pixCloseIterFast ( PIX *pixd, PIX *pixs, l_int32 setype, l_int32 size, l_int32 iters );
extern l_int32 fmorphautogen ( SELA *sela, l_int32 fileindex );
extern PIX * pixFMorphopGen_1 ( PIX *pixd, PIX *pixs, l_int32 operation, char *selname );
extern l_int32 fmorphopgen_low_1 ( l_uint32 *datad, l_int32 w, l_int32 h, l_int32 wpld, l_uint32 *datas, l_int32 wpls, l_int32 index );
extern l_int32 morphop_low ( l_uint32 *datad, l_int32 w, l_int32 h, l_int32 wpld, l_uint32 *datas, l_int32 wpls, l_int32 morphtype, l_int32 setype, l_int32 size );
extern GPLOT * gplotCreate ( NUMA *nax, NUMA *nay, const char *rootname, l_int32 outformat, l_int32 plotstyle, const char *title, const char *plottitle, const char *xlabel, const char *ylabel );
extern l_int32 gplotAddPlot ( GPLOT *gplot, NUMA *nax, NUMA *nay, l_int32 plotstyle, const char *plottitle );
extern l_int32 gplotMakeOutput ( GPLOT *gplot );
extern void gplotDestroy ( GPLOT **pgplot );
extern l_int32 gplotSimple1 ( NUMA *na, l_int32 outformat, const char *outroot, const char *title );
extern l_int32 gplotSimple2 ( NUMA *na1, NUMA *na2, l_int32 outformat, const char *outroot, const char *title );
extern l_int32 gplotSimpleN ( NUMAA *naa, l_int32 outformat, const char *outroot, const char *title );
extern l_int32 gplotFromFile ( const char *filein, const char *rootout, const char *outputtype );
extern PTA * ptaGenerateLine ( l_int32 x1, l_int32 y1, l_int32 x2, l_int32 y2 );
extern PTA * ptaGenerateWideLine ( l_int32 x1, l_int32 y1, l_int32 x2, l_int32 y2, l_int32 width );
extern PTA * ptaGenerateBox ( BOX *box, l_int32 width );
extern PTA * ptaGenerateBoxa ( BOXA *boxa, l_int32 width, l_int32 removedups );
extern PTA * ptaGeneratePolyline ( PTA *ptas, l_int32 width, l_int32 removedups );
extern l_int32 pixRenderPta ( PIX *pix, PTA *pta, l_int32 op );
extern l_int32 pixRenderPtaArb ( PIX *pix, PTA *pta, l_uint8 rval, l_uint8 gval, l_uint8 bval );
extern l_int32 pixRenderPtaBlend ( PIX *pix, PTA *pta, l_uint8 rval, l_uint8 gval, l_uint8 bval, l_float32 fract );
extern l_int32 pixRenderLine ( PIX *pix, l_int32 x1, l_int32 y1, l_int32 x2, l_int32 y2, l_int32 width, l_int32 op );
extern l_int32 pixRenderLineArb ( PIX *pix, l_int32 x1, l_int32 y1, l_int32 x2, l_int32 y2, l_int32 width, l_uint8 rval, l_uint8 gval, l_uint8 bval );
extern l_int32 pixRenderLineBlend ( PIX *pix, l_int32 x1, l_int32 y1, l_int32 x2, l_int32 y2, l_int32 width, l_uint8 rval, l_uint8 gval, l_uint8 bval, l_float32 fract );
extern l_int32 pixRenderBox ( PIX *pix, BOX *box, l_int32 width, l_int32 op );
extern l_int32 pixRenderBoxArb ( PIX *pix, BOX *box, l_int32 width, l_uint8 rval, l_uint8 gval, l_uint8 bval );
extern l_int32 pixRenderBoxBlend ( PIX *pix, BOX *box, l_int32 width, l_uint8 rval, l_uint8 gval, l_uint8 bval, l_float32 fract );
extern l_int32 pixRenderBoxa ( PIX *pix, BOXA *boxa, l_int32 width, l_int32 op );
extern l_int32 pixRenderBoxaArb ( PIX *pix, BOXA *boxa, l_int32 width, l_uint8 rval, l_uint8 gval, l_uint8 bval );
extern l_int32 pixRenderBoxaBlend ( PIX *pix, BOXA *boxa, l_int32 width, l_uint8 rval, l_uint8 gval, l_uint8 bval, l_float32 fract, l_int32 removedups );
extern l_int32 pixRenderPolyline ( PIX *pix, PTA *ptas, l_int32 width, l_int32 op );
extern l_int32 pixRenderPolylineArb ( PIX *pix, PTA *ptas, l_int32 width, l_uint8 rval, l_uint8 gval, l_uint8 bval );
extern l_int32 pixRenderPolylineBlend ( PIX *pix, PTA *ptas, l_int32 width, l_uint8 rval, l_uint8 gval, l_uint8 bval, l_float32 fract, l_int32 removedups );
extern PIX * pixRenderContours ( PIX *pixs, l_int32 startval, l_int32 incr, l_int32 outdepth );
extern PIX * pixErodeGray ( PIX *pixs, l_int32 size, l_int32 shape );
extern PIX * pixDilateGray ( PIX *pixs, l_int32 size, l_int32 shape );
extern PIX * pixOpenGray ( PIX *pixs, l_int32 size, l_int32 shape );
extern PIX * pixCloseGray ( PIX *pixs, l_int32 size, l_int32 shape );
extern void dilateGrayLow ( l_uint32 *datad, l_int32 w, l_int32 h, l_int32 wpld, l_uint32 *datas, l_int32 wpls, l_int32 size, l_int32 direction, l_uint8 *buffer, l_uint8 *maxarray );
extern void erodeGrayLow ( l_uint32 *datad, l_int32 w, l_int32 h, l_int32 wpld, l_uint32 *datas, l_int32 wpls, l_int32 size, l_int32 direction, l_uint8 *buffer, l_uint8 *minarray );
extern PIX * pixDitherToBinary ( PIX *pixs );
extern PIX * pixDitherToBinarySpec ( PIX *pixs, l_int32 lowerclip, l_int32 upperclip );
extern PIX * pixThresholdToBinary ( PIX *pixs, l_int32 thresh );
extern PIX * pixDitherToBinaryLUT ( PIX *pixs, l_int32 lowerclip, l_int32 upperclip );
extern PIX * pixGenerateMaskByValue ( PIX *pixs, l_int32 val );
extern PIX * pixDitherTo2bpp ( PIX *pixs, l_int32 cmapflag );
extern PIX * pixDitherTo2bppSpec ( PIX *pixs, l_int32 lowerclip, l_int32 upperclip, l_int32 cmapflag );
extern PIX * pixThresholdTo2bpp ( PIX *pixs, l_int32 nlevels, l_int32 cmapflag );
extern PIX * pixThresholdTo4bpp ( PIX *pixs, l_int32 nlevels, l_int32 cmapflag );
extern PIX * pixThresholdOn8bpp ( PIX *pixs, l_int32 nlevels, l_int32 cmapflag );
extern l_int32 * makeGrayQuantIndexTable ( l_int32 nlevels );
extern l_int32 * makeGrayQuantTargetTable ( l_int32 nlevels, l_int32 depth );
extern void ditherToBinaryLow ( l_uint32 *datad, l_int32 w, l_int32 h, l_int32 wpld, l_uint32 *datas, l_int32 wpls, l_uint32 *bufs1, l_uint32 *bufs2, l_int32 lowerclip, l_int32 upperclip );
extern void ditherToBinaryLineLow ( l_uint32 *lined, l_int32 w, l_uint32 *bufs1, l_uint32 *bufs2, l_int32 lowerclip, l_int32 upperclip, l_int32 lastlineflag );
extern void thresholdToBinaryLow ( l_uint32 *datad, l_int32 w, l_int32 h, l_int32 wpld, l_uint32 *datas, l_int32 d, l_int32 wpls, l_int32 thresh );
extern void thresholdToBinaryLineLow ( l_uint32 *lined, l_int32 w, l_uint32 *lines, l_int32 d, l_int32 thresh );
extern void ditherToBinaryLUTLow ( l_uint32 *datad, l_int32 w, l_int32 h, l_int32 wpld, l_uint32 *datas, l_int32 wpls, l_uint32 *bufs1, l_uint32 *bufs2, l_int32 *tabval, l_int32 *tab38, l_int32 *tab14 );
extern void ditherToBinaryLineLUTLow ( l_uint32 *lined, l_int32 w, l_uint32 *bufs1, l_uint32 *bufs2, l_int32 *tabval, l_int32 *tab38, l_int32 *tab14, l_int32 lastlineflag );
extern l_int32 make8To1DitherTables ( l_int32 **ptabval, l_int32 **ptab38, l_int32 **ptab14, l_int32 lowerclip, l_int32 upperclip );
extern void ditherTo2bppLow ( l_uint32 *datad, l_int32 w, l_int32 h, l_int32 wpld, l_uint32 *datas, l_int32 wpls, l_uint32 *bufs1, l_uint32 *bufs2, l_int32 *tabval, l_int32 *tab38, l_int32 *tab14 );
extern void ditherTo2bppLineLow ( l_uint32 *lined, l_int32 w, l_uint32 *bufs1, l_uint32 *bufs2, l_int32 *tabval, l_int32 *tab38, l_int32 *tab14, l_int32 lastlineflag );
extern l_int32 make8To2DitherTables ( l_int32 **ptabval, l_int32 **ptab38, l_int32 **ptab14, l_int32 cliptoblack, l_int32 cliptowhite );
extern void thresholdTo2bppLow ( l_uint32 *datad, l_int32 h, l_int32 wpld, l_uint32 *datas, l_int32 wpls, l_int32 *tab );
extern void thresholdTo2bppLineLow ( l_uint32 *lined, l_uint32 *lines, l_int32 wpls, l_int32 *tab );
extern void thresholdTo4bppLow ( l_uint32 *datad, l_int32 h, l_int32 wpld, l_uint32 *datas, l_int32 wpls, l_int32 *tab );
extern void thresholdTo4bppLineLow ( l_uint32 *lined, l_uint32 *lines, l_int32 wpls, l_int32 *tab );
extern JBCLASSER * jbRankHausInit ( l_int32 components, l_int32 maxwidth, l_int32 maxheight, l_int32 size, l_float32 rank );
extern JBCLASSER * jbCorrelationInit ( l_int32 components, l_int32 maxwidth, l_int32 maxheight, l_float32 thresh, l_float32 weightfactor );
extern l_int32 jbAddPages ( JBCLASSER *classer, SARRAY *safiles );
extern l_int32 jbAddPage ( JBCLASSER *classer, PIX *pixs );
extern l_int32 jbClassifyRankHaus ( JBCLASSER *classer, BOXA *boxa, PIXA *pixas );
extern l_int32 pixHaustest ( PIX *pix1, PIX *pix2, PIX *pix3, PIX *pix4, l_float32 delx, l_float32 dely );
extern l_int32 pixRankHaustest ( PIX *pix1, PIX *pix2, PIX *pix3, PIX *pix4, l_float32 delx, l_float32 dely, l_int32 area1, l_int32 area3, l_float32 rank, l_int32 *tab8 );
extern l_int32 jbClassifyCorrelation ( JBCLASSER *classer, BOXA *boxa, PIXA *pixas );
extern l_float32 pixCorrelationScore ( PIX *pix1, PIX *pix2, l_int32 area1, l_int32 area2, l_float32 delx, l_float32 dely, l_int32 *tab );
extern l_int32 jbGetComponents ( PIX *pixs, l_int32 components, l_int32 maxwidth, l_int32 maxheight, BOXA **pboxad, PIXA **ppixad );
extern PIXA * jbAccumulateComposites ( PIXAA *pixaa, NUMA **pna, PTA **pptat );
extern PIXA * jbTemplatesFromComposites ( PIXA *pixac, NUMA *na );
extern JBCLASSER * jbClasserCreate ( l_int32 method, l_int32 components );
extern void jbClasserDestroy ( JBCLASSER **pclasser );
extern JBDATA * jbDataSave ( JBCLASSER *classer );
extern void jbDataDestroy ( JBDATA **pdata );
extern l_int32 jbDataWrite ( const char *rootout, JBDATA *jbdata );
extern JBDATA * jbDataRead ( const char *rootname );
extern PIXA * jbDataRender ( JBDATA *data, l_int32 debugflag );
extern l_int32 jbGetULCorners ( JBCLASSER *classer, BOXA *boxa );
extern l_int32 jbGetLLCorners ( JBCLASSER *classer );
extern PIX * pixReadJpeg ( const char *filename, l_int32 cmflag, l_int32 reduction, l_int32 *pnwarn );
extern PIX * pixReadStreamJpeg ( FILE *fp, l_int32 cmflag, l_int32 reduction, l_int32 *pnwarn, l_int32 hint );
extern l_int32 pixWriteJpeg ( const char *filename, PIX *pix, l_int32 quality, l_int32 progressive );
extern l_int32 pixWriteStreamJpeg ( FILE *fp, PIX *pix, l_int32 quality, l_int32 progressive );
extern void listDestroy ( DLLIST **phead );
extern l_int32 listAddToHead ( DLLIST **phead, void *data );
extern l_int32 listAddToTail ( DLLIST **phead, DLLIST **ptail, void *data );
extern l_int32 listInsertBefore ( DLLIST **phead, DLLIST *elem, void *data );
extern l_int32 listInsertAfter ( DLLIST **phead, DLLIST *elem, void *data );
extern void * listRemoveElement ( DLLIST **phead, DLLIST *elem );
extern void * listRemoveFromHead ( DLLIST **phead );
extern void * listRemoveFromTail ( DLLIST **phead, DLLIST **ptail );
extern DLLIST * listFindElement ( DLLIST *head, void *data );
extern DLLIST * listFindTail ( DLLIST *head );
extern l_int32 listGetCount ( DLLIST *head );
extern l_int32 listReverse ( DLLIST **phead );
extern l_int32 listJoin ( DLLIST **phead1, DLLIST **phead2 );
extern PIX * generateBinaryMaze ( l_int32 w, l_int32 h, l_int32 xi, l_int32 yi, l_float32 wallps, l_float32 ranis );
extern PTA * searchBinaryMaze ( PIX *pixs, l_int32 xi, l_int32 yi, l_int32 xf, l_int32 yf, PIX **ppixd );
extern PTA * searchGrayMaze ( PIX *pixs, l_int32 xi, l_int32 yi, l_int32 xf, l_int32 yf, PIX **ppixd );
extern PIX * pixDisplayPta ( PIX *pixs, PTA *pta );
extern PIX * pixDisplayPtaa ( PIX *pixs, PTAA *ptaa );
extern PIX * pixDilate ( PIX *pixd, PIX *pixs, SEL *sel );
extern PIX * pixErode ( PIX *pixd, PIX *pixs, SEL *sel );
extern PIX * pixHMT ( PIX *pixd, PIX *pixs, SEL *sel );
extern PIX * pixOpen ( PIX *pixd, PIX *pixs, SEL *sel );
extern PIX * pixClose ( PIX *pixd, PIX *pixs, SEL *sel );
extern PIX * pixCloseSafe ( PIX *pixd, PIX *pixs, SEL *sel );
extern PIX * pixOpenGeneralized ( PIX *pixd, PIX *pixs, SEL *sel );
extern PIX * pixCloseGeneralized ( PIX *pixd, PIX *pixs, SEL *sel );
extern void resetMorphBoundaryCondition ( l_int32 bc );
extern PIX * pixSelectiveConnCompClose ( PIX *pixs, SEL *sel1, SEL *sel2, l_int32 connectivity, l_int32 minw, l_int32 minh );
extern PIX * pixSelectiveConnCompFill ( PIX *pixs, l_int32 connectivity, l_int32 minw, l_int32 minh );
extern l_int32 pixRemoveMatchedPattern ( PIX *pixs, PIX *pixp, PIX *pixe, l_int32 x0, l_int32 y0, l_int32 dsize );
extern PIX * pixDisplayMatchedPattern ( PIX *pixs, PIX *pixp, PIX *pixe, l_int32 x0, l_int32 y0, l_uint32 color, l_float32 scale, l_int32 nlevels );
extern PIX * pixSeedfillMorph ( PIX *pixs, PIX *pixm, l_int32 connectivity );
extern NUMA * pixRunHistogramMorph ( PIX *pixs, l_int32 runtype, l_int32 direction, l_int32 maxsize );
extern PIX * pixTophat ( PIX *pixs, l_int32 size, l_int32 shape, l_int32 type );
extern PIX * pixHDome ( PIX *pixs, l_int32 height );
extern PIX * pixMorphGradient ( PIX *pixs, l_int32 size, l_int32 shape, l_int32 smoothing );
extern PTA * pixaCentroids ( PIXA *pixa );
extern PIX * pixMorphSequence ( PIX *pixs, const char *sequence, l_int32 dispsep );
extern NUMA * numaCreate ( l_int32 n );
extern void numaDestroy ( NUMA **pna );
extern NUMA * numaCopy ( NUMA *na );
extern NUMA * numaClone ( NUMA *na );
extern l_int32 numaEmpty ( NUMA *na );
extern l_int32 numaAddNumber ( NUMA *na, l_float32 val );
extern l_int32 numaExtendArray ( NUMA *na );
extern l_int32 numaInsertNumber ( NUMA *na, l_int32 index, l_float32 val );
extern l_int32 numaRemoveNumber ( NUMA *na, l_int32 index );
extern l_int32 numaGetCount ( NUMA *na );
extern l_int32 numaGetFValue ( NUMA *na, l_int32 index, l_float32 *pval );
extern l_int32 numaGetIValue ( NUMA *na, l_int32 index, l_int32 *pival );
extern l_int32 numaSetValue ( NUMA *na, l_int32 index, l_float32 val );
extern l_int32 * numaGetIArray ( NUMA *na );
extern l_float32 * numaGetFArray ( NUMA *na );
extern l_int32 numaGetRefcount ( NUMA *na );
extern l_int32 numaChangeRefcount ( NUMA *na, l_int32 delta );
extern l_int32 numaGetMax ( NUMA *na, l_float32 *pmaxval, l_int32 *pimaxloc );
extern l_int32 numaGetMin ( NUMA *na, l_float32 *pminval, l_int32 *piminloc );
extern l_int32 numaGetSum ( NUMA *na, l_float32 *psum );
extern l_int32 numaGetSumOnInterval ( NUMA *na, l_int32 first, l_int32 last, l_float32 *psum );
extern l_int32 numaFitMax ( NUMA *na, l_float32 *pmaxval, NUMA *naloc, l_float32 *pmaxloc );
extern NUMA * numaInterpolate ( NUMA *nas, l_int32 startval, l_int32 incr, l_int32 size );
extern NUMA * numaSort ( NUMA *naout, NUMA *nain, l_int32 sortorder );
extern NUMA * numaSortIndex ( NUMA *na, l_int32 sortorder );
extern l_int32 numaGetMedian ( NUMA *na, l_float32 *pval );
extern l_int32 numaGetMode ( NUMA *na, l_float32 *pval, l_int32 *pcount );
extern NUMA * numaConvertToInt ( NUMA *nas );
extern NUMA * numaMakeHistogram ( NUMA *na, l_int32 maxbins, l_int32 *pbinsize, l_int32 *pbinstart );
extern NUMA * numaMakeHistogramClipped ( NUMA *na, l_int32 binsize, l_int32 maxsize );
extern NUMA * numaRebinHistogram ( NUMA *nas, l_int32 newsize );
extern NUMA * numaNormalizeHistogram ( NUMA *nas, l_float32 area );
extern l_int32 numaHistogramGetRankFromVal ( NUMA *na, l_int32 startval, l_int32 binsize, l_float32 rval, l_float32 *prank );
extern l_int32 numaHistogramGetValFromRank ( NUMA *na, l_int32 startval, l_int32 binsize, l_float32 rank, l_float32 *prval );
extern NUMA * numaConvolve ( NUMA *na, l_int32 halfwidth );
extern NUMA * numaFindPeaks ( NUMA *nas, l_int32 nmax, l_float32 fract1, l_float32 fract2 );
extern NUMA * numaMakeSequence ( l_float32 startval, l_float32 increment, l_int32 size );
extern l_int32 numaGetNonzeroRange ( NUMA *na, l_int32 *pfirst, l_int32 *plast );
extern NUMA * numaClipToInterval ( NUMA *nas, l_int32 first, l_int32 last );
extern l_int32 numaJoin ( NUMA *nad, NUMA *nas, l_int32 istart, l_int32 iend );
extern NUMA * numaRead ( const char *filename );
extern NUMA * numaReadStream ( FILE *fp );
extern l_int32 numaWrite ( const char *filename, NUMA *na );
extern l_int32 numaWriteStream ( FILE *fp, NUMA *na );
extern NUMAA * numaaCreate ( l_int32 n );
extern void numaaDestroy ( NUMAA **pnaa );
extern l_int32 numaaAddNuma ( NUMAA *naa, NUMA *na, l_int32 copyflag );
extern l_int32 numaaExtendArray ( NUMAA *naa );
extern l_int32 numaaGetCount ( NUMAA *naa );
extern NUMA * numaaGetNuma ( NUMAA *naa, l_int32 index, l_int32 accessflag );
extern NUMA2D * numa2dCreate ( l_int32 nrows, l_int32 ncols, l_int32 initsize );
extern void numa2dDestroy ( NUMA2D **pna2d );
extern l_int32 numa2dAddNumber ( NUMA2D *na2d, l_int32 row, l_int32 col, l_float32 val );
extern l_int32 numa2dGetCount ( NUMA2D *na2d, l_int32 row, l_int32 col );
extern NUMA * numa2dGetNuma ( NUMA2D *na2d, l_int32 row, l_int32 col );
extern l_int32 numa2dGetFValue ( NUMA2D *na2d, l_int32 row, l_int32 col, l_int32 index, l_float32 *pval );
extern l_int32 numa2dGetIValue ( NUMA2D *na2d, l_int32 row, l_int32 col, l_int32 index, l_int32 *pval );
extern NUMAHASH * numaHashCreate ( l_int32 nbuckets, l_int32 initsize );
extern void numaHashDestroy ( NUMAHASH **pnahash );
extern NUMA * numaHashGetNuma ( NUMAHASH *nahash, l_uint32 key );
extern l_int32 numaHashAdd ( NUMAHASH *nahash, l_uint32 key, l_float32 value );
extern l_int32 pixSetSelectCmap ( PIX *pixs, BOX *box, l_int32 sindex, l_int32 rval, l_int32 gval, l_int32 bval );
extern l_int32 pixColorGrayCmap ( PIX *pixs, BOX *box, l_int32 type, l_int32 rval, l_int32 gval, l_int32 bval );
extern l_int32 pixSetSelectMaskedCmap ( PIX *pixs, PIX *pixm, l_int32 x, l_int32 y, l_int32 sindex, l_int32 rval, l_int32 gval, l_int32 bval );
extern l_int32 pixSetMaskedCmap ( PIX *pixs, PIX *pixm, l_int32 x, l_int32 y, l_int32 rval, l_int32 gval, l_int32 bval );
extern char * parseForProtos ( const char *filein );
extern PHEAP * pheapCreate ( l_int32 nalloc, l_int32 direction );
extern void pheapDestroy ( PHEAP **pph, l_int32 freeflag );
extern l_int32 pheapAdd ( PHEAP *ph, void *item );
extern l_int32 pheapExtendArray ( PHEAP *ph );
extern void * pheapRemove ( PHEAP *ph );
extern l_int32 pheapGetCount ( PHEAP *ph );
extern l_int32 pheapSwapUp ( PHEAP *ph, l_int32 index );
extern l_int32 pheapSwapDown ( PHEAP *ph );
extern l_int32 pheapSort ( PHEAP *ph );
extern l_int32 pheapSortStrictOrder ( PHEAP *ph );
extern l_int32 pheapPrint ( FILE *fp, PHEAP *ph );
extern PIX * pixCreate ( l_int32 width, l_int32 height, l_int32 depth );
extern PIX * pixCreateTemplate ( PIX *pixs );
extern PIX * pixClone ( PIX *pixs );
extern void pixDestroy ( PIX **ppix );
extern PIX * pixCopy ( PIX *pixd, PIX *pixs );
extern l_int32 pixCopyColormap ( PIX *pixd, PIX *pixs );
extern l_int32 pixSizesEqual ( PIX *pix1, PIX *pix2 );
extern l_int32 pixGetWidth ( PIX *pix );
extern l_int32 pixSetWidth ( PIX *pix, l_int32 width );
extern l_int32 pixGetHeight ( PIX *pix );
extern l_int32 pixSetHeight ( PIX *pix, l_int32 height );
extern l_int32 pixGetDepth ( PIX *pix );
extern l_int32 pixSetDepth ( PIX *pix, l_int32 depth );
extern l_int32 pixGetWpl ( PIX *pix );
extern l_int32 pixSetWpl ( PIX *pix, l_int32 wpl );
extern l_int32 pixGetRefcount ( PIX *pix );
extern l_int32 pixChangeRefcount ( PIX *pix, l_int32 delta );
extern l_uint32 pixGetXRes ( PIX *pix );
extern l_uint32 pixGetYRes ( PIX *pix );
extern l_int32 pixSetXRes ( PIX *pix, l_uint32 res );
extern l_int32 pixCopyResolution ( PIX *pixd, PIX *pixs );
extern l_int32 pixScaleResolution ( PIX *pix, l_float32 xscale, l_float32 yscale );
extern l_int32 pixSetYRes ( PIX *pix, l_uint32 res );
extern l_int32 pixGetInputFormat ( PIX *pix );
extern l_int32 pixSetInputFormat ( PIX *pix, l_int32 informat );
extern l_int32 pixCopyInputFormat ( PIX *pixd, PIX *pixs );
extern char * pixGetText ( PIX *pix );
extern l_int32 pixSetText ( PIX *pix, const char *textstring );
extern l_int32 pixAddText ( PIX *pix, const char *textstring );
extern l_int32 pixCopyText ( PIX *pixd, PIX *pixs );
extern l_int32 pixDestroyColormap ( PIX *pix );
extern PIXCMAP * pixGetColormap ( PIX *pix );
extern l_int32 pixSetColormap ( PIX *pix, PIXCMAP *colormap );
extern l_uint32 * pixGetData ( PIX *pix );
extern l_int32 pixSetData ( PIX *pix, l_uint32 *data );
extern l_int32 pixPrintStreamInfo ( FILE *fp, PIX *pix, const char *text );
extern l_int32 pixGetPixel ( PIX *pix, l_int32 x, l_int32 y, l_uint32 *pval );
extern l_int32 pixSetPixel ( PIX *pix, l_int32 x, l_int32 y, l_uint32 val );
extern l_int32 pixClearPixel ( PIX *pix, l_int32 x, l_int32 y );
extern l_int32 pixFlipPixel ( PIX *pix, l_int32 x, l_int32 y );
extern void setPixelLow ( l_uint32 *line, l_int32 x, l_int32 depth, l_uint32 val );
extern l_int32 pixClearAll ( PIX *pix );
extern l_int32 pixSetAll ( PIX *pix );
extern l_int32 pixSetAllArbitrary ( PIX *pix, l_uint32 val );
extern l_int32 pixSetPadBits ( PIX *pix, l_int32 val );
extern l_int32 pixSetPadBitsBand ( PIX *pix, l_int32 by, l_int32 bh, l_int32 val );
extern l_int32 pixSetOrClearBorder ( PIX *pixs, l_int32 leftpix, l_int32 rightpix, l_int32 toppix, l_int32 bottompix, l_int32 op );
extern l_int32 pixSetBorderVal ( PIX *pixs, l_int32 leftpix, l_int32 rightpix, l_int32 toppix, l_int32 bottompix, l_uint32 val );
extern l_int32 pixSetMasked ( PIX *pixd, PIX *pixm, l_uint32 val );
extern l_int32 pixSetMaskedGeneral ( PIX *pixd, PIX *pixm, l_uint32 val, l_int32 x, l_int32 y );
extern l_int32 pixCombineMasked ( PIX *pixd, PIX *pixs, PIX *pixm );
extern l_int32 pixPaintThroughMask ( PIX *pixd, PIX *pixm, l_int32 x, l_int32 y, l_uint32 val );
extern PIX * pixInvert ( PIX *pixd, PIX *pixs );
extern PIX * pixOr ( PIX *pixd, PIX *pixs1, PIX *pixs2 );
extern PIX * pixAnd ( PIX *pixd, PIX *pixs1, PIX *pixs2 );
extern PIX * pixXor ( PIX *pixd, PIX *pixs1, PIX *pixs2 );
extern PIX * pixSubtract ( PIX *pixd, PIX *pixs1, PIX *pixs2 );
extern l_int32 pixZero ( PIX *pix, l_int32 *pempty );
extern l_int32 pixCountPixels ( PIX *pix, l_int32 *pcount, l_int32 *tab8 );
extern NUMA * pixaCountPixels ( PIXA *pixa );
extern l_int32 pixCountPixelsInRow ( PIX *pix, l_int32 row, l_int32 *pcount, l_int32 *tab8 );
extern NUMA * pixCountPixelsByRow ( PIX *pix, l_int32 *tab8 );
extern l_int32 pixThresholdPixels ( PIX *pix, l_int32 thresh, l_int32 *pabove, l_int32 *tab8 );
extern l_int32 * makePixelSumTab8 ( void );
extern NUMA * pixGrayHistogram ( PIX *pixs );
extern PIX * pixEndianByteSwapNew ( PIX *pixs );
extern l_int32 pixEndianByteSwap ( PIX *pix );
extern l_int32 pixEndianTwoByteSwap ( PIX *pix );
extern PIX * pixCreateRGBImage ( PIX *pixr, PIX *pixg, PIX *pixb );
extern PIX * pixGetRGBComponent ( PIX *pixs, l_int32 color );
extern l_int32 pixSetRGBComponent ( PIX *pixd, PIX *pixs, l_int32 color );
extern l_int32 composeRGBPixel ( l_int32 rval, l_int32 gval, l_int32 bval, l_uint32 *ppixel );
extern l_int32 pixGetRGBLine ( PIX *pixs, l_int32 row, l_uint8 *bufr, l_uint8 *bufg, l_uint8 *bufb );
extern PIX * pixAddBorder ( PIX *pixs, l_int32 npix, l_uint32 val );
extern PIX * pixRemoveBorder ( PIX *pixs, l_int32 npix );
extern PIX * pixAddBorderGeneral ( PIX *pixs, l_int32 leftpix, l_int32 rightpix, l_int32 toppix, l_int32 bottompix, l_uint32 val );
extern PIX * pixRemoveBorderGeneral ( PIX *pixs, l_int32 leftpix, l_int32 rightpix, l_int32 toppix, l_int32 bottompix );
extern l_int32 pixEqual ( PIX *pix1, PIX *pix2, l_int32 *psame );
extern l_int32 pixEqualWithCmap ( PIX *pix1, PIX *pix2, l_int32 *psame );
extern PIX * pixClipRectangle ( PIX *pixs, BOX *box, BOX **pboxc );
extern l_int32 pixClipToForeground ( PIX *pixs, PIX **ppixd, BOX **pbox );
extern PIXA * pixaCreate ( l_int32 n );
extern PIXA * pixaCreateFromPix ( PIX *pixs, l_int32 n, l_int32 cellw, l_int32 cellh );
extern PIXA * pixaSplitPix ( PIX *pixs, l_int32 nx, l_int32 ny, l_int32 borderwidth, l_uint32 bordercolor );
extern void pixaDestroy ( PIXA **ppixa );
extern PIXA * pixaCopy ( PIXA *pixa, l_int32 copyflag );
extern l_int32 pixaAddPix ( PIXA *pixa, PIX *pix, l_int32 copyflag );
extern l_int32 pixaExtendArray ( PIXA *pixa );
extern l_int32 pixaAddBox ( PIXA *pixa, BOX *box, l_int32 copyflag );
extern l_int32 pixaGetCount ( PIXA *pixa );
extern l_int32 pixaChangeRefcount ( PIXA *pixa, l_int32 delta );
extern PIX * pixaGetPix ( PIXA *pixa, l_int32 index, l_int32 accesstype );
extern BOXA * pixaGetBoxa ( PIXA *pixa, l_int32 accesstype );
extern BOX * pixaGetBox ( PIXA *pixa, l_int32 index, l_int32 accesstype );
extern l_int32 pixaReplacePix ( PIXA *pixa, l_int32 index, PIX *pix, BOX *box );
extern l_int32 pixaInsertPix ( PIXA *pixa, l_int32 index, PIX *pixs, BOX *box );
extern l_int32 pixaRemovePix ( PIXA *pixa, l_int32 index );
extern l_int32 pixaJoin ( PIXA *pixad, PIXA *pixas, l_int32 istart, l_int32 iend );
extern PIXA * pixaSort ( PIXA *pixas, l_int32 sorttype, l_int32 sortorder, NUMA **pnaindex, l_int32 copyflag );
extern l_int32 pixaSizeRange ( PIXA *pixa, l_int32 *pminw, l_int32 *pminh, l_int32 *pmaxw, l_int32 *pmaxh );
extern PIXA * pixaRemoveLargeComponents ( PIXA *pixas, l_int32 maxwidth, l_int32 maxheight, l_int32 type );
extern PIXA * pixaRemoveSmallComponents ( PIXA *pixas, l_int32 minwidth, l_int32 minheight, l_int32 type );
extern PIXA * pixaClipToPix ( PIXA *pixas, PIX *pixs );
extern PIXAA * pixaaCreate ( l_int32 n );
extern void pixaaDestroy ( PIXAA **ppixaa );
extern l_int32 pixaaAddPixa ( PIXAA *pixaa, PIXA *pixa, l_int32 copyflag );
extern l_int32 pixaaExtendArray ( PIXAA *pixaa );
extern l_int32 pixaaGetCount ( PIXAA *pixaa );
extern PIXA * pixaaGetPixa ( PIXAA *pixaa, l_int32 index, l_int32 accesstype );
extern PIX * pixaDisplay ( PIXA *pixa, l_int32 w, l_int32 h );
extern PIX * pixaDisplayRandomCmap ( PIXA *pixa, l_int32 w, l_int32 h );
extern PIX * pixaDisplayOnLattice ( PIXA *pixa, l_int32 xspace, l_int32 yspace );
extern PIX * pixaDisplayUnsplit ( PIXA *pixa, l_int32 nx, l_int32 ny, l_int32 borderwidth, l_uint32 bordercolor );
extern PIX * pixaDisplayTiled ( PIXA *pixa, l_int32 maxwidth, l_int32 background, l_int32 spacing );
extern PIX * pixaaDisplay ( PIXAA *pixaa, l_int32 w, l_int32 h );
extern PIX * pixaaDisplayByPixa ( PIXAA *pixaa, l_int32 xspace, l_int32 yspace, l_int32 maxw );
extern PIXA * pixaRead ( const char *filename );
extern PIXA * pixaReadStream ( FILE *fp );
extern l_int32 pixaWrite ( const char *filename, PIXA *pixa );
extern l_int32 pixaWriteStream ( FILE *fp, PIXA *pixa );
extern l_int32 pixAddConstantGray ( PIX *pixs, l_int32 val );
extern PIX * pixAddGray ( PIX *pixd, PIX *pixs1, PIX *pixs2 );
extern PIX * pixSubtractGray ( PIX *pixd, PIX *pixs1, PIX *pixs2 );
extern PIX * pixThresholdToValue ( PIX *pixd, PIX *pixs, l_int32 threshval, l_int32 setval );
extern PIX * pixInitAccumulate ( l_int32 w, l_int32 h, l_uint32 offset );
extern PIX * pixFinalAccumulate ( PIX *pixs, l_uint32 offset, l_int32 depth );
extern l_int32 pixAccumulate ( PIX *pixd, PIX *pixs, l_int32 op );
extern l_int32 pixMultConstAccumulate ( PIX *pixs, l_float32 factor, l_uint32 offset );
extern PIX * pixAbsDifference ( PIX *pixs1, PIX *pixs2 );
extern PIX * pixMinOrMax ( PIX *pixd, PIX *pixs1, PIX *pixs2, l_int32 type );
extern PIX * pixMaxDynamicRange ( PIX *pixs, l_int32 type );
extern l_float32 * makeLogBase2Tab ( void );
extern l_float32 getLogBase2 ( l_int32 val, l_float32 *logtab );
extern PIX * pixThreshold8 ( PIX *pixs, l_int32 d, l_int32 nlevels, l_int32 cmapflag );
extern PIX * pixRemoveColormap ( PIX *pixs, l_int32 type );
extern PIX * pixConvertRGBToGray ( PIX *pixs, l_float32 rwt, l_float32 gwt, l_float32 bwt );
extern PIX * pixConvertRGBToGrayFast ( PIX *pixs );
extern PIX * pixConvertGrayToColormap ( PIX *pixs );
extern PIX * pixConvertGrayToColormap8 ( PIX *pixs, l_int32 mindepth );
extern PIX * pixConvertRGBToColormap ( PIX *pixs, l_int32 level, l_int32 *pnerrors );
extern PIX * pixConvert16To8 ( PIX *pixs, l_int32 whichbyte );
extern PIX * pixConvertGrayToFalseColor ( PIX *pixs, l_float32 gamma );
extern PIX * pixUnpackBinary ( PIX *pixs, l_int32 depth, l_int32 invert );
extern PIX * pixConvert1To16 ( PIX *pixd, PIX *pixs, l_uint16 val0, l_uint16 val1 );
extern PIX * pixConvert1To32 ( PIX *pixd, PIX *pixs, l_uint32 val0, l_uint32 val1 );
extern PIX * pixConvert1To2Cmap ( PIX *pixs );
extern PIX * pixConvert1To2 ( PIX *pixd, PIX *pixs, l_int32 val0, l_int32 val1 );
extern PIX * pixConvert1To4Cmap ( PIX *pixs );
extern PIX * pixConvert1To4 ( PIX *pixd, PIX *pixs, l_int32 val0, l_int32 val1 );
extern PIX * pixConvertTo8 ( PIX *pixs );
extern PIX * pixConvert1To8 ( PIX *pixd, PIX *pixs, l_uint8 val0, l_uint8 val1 );
extern PIX * pixConvert2To8 ( PIX *pixs, l_uint8 val0, l_uint8 val1, l_uint8 val2, l_uint8 val3, l_int32 cmapflag );
extern PIX * pixConvert4To8 ( PIX *pixs, l_int32 cmapflag );
extern PIX * pixConvertTo32 ( PIX *pixs );
extern PIX * pixConvert8To32 ( PIX *pixs );
extern PIX * pixConvertForPSWrap ( PIX *pixs );
extern PIX * pixConvertRGBToHSV ( PIX *pixd, PIX *pixs );
extern PIX * pixConvertHSVToRGB ( PIX *pixd, PIX *pixs );
extern l_int32 convertRGBToHSV ( l_int32 rval, l_int32 gval, l_int32 bval, l_int32 *phval, l_int32 *psval, l_int32 *pvval );
extern l_int32 convertHSVToRGB ( l_int32 hval, l_int32 sval, l_int32 vval, l_int32 *prval, l_int32 *pgval, l_int32 *pbval );
extern PIX * pixReadStreamPng ( FILE *fp );
extern l_int32 pixWriteStreamPng ( FILE *fp, PIX *pix );
extern l_int32 readHeaderPng ( const char *filename, l_int32 *pwidth, l_int32 *pheight, l_int32 *pbpc, l_int32 *pcpp, l_int32 *pcmap );
extern l_int32 freadHeaderPng ( FILE *fp, l_int32 *pwidth, l_int32 *pheight, l_int32 *pbpc, l_int32 *pcpp, l_int32 *pcmap );
extern l_int32 sreadHeaderPng ( const l_uint8 *data, l_int32 *pwidth, l_int32 *pheight, l_int32 *pbpc, l_int32 *pcpp, l_int32 *pcmap );
extern PIX * pixReadStreamPnm ( FILE *fp );
extern l_int32 pixWriteStreamPnm ( FILE *fp, PIX *pix );
extern l_int32 pixWriteStreamAsciiPnm ( FILE *fp, PIX *pix );
extern PQUEUE * pqueueCreate ( l_int32 nalloc );
extern void pqueueDestroy ( PQUEUE **ppq, l_int32 freeflag );
extern l_int32 pqueueAdd ( PQUEUE *pq, void *item );
extern l_int32 pqueueExtendArray ( PQUEUE *pq );
extern void * pqueueRemove ( PQUEUE *pq );
extern l_int32 pqueueGetCount ( PQUEUE *pq );
extern l_int32 pqueuePrint ( FILE *fp, PQUEUE *pq );
extern PIX * pixProjectiveSampled ( PIX *pixs, PTA *ptad, PTA *ptas );
extern PIX * pixProjectiveInterpolated ( PIX *pixs, PTA *ptad, PTA *ptas, l_uint8 grayval );
extern PIX * pixProjectiveInterpolatedColor ( PIX *pixs, PTA *ptad, PTA *ptas, l_uint8 grayval );
extern PIX * pixProjectiveInterpolatedGray ( PIX *pixs, PTA *ptad, PTA *ptas, l_uint8 grayval );
extern void projectiveInterpolatedLow ( l_uint32 *datad, l_int32 w, l_int32 h, l_int32 wpld, l_uint32 *datas, l_int32 wpls, l_float32 *vc );
extern l_int32 projectiveXformCoeffs ( PTA *ptas, PTA *ptad, l_float32 **pvc );
extern l_int32 projectiveXformSampled ( l_float32 *vc, l_int32 x, l_int32 y, l_int32 *pxp, l_int32 *pyp );
extern l_int32 projectiveXformInterpolated ( l_float32 *vc, l_int32 x, l_int32 y, l_int32 *pxp, l_int32 *pyp, l_int32 *pfxp, l_int32 *pfyp );
extern l_int32 convertToPSEmbed ( const char *filein, const char *fileout, l_int32 level );
extern l_int32 pixWritePSEmbed ( const char *filein, const char *fileout );
extern l_int32 pixWriteStreamPS ( FILE *fp, PIX *pix, BOX *box, l_int32 res, l_float32 scale );
extern char * pixWriteStringPS ( PIX *pixs, BOX *box, l_int32 res, l_float32 scale );
extern void getScaledParametersPS ( BOX *box, l_int32 wpix, l_int32 hpix, l_int32 res, l_float32 scale, l_float32 *pxpt, l_float32 *pypt, l_float32 *pwpt, l_float32 *phpt );
extern void convertByteToHexAscii ( l_uint8 byteval, char *pnib1, char *pnib2 );
extern l_int32 convertJpegToPSEmbed ( const char *filein, const char *fileout );
extern l_int32 convertJpegToPS ( const char *filein, const char *fileout, const char *operation, l_int32 x, l_int32 y, l_int32 res, l_float32 scale, l_int32 pageno, l_int32 endpage );
extern l_int32 convertJpegToPSString ( const char *filein, char **poutstr, l_int32 *pnbytes, l_int32 x, l_int32 y, l_int32 res, l_float32 scale, l_int32 pageno, l_int32 endpage );
extern l_int32 extractJpegDataFromFile ( const char *filein, l_uint8 **pdata, l_int32 *pnbytes, l_int32 *pw, l_int32 *ph, l_int32 *pbps, l_int32 *pspp );
extern l_int32 extractJpegDataFromArray ( const void *data, l_int32 nbytes, l_int32 *pw, l_int32 *ph, l_int32 *pbps, l_int32 *pspp );
extern l_int32 convertTiffG4ToPSEmbed ( const char *filein, const char *fileout );
extern l_int32 convertTiffG4ToPS ( const char *filein, const char *fileout, const char *operation, l_int32 x, l_int32 y, l_int32 res, l_float32 scale, l_int32 pageno, l_int32 mask, l_int32 endpage );
extern l_int32 convertTiffG4ToPSString ( const char *filein, char **poutstr, l_int32 *pnbytes, l_int32 x, l_int32 y, l_int32 res, l_float32 scale, l_int32 pageno, l_int32 mask, l_int32 endpage );
extern l_int32 extractTiffG4DataFromFile ( const char *filein, l_uint8 **pdata, l_int32 *pnbytes, l_int32 *pw, l_int32 *ph, l_int32 *pminisblack );
extern l_int32 convertTiffMultipageToPS ( const char *filein, const char *fileout, const char *tempfile, l_float32 fillfract );
extern l_int32 getResLetterPage ( l_int32 w, l_int32 h, l_float32 fillfract );
extern l_int32 getResA4Page ( l_int32 w, l_int32 h, l_float32 fillfract );
extern char * encodeAscii85 ( l_uint8 *inarray, l_int32 insize, l_int32 *poutsize );
extern l_int32 convertChunkToAscii85 ( l_uint8 *inarray, l_int32 insize, l_int32 *pindex, char *outbuf, l_int32 *pnbout );
extern l_uint8 * decodeAscii85 ( char *ina, l_int32 insize, l_int32 *poutsize );
extern PTA * ptaCreate ( l_int32 n );
extern void ptaDestroy ( PTA **ppta );
extern PTA * ptaCopy ( PTA *pta );
extern PTA * ptaClone ( PTA *pta );
extern l_int32 ptaEmpty ( PTA *pta );
extern l_int32 ptaAddPt ( PTA *pta, l_float32 x, l_float32 y );
extern l_int32 ptaExtendArrays ( PTA *pta );
extern l_int32 ptaJoin ( PTA *ptad, PTA *ptas, l_int32 istart, l_int32 iend );
extern PTA * ptaReverse ( PTA *ptas, l_int32 type );
extern PTA * ptaCyclicPerm ( PTA *ptas, l_int32 xs, l_int32 ys );
extern PTA * ptaSort ( PTA *ptas, l_int32 sorttype, l_int32 sortorder, NUMA **pnaindex );
extern PTA * ptaRemoveDuplicates ( PTA *ptas, l_uint32 factor );
extern l_int32 ptaGetRefcount ( PTA *pta );
extern l_int32 ptaChangeRefcount ( PTA *pta, l_int32 delta );
extern l_int32 ptaGetCount ( PTA *pta );
extern l_int32 ptaGetPt ( PTA *pta, l_int32 index, l_float32 *px, l_float32 *py );
extern l_int32 ptaGetIPt ( PTA *pta, l_int32 index, l_int32 *px, l_int32 *py );
extern l_int32 ptaGetArrays ( PTA *pta, NUMA **pnax, NUMA **pnay );
extern PTAA * ptaaCreate ( l_int32 n );
extern void ptaaDestroy ( PTAA **pptaa );
extern l_int32 ptaaAddPta ( PTAA *ptaa, PTA *pta, l_int32 copyflag );
extern l_int32 ptaaExtendArray ( PTAA *ptaa );
extern l_int32 ptaaGetCount ( PTAA *ptaa );
extern PTA * ptaaGetPta ( PTAA *ptaa, l_int32 index, l_int32 accessflag );
extern l_int32 ptaWriteStream ( FILE *fp, PTA *pta, l_int32 type );
extern PTA * ptaReadStream ( FILE *fp );
extern PTA * pixFindCornerPixels ( PIX *pixs );
extern l_int32 pixPlotAlongPta ( PIX *pixs, PTA *pta, l_int32 outformat, const char *title );
extern l_int32 ptaContainsPt ( PTA *pta, l_int32 x, l_int32 y );
extern l_int32 ptaTestIntersection ( PTA *pta1, PTA *pta2 );
extern l_int32 ptaGetLinearLSF ( PTA *pta, l_float32 *pa, l_float32 *pb );
extern PTA * ptaGetPixelsFromPix ( PIX *pixs );
extern PIX * pixRead ( const char *filename );
extern PIX * pixReadWithHint ( const char *filename, l_int32 hint );
extern PIX * pixReadStream ( FILE *fp, l_int32 hint );
extern l_int32 findFileFormat ( FILE *fp );
extern l_int32 findFileFormatBuffer ( const l_uint8 *buf );
extern l_int32 ioFormatTest ( const char *filename );
extern l_int32 pixRasterop ( PIX *pixd, l_int32 dx, l_int32 dy, l_int32 dw, l_int32 dh, l_int32 op, PIX *pixs, l_int32 sx, l_int32 sy );
extern l_int32 pixRasteropVip ( PIX *pixd, l_int32 x, l_int32 w, l_int32 vshift, l_int32 incolor );
extern l_int32 pixRasteropHip ( PIX *pixd, l_int32 y, l_int32 h, l_int32 hshift, l_int32 incolor );
extern l_int32 pixRasteropIP ( PIX *pixd, l_int32 hshift, l_int32 vshift, l_int32 incolor );
extern l_int32 pixRasteropFullImage ( PIX *pixd, PIX *pixs, l_int32 op );
extern void rasteropVipLow ( l_uint32 *data, l_int32 pixw, l_int32 pixh, l_int32 depth, l_int32 wpl, l_int32 x, l_int32 w, l_int32 shift );
extern void rasteropHipLow ( l_uint32 *data, l_int32 pixh, l_int32 depth, l_int32 wpl, l_int32 y, l_int32 h, l_int32 shift );
extern void shiftDataHorizontalLow ( l_uint32 *datad, l_int32 wpld, l_uint32 *datas, l_int32 wpls, l_int32 shift );
extern void rasteropUniLow ( l_uint32 *datad, l_int32 dpixw, l_int32 dpixh, l_int32 depth, l_int32 dwpl, l_int32 dx, l_int32 dy, l_int32 dw, l_int32 dh, l_int32 op );
extern void rasteropLow ( l_uint32 *datad, l_int32 dpixw, l_int32 dpixh, l_int32 depth, l_int32 dwpl, l_int32 dx, l_int32 dy, l_int32 dw, l_int32 dh, l_int32 op, l_uint32 *datas, l_int32 spixw, l_int32 spixh, l_int32 swpl, l_int32 sx, l_int32 sy );
extern PIX * pixRotate ( PIX *pixs, l_float32 angle, l_int32 type, l_int32 incolor, l_int32 width, l_int32 height );
extern PIX * pixEmbedForRotation ( PIX *pixs, l_float32 angle, l_int32 incolor, l_int32 width, l_int32 height );
extern PIX * pixRotateAM ( PIX *pixs, l_float32 angle, l_int32 incolor );
extern PIX * pixRotateAMColor ( PIX *pixs, l_float32 angle, l_uint32 colorval );
extern PIX * pixRotateAMGray ( PIX *pixs, l_float32 angle, l_uint8 grayval );
extern PIX * pixRotateAMCorner ( PIX *pixs, l_float32 angle, l_int32 incolor );
extern PIX * pixRotateAMColorCorner ( PIX *pixs, l_float32 angle, l_uint8 grayval );
extern PIX * pixRotateAMGrayCorner ( PIX *pixs, l_float32 angle, l_uint8 grayval );
extern PIX * pixRotateAMColorFast ( PIX *pixs, l_float32 angle, l_uint8 grayval );
extern void rotateAMColorLow ( l_uint32 *datad, l_int32 w, l_int32 h, l_int32 wpld, l_uint32 *datas, l_int32 wpls, l_float32 angle, l_uint32 colorval );
extern void rotateAMGrayLow ( l_uint32 *datad, l_int32 w, l_int32 h, l_int32 wpld, l_uint32 *datas, l_int32 wpls, l_float32 angle, l_uint8 grayval );
extern void rotateAMColorCornerLow ( l_uint32 *datad, l_int32 w, l_int32 h, l_int32 wpld, l_uint32 *datas, l_int32 wpls, l_float32 angle, l_uint32 colorval );
extern void rotateAMGrayCornerLow ( l_uint32 *datad, l_int32 w, l_int32 h, l_int32 wpld, l_uint32 *datas, l_int32 wpls, l_float32 angle, l_uint8 grayval );
extern void rotateAMColorFastLow ( l_uint32 *datad, l_int32 w, l_int32 h, l_int32 wpld, l_uint32 *datas, l_int32 wpls, l_float32 angle, l_uint8 grayval );
extern PIX * pixRotate180 ( PIX *pixd, PIX *pixs );
extern PIX * pixRotate90 ( PIX *pixs, l_int32 direction );
extern PIX * pixRotateLR ( PIX *pixd, PIX *pixs );
extern PIX * pixRotateTB ( PIX *pixd, PIX *pixs );
extern void rotate90Low ( l_uint32 *datad, l_int32 wd, l_int32 hd, l_int32 d, l_int32 wpld, l_uint32 *datas, l_int32 wpls, l_int32 direction );
extern void rotateLRLow ( l_uint32 *data, l_int32 w, l_int32 h, l_int32 d, l_int32 wpl, l_uint8 *tab, l_uint32 *buffer );
extern void rotateTBLow ( l_uint32 *data, l_int32 h, l_int32 wpl, l_uint32 *buffer );
extern l_uint8 * makeReverseByteTab1 ( void );
extern l_uint8 * makeReverseByteTab2 ( void );
extern l_uint8 * makeReverseByteTab4 ( void );
extern PIX * pixRotateShear ( PIX *pixs, l_int32 x, l_int32 y, l_float32 angle, l_int32 incolor );
extern PIX * pixRotate2Shear ( PIX *pixs, l_int32 x, l_int32 y, l_float32 angle, l_int32 incolor );
extern PIX * pixRotate3Shear ( PIX *pixs, l_int32 x, l_int32 y, l_float32 angle, l_int32 incolor );
extern l_int32 pixRotateShearIP ( PIX *pixs, l_int32 x, l_int32 y, l_float32 angle, l_int32 incolor );
extern PIX * pixRotateShearCenter ( PIX *pixs, l_float32 angle, l_int32 incolor );
extern l_int32 pixRotateShearCenterIP ( PIX *pixs, l_float32 angle, l_int32 incolor );
extern PIX * pixRotateEuclidean ( PIX *pixs, l_int32 xcen, l_int32 ycen, l_float32 angle );
extern PIX * pixRunlengthTransform ( PIX *pixs, l_int32 color, l_int32 direction, l_int32 depth );
extern l_int32 pixFindHorizontalRuns ( PIX *pix, l_int32 y, l_int32 *xstart, l_int32 *xend, l_int32 *pn );
extern l_int32 pixFindVerticalRuns ( PIX *pix, l_int32 x, l_int32 *ystart, l_int32 *yend, l_int32 *pn );
extern l_int32 runlengthMembershipOnLine ( l_int32 *buffer, l_int32 size, l_int32 depth, l_int32 *start, l_int32 *end, l_int32 n );
extern l_int32 * makeMSBitLocTab ( l_int32 bitval );
extern SARRAY * sarrayCreate ( l_int32 n );
extern SARRAY * sarrayCreateWordsFromString ( const char *string );
extern SARRAY * sarrayCreateLinesFromString ( char *string, l_int32 blankflag );
extern void sarrayDestroy ( SARRAY **psa );
extern SARRAY * sarrayCopy ( SARRAY *sa );
extern l_int32 sarrayAddString ( SARRAY *sa, char *string, l_int32 copyflag );
extern l_int32 sarrayExtendArray ( SARRAY *sa );
extern char * sarrayRemoveString ( SARRAY *sa, l_int32 index );
extern l_int32 sarrayGetCount ( SARRAY *sa );
extern char ** sarrayGetArray ( SARRAY *sa, l_int32 *pnalloc, l_int32 *pn );
extern char * sarrayGetString ( SARRAY *sa, l_int32 index, l_int32 copyflag );
extern char * sarrayToString ( SARRAY *sa, l_int32 addnlflag );
extern char * sarrayToStringRange ( SARRAY *sa, l_int32 first, l_int32 nstrings, l_int32 addnlflag );
extern l_int32 sarrayConcatenate ( SARRAY *sa1, SARRAY *sa2 );
extern SARRAY * sarrayConvertWordsToLines ( SARRAY *sa, l_int32 linesize );
extern l_int32 sarraySplitString ( SARRAY *sa, const char *str, const char *separators );
extern SARRAY * sarraySort ( SARRAY *saout, SARRAY *sain, l_int32 sortorder );
extern l_int32 stringCompareLexical ( const char *str1, const char *str2 );
extern SARRAY * sarrayRead ( const char *filename );
extern SARRAY * sarrayReadStream ( FILE *fp );
extern l_int32 sarrayWrite ( const char *filename, SARRAY *sa );
extern l_int32 sarrayWriteStream ( FILE *fp, SARRAY *sa );
extern l_int32 sarrayAppend ( const char *filename, SARRAY *sa );
extern PIX * pixScale ( PIX *pixs, l_float32 scalex, l_float32 scaley );
extern PIX * pixScaleColorLI ( PIX *pixs, l_float32 scalex, l_float32 scaley );
extern PIX * pixScaleColor2xLI ( PIX *pixs );
extern PIX * pixScaleColor4xLI ( PIX *pixs );
extern PIX * pixScaleGrayLI ( PIX *pixs, l_float32 scalex, l_float32 scaley );
extern PIX * pixScaleGray2xLI ( PIX *pixs );
extern PIX * pixScaleGray4xLI ( PIX *pixs );
extern PIX * pixScaleBySampling ( PIX *pixs, l_float32 scalex, l_float32 scaley );
extern PIX * pixScaleRGBToGrayFast ( PIX *pixs, l_int32 factor, l_int32 color );
extern PIX * pixScaleRGBToBinaryFast ( PIX *pixs, l_int32 factor, l_int32 thresh );
extern PIX * pixScaleSmooth ( PIX *pix, l_float32 scalex, l_float32 scaley );
extern PIX * pixScaleRGBToGray2 ( PIX *pixs, l_float32 rwt, l_float32 gwt, l_float32 bwt );
extern PIX * pixScaleAreaMap ( PIX *pix, l_float32 scalex, l_float32 scaley );
extern PIX * pixScaleBinary ( PIX *pixs, l_float32 scalex, l_float32 scaley );
extern PIX * pixScaleToGray ( PIX *pixs, l_float32 scalefactor );
extern PIX * pixScaleToGray2 ( PIX *pixs );
extern PIX * pixScaleToGray3 ( PIX *pixs );
extern PIX * pixScaleToGray4 ( PIX *pixs );
extern PIX * pixScaleToGray8 ( PIX *pixs );
extern PIX * pixScaleToGray16 ( PIX *pixs );
extern PIX * pixScaleToGrayMipmap ( PIX *pixs, l_float32 scalefactor );
extern PIX * pixScaleMipmap ( PIX *pixs1, PIX *pixs2, l_float32 scale );
extern PIX * pixScaleGray2xLIThresh ( PIX *pixs, l_int32 thresh );
extern PIX * pixScaleGray2xLIDither ( PIX *pixs );
extern PIX * pixScaleGray4xLIThresh ( PIX *pixs, l_int32 thresh );
extern PIX * pixScaleGray4xLIDither ( PIX *pixs );
extern void scaleColorLILow ( l_uint32 *datad, l_int32 wd, l_int32 hd, l_int32 wpld, l_uint32 *datas, l_int32 ws, l_int32 hs, l_int32 wpls );
extern void scaleGrayLILow ( l_uint32 *datad, l_int32 wd, l_int32 hd, l_int32 wpld, l_uint32 *datas, l_int32 ws, l_int32 hs, l_int32 wpls );
extern void scaleColor2xLILow ( l_uint32 *datad, l_int32 wpld, l_uint32 *datas, l_int32 ws, l_int32 hs, l_int32 wpls );
extern void scaleColor2xLILineLow ( l_uint32 *lined, l_int32 wpld, l_uint32 *lines, l_int32 ws, l_int32 wpls, l_int32 lastlineflag );
extern void scaleGray2xLILow ( l_uint32 *datad, l_int32 wpld, l_uint32 *datas, l_int32 ws, l_int32 hs, l_int32 wpls );
extern void scaleGray2xLILineLow ( l_uint32 *lined, l_int32 wpld, l_uint32 *lines, l_int32 ws, l_int32 wpls, l_int32 lastlineflag );
extern void scaleGray4xLILow ( l_uint32 *datad, l_int32 wpld, l_uint32 *datas, l_int32 ws, l_int32 hs, l_int32 wpls );
extern void scaleGray4xLILineLow ( l_uint32 *lined, l_int32 wpld, l_uint32 *lines, l_int32 ws, l_int32 wpls, l_int32 lastlineflag );
extern l_int32 scaleBySamplingLow ( l_uint32 *datad, l_int32 wd, l_int32 hd, l_int32 wpld, l_uint32 *datas, l_int32 ws, l_int32 hs, l_int32 d, l_int32 wpls );
extern l_int32 scaleSmoothLow ( l_uint32 *datad, l_int32 wd, l_int32 hd, l_int32 wpld, l_uint32 *datas, l_int32 ws, l_int32 hs, l_int32 d, l_int32 wpls, l_int32 size );
extern void scaleRGBToGray2Low ( l_uint32 *datad, l_int32 wd, l_int32 hd, l_int32 wpld, l_uint32 *datas, l_int32 ws, l_int32 hs, l_int32 wpls, l_float32 rwt, l_float32 gwt, l_float32 bwt );
extern void scaleColorAreaMapLow ( l_uint32 *datad, l_int32 wd, l_int32 hd, l_int32 wpld, l_uint32 *datas, l_int32 ws, l_int32 hs, l_int32 wpls );
extern void scaleGrayAreaMapLow ( l_uint32 *datad, l_int32 wd, l_int32 hd, l_int32 wpld, l_uint32 *datas, l_int32 ws, l_int32 hs, l_int32 wpls );
extern l_int32 scaleBinaryLow ( l_uint32 *datad, l_int32 wd, l_int32 hd, l_int32 wpld, l_uint32 *datas, l_int32 ws, l_int32 hs, l_int32 wpls );
extern void scaleToGray2Low ( l_uint32 *datad, l_int32 wd, l_int32 hd, l_int32 wpld, l_uint32 *datas, l_int32 wpls, l_uint32 *sumtab, l_uint8 *valtab );
extern l_uint32 * makeSumTabSG2 ( void );
extern l_uint8 * makeValTabSG2 ( void );
extern void scaleToGray3Low ( l_uint32 *datad, l_int32 wd, l_int32 hd, l_int32 wpld, l_uint32 *datas, l_int32 wpls, l_uint32 *sumtab, l_uint8 *valtab );
extern l_uint32 * makeSumTabSG3 ( void );
extern l_uint8 * makeValTabSG3 ( void );
extern void scaleToGray4Low ( l_uint32 *datad, l_int32 wd, l_int32 hd, l_int32 wpld, l_uint32 *datas, l_int32 wpls, l_uint32 *sumtab, l_uint8 *valtab );
extern l_uint32 * makeSumTabSG4 ( void );
extern l_uint8 * makeValTabSG4 ( void );
extern void scaleToGray8Low ( l_uint32 *datad, l_int32 wd, l_int32 hd, l_int32 wpld, l_uint32 *datas, l_int32 wpls, l_int32 *tab8, l_uint8 *valtab );
extern l_uint8 * makeValTabSG8 ( void );
extern void scaleToGray16Low ( l_uint32 *datad, l_int32 wd, l_int32 hd, l_int32 wpld, l_uint32 *datas, l_int32 wpls, l_int32 *tab8 );
extern l_int32 scaleMipmapLow ( l_uint32 *datad, l_int32 wd, l_int32 hd, l_int32 wpld, l_uint32 *datas1, l_int32 wpls1, l_uint32 *datas2, l_int32 wpls2, l_float32 red );
extern PIX * pixSeedfillBinary ( PIX *pixd, PIX *pixs, PIX *pixm, l_int32 connectivity );
extern PIX * pixHolesByFilling ( PIX *pixs, l_int32 connectivity );
extern PIX * pixFillClosedBorders ( PIX *pixs, l_int32 connectivity );
extern PIX * pixRemoveBorderConnComps ( PIX *pixs, l_int32 connectivity );
extern l_int32 pixSeedfillGray ( PIX *pixs, PIX *pixm, l_int32 connectivity );
extern PIX * pixDistanceFunction ( PIX *pixs, l_int32 connectivity, l_int32 depth );
extern void seedfillBinaryLow ( l_uint32 *datas, l_int32 hs, l_int32 wpls, l_uint32 *datam, l_int32 hm, l_int32 wplm, l_int32 connectivity );
extern void seedfillGrayLow ( l_uint32 *datas, l_int32 w, l_int32 h, l_int32 wpls, l_uint32 *datam, l_int32 wplm, l_int32 connectivity );
extern void distanceFunctionLow ( l_uint32 *datad, l_int32 w, l_int32 h, l_int32 d, l_int32 wpld, l_int32 connectivity );
extern SELA * selaCreate ( l_int32 n );
extern void selaDestroy ( SELA **psela );
extern SEL * selCreate ( l_int32 height, l_int32 width, const char *name );
extern void selDestroy ( SEL **psel );
extern SEL * selCopy ( SEL *sel );
extern SEL * selCreateBrick ( l_int32 h, l_int32 w, l_int32 cy, l_int32 cx, l_int32 type );
extern l_int32 ** create2dIntArray ( l_int32 sy, l_int32 sx );
extern l_int32 selaAddSel ( SELA *sela, SEL *sel, const char *selname, l_int32 copyflag );
extern l_int32 selaExtendArray ( SELA *sela );
extern l_int32 selaGetCount ( SELA *sela );
extern SEL * selaGetSel ( SELA *sela, l_int32 i );
extern char * selGetName ( SEL *sel );
extern l_int32 selaFindSelByName ( SELA *sela, const char *name, l_int32 *pindex, SEL **psel );
extern l_int32 selGetElement ( SEL *sel, l_int32 row, l_int32 col, l_int32 *ptype );
extern l_int32 selSetElement ( SEL *sel, l_int32 row, l_int32 col, l_int32 type );
extern l_int32 selFindMaxTranslations ( SEL *sel, l_int32 *pxp, l_int32 *pyp, l_int32 *pxn, l_int32 *pyn );
extern l_int32 selaWrite ( const char *fname, SELA *sela );
extern l_int32 selaWriteStream ( FILE *fp, SELA *sela );
extern l_int32 selWriteStream ( FILE *fp, SEL *sel );
extern SELA * selaRead ( const char *fname );
extern SELA * selaReadStream ( FILE *fp );
extern SEL * selReadStream ( FILE *fp );
extern SELA * selaAddBasic ( SELA *sela );
extern SELA * selaAddHitMiss ( SELA *sela );
extern SEL * pixGenerateSelWithRuns ( PIX *pixs, l_int32 nhlines, l_int32 nvlines, l_int32 distance, l_int32 minlength, l_int32 toppix, l_int32 botpix, l_int32 leftpix, l_int32 rightpix, PIX **ppixe );
extern SEL * pixGenerateSelRandom ( PIX *pixs, l_float32 hitfract, l_float32 missfract, l_int32 distance, l_int32 toppix, l_int32 botpix, l_int32 leftpix, l_int32 rightpix, PIX **ppixe );
extern SEL * pixGenerateSelBoundary ( PIX *pixs, l_int32 hitdist, l_int32 missdist, l_int32 hitskip, l_int32 missskip, l_int32 topflag, l_int32 botflag, l_int32 leftflag, l_int32 rightflag, PIX **ppixe );
extern NUMA * pixGetRunCentersOnLine ( PIX *pixs, l_int32 x, l_int32 y, l_int32 minlength );
extern NUMA * pixGetRunsOnLine ( PIX *pixs, l_int32 x1, l_int32 y1, l_int32 x2, l_int32 y2 );
extern PTA * pixSubsampleBoundaryPixels ( PIX *pixs, l_int32 skip );
extern l_int32 adjacentOnPixelInRaster ( PIX *pixs, l_int32 x, l_int32 y, l_int32 *pxa, l_int32 *pya );
extern PIX * pixDisplayHitMissSel ( PIX *pixs, SEL *sel, l_int32 scalefactor, l_uint32 hitcolor, l_uint32 misscolor );
extern PIX * pixHShear ( PIX *pixd, PIX *pixs, l_int32 liney, l_float32 radang, l_int32 incolor );
extern PIX * pixVShear ( PIX *pixd, PIX *pixs, l_int32 linex, l_float32 radang, l_int32 incolor );
extern PIX * pixHShearCorner ( PIX *pixd, PIX *pixs, l_float32 radang, l_int32 incolor );
extern PIX * pixVShearCorner ( PIX *pixd, PIX *pixs, l_float32 radang, l_int32 incolor );
extern PIX * pixHShearCenter ( PIX *pixd, PIX *pixs, l_float32 radang, l_int32 incolor );
extern PIX * pixVShearCenter ( PIX *pixd, PIX *pixs, l_float32 radang, l_int32 incolor );
extern l_int32 pixHShearIP ( PIX *pixs, l_int32 liney, l_float32 radang, l_int32 incolor );
extern l_int32 pixVShearIP ( PIX *pixs, l_int32 linex, l_float32 radang, l_int32 incolor );
extern PIX * pixDeskew ( PIX *pixs, l_int32 redsearch );
extern PIX * pixFindSkewAndDeskew ( PIX *pixs, l_int32 redsearch, l_float32 *pangle, l_float32 *pconf );
extern l_int32 pixFindSkew ( PIX *pixs, l_float32 *pangle, l_float32 *pconf );
extern l_int32 pixFindSkewSweep ( PIX *pixs, l_float32 *pangle, l_int32 reduction, l_float32 sweeprange, l_float32 sweepdelta );
extern l_int32 pixFindSkewSweepAndSearch ( PIX *pixs, l_float32 *pangle, l_float32 *pconf, l_int32 redsweep, l_int32 redsearch, l_float32 sweeprange, l_float32 sweepdelta, l_float32 minbsdelta );
extern l_int32 pixFindSkewSweepAndSearchScore ( PIX *pixs, l_float32 *pangle, l_float32 *pconf, l_float32 *endscore, l_int32 redsweep, l_int32 redsearch, l_float32 sweepcenter, l_float32 sweeprange, l_float32 sweepdelta, l_float32 minbsdelta );
extern l_int32 pixFindDifferentialSquareSum ( PIX *pixs, l_float32 *psum );
extern STACK * stackCreate ( l_int32 nalloc );
extern void stackDestroy ( STACK **pstack, l_int32 freeflag );
extern l_int32 stackAdd ( STACK *stack, void *item );
extern void * stackRemove ( STACK *stack );
extern l_int32 stackExtendArray ( STACK *stack );
extern l_int32 stackGetCount ( STACK *stack );
extern l_int32 stackPrint ( FILE *fp, STACK *stack );
extern SARRAY * bmfGetLineStrings ( BMF *bmf, const char *textstr, l_int32 maxw, l_int32 firstindent, l_int32 *ph );
extern NUMA * bmfGetWordWidths ( BMF *bmf, const char *textstr, SARRAY *sa );
extern l_int32 bmfGetStringWidth ( BMF *bmf, const char *textstr, l_int32 *pw );
extern l_int32 pixSetTextblock ( PIX *pixs, BMF *bmf, const char *textstr, l_uint32 val, l_int32 x0, l_int32 y0, l_int32 wtext, l_int32 firstindent, l_int32 *poverflow );
extern l_int32 pixSetTextline ( PIX *pixs, BMF *bmf, const char *textstr, l_uint32 val, l_int32 x0, l_int32 y0, l_int32 *pwidth, l_int32 *poverflow );
extern SARRAY * splitStringToParagraphs ( char *textstr, l_int32 splitflag );
extern PIX * pixReadTiff ( const char *filename, l_int32 n );
extern PIX * pixReadStreamTiff ( FILE *fp, l_int32 n );
extern l_int32 pixWriteTiffCustom ( const char *filename, PIX *pix, l_int32 comptype, const char *modestring, NUMA *natags, SARRAY *savals, SARRAY *satypes, NUMA *nasizes );
extern l_int32 pixWriteTiff ( const char *filename, PIX *pix, l_int32 comptype, const char *modestring );
extern l_int32 pixWriteStreamTiff ( FILE *fp, PIX *pix, l_int32 comptype );
extern l_int32 fprintTiffInfo ( FILE *fpout, const char *tiffile );
extern l_int32 tiffGetCount ( FILE *fp, l_int32 *pn );
extern l_int32 readHeaderTiff ( const char *filename, l_int32 *pwidth, l_int32 *pheight, l_int32 *pbps, l_int32 *pspp, l_int32 *pres, l_int32 *pcmap );
extern l_int32 freadHeaderTiff ( FILE *fp, l_int32 *pwidth, l_int32 *pheight, l_int32 *pbps, l_int32 *pspp, l_int32 *pres, l_int32 *pcmap );
extern l_int32 l_errorInt ( const char *msg, const char *procname, l_int32 ival );
extern l_float32 l_errorFloat ( const char *msg, const char *procname, l_float32 fval );
extern void * l_errorPtr ( const char *msg, const char *procname, void *pval );
extern void l_errorVoid ( const char *msg, const char *procname );
extern void l_warning ( const char *msg, const char *procname );
extern void l_warningInt ( const char *msg, const char *procname, l_int32 ival );
extern void l_info ( const char *msg, const char *procname );
extern void l_infoInt ( const char *msg, const char *procname, l_int32 ival );
extern void l_infoInt2 ( const char *msg, const char *procname, l_int32 ival1, l_int32 ival2 );
extern void l_infoFloat ( const char *msg, const char *procname, l_float32 fval );
extern void l_infoFloat2 ( const char *msg, const char *procname, l_float32 fval1, l_float32 fval2 );
extern char * stringNew ( const char *src );
extern l_int32 stringReplace ( char **pdest, const char *src );
extern char * stringJoin ( const char *src1, const char *src2 );
extern char * stringRemoveChars ( const char *src, const char *remchars );
extern char * stringReplaceSubstr ( const char *src, const char *sub1, const char *sub2, l_int32 *pfound, l_int32 *ploc );
extern char * stringReplaceEachSubstr ( const char *src, const char *sub1, const char *sub2, l_int32 *pcount );
extern l_int32 arrayFindSequence ( const l_uint8 *data, l_int32 datalen, const l_uint8 *sequence, l_int32 seqlen, l_int32 *poffset, l_int32 *pfound );
extern void * reallocNew ( void **pindata, l_int32 oldsize, l_int32 newsize );
extern l_uint8 * arrayRead ( const char *fname, l_int32 *pnbytes );
extern l_uint8 * arrayReadStream ( FILE *fp, l_int32 *pnbytes );
extern l_int32 nbytesInFile ( FILE *fp );
extern l_int32 arrayWrite ( const char *filename, const char *operation, void *data, l_int32 nbytes );
extern l_uint16 convertOnLittleEnd16 ( l_uint16 shortin );
extern l_uint16 convertOnBigEnd16 ( l_uint16 shortin );
extern l_uint32 convertOnLittleEnd32 ( l_uint32 wordin );
extern l_uint32 convertOnBigEnd32 ( l_uint32 wordin );
extern FILE * fopenReadStream ( const char *filename );
extern l_int32 splitPathAtDirectory ( const char *pathname, char **pdir, char **ptail );
extern l_int32 splitPathAtExtension ( const char *pathname, char **pbasename, char **pextension );
extern char * genPathname ( const char *dir, const char *fname );
extern void startTimer ( void );
extern l_float32 stopTimer ( void );
extern l_int32 pixHtmlViewer ( const char *dirin, const char *dirout, const char *rootname, l_int32 thumbwidth, l_int32 viewwidth, l_int32 copyorig );
extern SARRAY * getFilenamesInDirectory ( const char *dirname );
extern SARRAY * getSortedPathnamesInDirectory ( const char *dirname, l_int32 firstpage, l_int32 npages );
extern l_int32 pixaWriteFiles ( const char *rootname, PIXA *pixa, l_int32 format );
extern l_int32 pixWrite ( const char *filename, PIX *pix, l_int32 format );
extern l_int32 pixWriteStream ( FILE *fp, PIX *pix, l_int32 format );
extern l_int32 pixChooseOutputFormat ( PIX *pix );
extern l_int32 pixDisplay ( PIX *pixs, l_int32 x, l_int32 y );

#ifdef __cplusplus
}
#endif  /* __cplusplus */

Generated by  Doxygen 1.6.0   Back to index