src/jbclass.c
static JBFINDCTX *
findSimilarSizedTemplatesInit(JBCLASSER  *classer,
                              PIX        *pixs)
{
JBFINDCTX  *state;

    state = (JBFINDCTX *)CALLOC(1, sizeof(JBFINDCTX));
    state->w = pixGetWidth(pixs) - 2 * JB_ADDED_PIXELS;
    state->h = pixGetHeight(pixs) - 2 * JB_ADDED_PIXELS;
    state->classer = classer;

    return state;
}
/*!
 *  findSimilarSizedTemplatesInit()
 *
 *      Input:  classer
 *              pixs (instance to be matched)
 *      Return: Allocated context to be used with findSimilar*
 */
findSimilarSizedTemplatesInit()
Input:  classer
pixs (instance to be matched)
Return: Allocated context to be used with findSimilar
findSimilarSizedTemplatesInit () Input : classer pixs ( instance to be matched ) Return : Allocated context to be used with findSimilar
static JBFINDCTX *
findSimilarSizedTemplatesInit(JBCLASSER  *classer,
                              PIX        *pixs)
{
JBFINDCTX  *state;
    state = (JBFINDCTX *)CALLOC(1, sizeof(JBFINDCTX));
    state->w = pixGetWidth(pixs) - 2 * JB_ADDED_PIXELS;
    state->h = pixGetHeight(pixs) - 2 * JB_ADDED_PIXELS;
    state->classer = classer;
    return state;
}
static JBFINDCTX * findSimilarSizedTemplatesInit ( JBCLASSER * classer , PIX * pixs ) { JBFINDCTX * state ; state = ( JBFINDCTX * ) CALLOC ( 1 , sizeof ( JBFINDCTX ) ) ; state -> w = pixGetWidth ( pixs ) - 2 * JB_ADDED_PIXELS ; state -> h = pixGetHeight ( pixs ) - 2 * JB_ADDED_PIXELS ; state -> classer = classer ; return state ; }
findSimilarSizedTemplatesInit()
      Input:  classer
              pixs (instance to be matched)
      Return: Allocated context to be used with findSimilar
findSimilarSizedTemplatesInit () Input : classer pixs ( instance to be matched ) Return : Allocated context to be used with findSimilar