src/pix1.c
PIX *
pixCreateTemplateNoInit(PIX  *pixs)
{
l_int32  w, h, d;
PIX     *pixd;

    PROCNAME("pixCreateTemplateNoInit");

    if (!pixs)
        return (PIX *)ERROR_PTR("pixs not defined", procName, NULL);

    pixGetDimensions(pixs, &w, &h, &d);
    if ((pixd = pixCreateNoInit(w, h, d)) == NULL)
        return (PIX *)ERROR_PTR("pixd not made", procName, NULL);
    pixCopyResolution(pixd, pixs);
    pixCopyColormap(pixd, pixs);
    pixCopyText(pixd, pixs);
    pixCopyInputFormat(pixd, pixs);

    return pixd;
}
/*!
 *  pixCreateTemplateNoInit()
 *
 *      Input:  pixs
 *      Return: pixd, or null on error
 *
 *  Notes:
 *      (1) Makes a Pix of the same size as the input Pix, with
 *          the data array allocated but not initialized to 0.
 *      (2) Copies the other fields, including colormap if it exists.
 */
pixCreateTemplateNoInit()
Input:  pixs
Return: pixd, or null on error

(1) Makes a Pix of the same size as the input Pix, with
the data array allocated but not initialized to 0.
(2) Copies the other fields, including colormap if it exists.
pixCreateTemplateNoInit () Input : pixs Return : pixd or null on error ( 1 ) Makes a Pix of the same size as the input Pix with the data array allocated but not initialized to 0 . ( 2 ) Copies the other fields including colormap if it exists .
PIX *
pixCreateTemplateNoInit(PIX  *pixs)
{
l_int32  w, h, d;
PIX     *pixd;
    PROCNAME("pixCreateTemplateNoInit");
    if (!pixs)
        return (PIX *)ERROR_PTR("pixs not defined", procName, NULL);
    pixGetDimensions(pixs, &w, &h, &d);
    if ((pixd = pixCreateNoInit(w, h, d)) == NULL)
        return (PIX *)ERROR_PTR("pixd not made", procName, NULL);
    pixCopyResolution(pixd, pixs);
    pixCopyColormap(pixd, pixs);
    pixCopyText(pixd, pixs);
    pixCopyInputFormat(pixd, pixs);
    return pixd;
}
PIX * pixCreateTemplateNoInit ( PIX * pixs ) { l_int32 w , h , d ; PIX * pixd ; PROCNAME ( " " ) ; if ( ! pixs ) return ( PIX * ) ERROR_PTR ( " " , procName , NULL ) ; pixGetDimensions ( pixs , & w , & h , & d ) ; if ( ( pixd = pixCreateNoInit ( w , h , d ) ) == NULL ) return ( PIX * ) ERROR_PTR ( " " , procName , NULL ) ; pixCopyResolution ( pixd , pixs ) ; pixCopyColormap ( pixd , pixs ) ; pixCopyText ( pixd , pixs ) ; pixCopyInputFormat ( pixd , pixs ) ; return pixd ; }
pixCreateTemplateNoInit()
      Input:  pixs
      Return: pixd, or null on error
pixCreateTemplateNoInit () Input : pixs Return : pixd or null on error