64 #include <config_auto.h>
67 #include "allheaders.h"
70 l_int32 skipdist, l_int32 delta,
71 l_int32 maxbg, l_int32 sideflag,
104 if (pboxa) *pboxa = NULL;
105 if (!pixs || pixGetDepth(pixs) != 1)
106 return (
PIX *)ERROR_PTR(
"pixs undefined or not 1 bpp", __func__, NULL);
107 if (connectivity != 4 && connectivity != 8)
108 return (
PIX *)ERROR_PTR(
"connectivity not 4 or 8", __func__, NULL);
154 l_int32 i, n, x, y, w, h;
158 return (
PIX *)ERROR_PTR(
"pixs not defined", __func__, NULL);
159 if (pixGetColormap(pixs))
160 return (
PIX *)ERROR_PTR(
"pixs is cmapped", __func__, NULL);
161 if (pixd && (pixd != pixs))
162 return (
PIX *)ERROR_PTR(
"if pixd, must be in-place", __func__, NULL);
164 return (
PIX *)ERROR_PTR(
"boxa not defined", __func__, NULL);
166 return (
PIX *)ERROR_PTR(
"invalid op", __func__, NULL);
170 L_WARNING(
"no boxes to mask\n", __func__);
174 for (i = 0; i < n; i++) {
220 l_int32 i, n, d, rval, gval, bval, newindex;
227 return (
PIX *)ERROR_PTR(
"pixs not defined", __func__, NULL);
229 return (
PIX *)ERROR_PTR(
"boxa not defined", __func__, NULL);
232 L_WARNING(
"no boxes to paint; returning a copy\n", __func__);
237 if ((cmap = pixGetColormap(pixs)) != NULL) {
241 if (pixGetDepth(pixs) == 1 || mapvacancy)
246 return (
PIX *)ERROR_PTR(
"pixd not made", __func__, NULL);
248 d = pixGetDepth(pixd);
250 cmap = pixGetColormap(pixd);
254 return (
PIX *)ERROR_PTR(
"cmap full; can't add", __func__, NULL);
258 for (i = 0; i < n; i++) {
284 l_int32 i, n, d, index;
291 return (
PIX *)ERROR_PTR(
"pixs not defined", __func__, NULL);
298 d = pixGetDepth(pixd);
300 for (i = 0; i < n; i++) {
311 cmap = pixGetColormap(pixs);
317 }
else if (d == 32) {
323 }
else if (d == 16) {
327 return (
PIX *)ERROR_PTR(
"invalid depth", __func__, NULL);
330 for (i = 0; i < n; i++) {
362 l_int32 i, n, d, rval, gval, bval, index;
369 return (
PIX *)ERROR_PTR(
"pixs not defined", __func__, NULL);
371 return (
PIX *)ERROR_PTR(
"boxa not defined", __func__, NULL);
374 L_WARNING(
"no boxes to paint; returning a copy\n", __func__);
378 if (pixGetDepth(pixs) == 1)
383 return (
PIX *)ERROR_PTR(
"pixd not made", __func__, NULL);
386 d = pixGetDepth(pixd);
390 for (i = 0; i < n; i++) {
392 index = 1 + (i % 254);
432 l_int32 i, n, rval, gval, bval, index;
439 return (
PIX *)ERROR_PTR(
"pixs not defined", __func__, NULL);
441 return (
PIX *)ERROR_PTR(
"boxa not defined", __func__, NULL);
442 if (fract < 0.0 || fract > 1.0) {
443 L_WARNING(
"fract must be in [0.0, 1.0]; setting to 0.5\n", __func__);
448 L_WARNING(
"no boxes to paint; returning a copy\n", __func__);
453 return (
PIX *)ERROR_PTR(
"pixd not defined", __func__, NULL);
456 for (i = 0; i < n; i++) {
458 index = 1 + (i % 254);
492 l_int32 rval, gval, bval, newindex;
498 return (
PIX *)ERROR_PTR(
"pixs not defined", __func__, NULL);
500 return (
PIX *)ERROR_PTR(
"boxa not defined", __func__, NULL);
502 return (
PIX *)ERROR_PTR(
"width must be >= 1", __func__, NULL);
505 L_WARNING(
"no boxes to draw; returning a copy\n", __func__);
510 if ((cmap = pixGetColormap(pixs)) != NULL) {
514 if (pixGetDepth(pixs) == 1 || mapvacancy)
519 return (
PIX *)ERROR_PTR(
"pixd not made", __func__, NULL);
522 if (pixGetDepth(pixd) == 8) {
523 cmap = pixGetColormap(pixd);
553 l_int32 i, n, rval, gval, bval, index;
560 return (
PIX *)ERROR_PTR(
"pixs not defined", __func__, NULL);
562 return (
PIX *)ERROR_PTR(
"boxa not defined", __func__, NULL);
564 return (
PIX *)ERROR_PTR(
"width must be >= 1", __func__, NULL);
567 L_WARNING(
"no boxes to draw; returning a copy\n", __func__);
572 if (pixGetDepth(pixs) == 1) {
582 for (i = 0; i < n; i++) {
584 index = 1 + (i % 254);
630 l_int32 i, j, n, m, rbox, gbox, bbox, rboxa, gboxa, bboxa;
637 return (
PIX *)ERROR_PTR(
"baa not defined", __func__, NULL);
639 if (w <= 0 || h <= 0) {
648 cmap = pixGetColormap(pixd);
661 for (i = 0; i < n; i++) {
667 for (j = 0; j < m; j++) {
706 l_int32 i, j, nba, n, nbox, rval, gval, bval;
708 l_uint32 colors[255];
715 return (
PIXA *)ERROR_PTR(
"pixas not defined", __func__, NULL);
717 return (
PIXA *)ERROR_PTR(
"baa not defined", __func__, NULL);
719 return (
PIXA *)ERROR_PTR(
"width must be >= 1", __func__, NULL);
721 return (
PIXA *)ERROR_PTR(
"no boxa in baa", __func__, NULL);
723 return (
PIXA *)ERROR_PTR(
"no pix in pixas", __func__, NULL);
725 return (
PIXA *)ERROR_PTR(
"num pix != num boxa", __func__, NULL);
737 return (
PIXA *)ERROR_PTR(
"invalid colorflag", __func__, NULL);
741 for (i = 0; i < 255; i++)
744 for (i = 0; i < 255; i++) {
746 colors[i] = 0xff000000;
748 colors[i] = 0x00ff0000;
750 colors[i] = 0x0000ff00;
753 for (i = 0; i < 255; i++) {
754 rval = (l_uint32)rand() & 0xff;
755 gval = (l_uint32)rand() & 0xff;
756 bval = (l_uint32)rand() & 0xff;
762 for (i = 0; i < n; i++) {
766 for (j = 0; j < nbox; j++) {
828 BOXA *boxa, *boxas, *boxad;
832 if (!pixs || pixGetDepth(pixs) != 1)
833 return (
BOXA *)ERROR_PTR(
"pixs undefined or not 1 bpp", __func__, NULL);
838 for (i = 0; i < n; i++) {
842 delta, maxbg, maxcomps, remainder);
934 l_int32 i, w, h, boxx, boxy, bx, by, bw, bh, maxdir, maxscore;
937 BOX *boxt1, *boxt2, *boxt3;
943 if (!pix || pixGetDepth(pix) != 1)
944 return (
BOXA *)ERROR_PTR(
"pix undefined or not 1 bpp", __func__, NULL);
956 while (boxs != NULL) {
960 for (i = 0; i < 4; i++) {
971 lept_stderr(
"\nmaxdir = %d, maxscore = %d\n\n", maxdir, maxscore);
984 if (bw < 2 || bh < 2)
988 if (remainder == 1) {
999 if ((iter == maxcomps) && boxs) {
1000 if (remainder == 1) {
1048 l_int32 bx, by, bw, bh, width, height, setref, atref;
1049 l_int32 minincol, maxincol, mininrow, maxinrow, minval, maxval, bgref;
1050 l_int32 x, y, x0, y0, xref, yref, colsum, rowsum, score, countref, diff;
1054 if (!pixs || pixGetDepth(pixs) != 1)
1055 return ERROR_INT(
"pixs undefined or not 1 bpp", __func__, 1);
1057 return ERROR_INT(
"boxs not defined", __func__, 1);
1059 return ERROR_INT(
"boxat not defined", __func__, 1);
1061 return ERROR_INT(
"nascore not defined", __func__, 1);
1071 xref = yref = 100000;
1073 for (x = bx; x < bx + bw; x++) {
1077 for (y = by; y < by + bh; y++) {
1080 if (y > maxincol) maxincol = y;
1081 if (y < minincol) minincol = y;
1087 if (!setref && colsum >= minsum) {
1090 if (xref >= bx + bw)
1096 if (setref && x == xref) {
1099 bgref = maxincol - minincol + 1 - countref;
1107 diff = L_ABS(colsum - countref);
1108 if (diff >= delta || x == bx + bw - 1) {
1109 height = maxval - minval + 1;
1111 if (x == bx + bw - 1) width = x - bx + 1;
1112 boxr =
boxCreate(bx, minval, width, height);
1113 score = 2 * score - width * height;
1117 maxval = L_MAX(maxval, maxincol);
1118 minval = L_MIN(minval, minincol);
1122 for (x = bx + bw - 1; x >= bx; x--) {
1126 for (y = by; y < by + bh; y++) {
1129 if (y > maxincol) maxincol = y;
1130 if (y < minincol) minincol = y;
1134 if (!setref && colsum >= minsum) {
1140 if (setref && x == xref) {
1143 bgref = maxincol - minincol + 1 - countref;
1148 diff = L_ABS(colsum - countref);
1149 if (diff >= delta || x == bx) {
1150 height = maxval - minval + 1;
1152 if (x == bx) x0 = x;
1153 width = bx + bw - x0;
1154 boxr =
boxCreate(x0, minval, width, height);
1155 score = 2 * score - width * height;
1159 maxval = L_MAX(maxval, maxincol);
1160 minval = L_MIN(minval, minincol);
1164 for (y = by; y < by + bh; y++) {
1168 for (x = bx; x < bx + bw; x++) {
1171 if (x > maxinrow) maxinrow = x;
1172 if (x < mininrow) mininrow = x;
1176 if (!setref && rowsum >= minsum) {
1179 if (yref >= by + bh)
1182 if (setref && y == yref) {
1185 bgref = maxinrow - mininrow + 1 - countref;
1190 diff = L_ABS(rowsum - countref);
1191 if (diff >= delta || y == by + bh - 1) {
1192 width = maxval - minval + 1;
1194 if (y == by + bh - 1) height = y - by + 1;
1195 boxr =
boxCreate(minval, by, width, height);
1196 score = 2 * score - width * height;
1200 maxval = L_MAX(maxval, maxinrow);
1201 minval = L_MIN(minval, mininrow);
1205 for (y = by + bh - 1; y >= by; y--) {
1209 for (x = bx; x < bx + bw; x++) {
1212 if (x > maxinrow) maxinrow = x;
1213 if (x < mininrow) mininrow = x;
1217 if (!setref && rowsum >= minsum) {
1223 if (setref && y == yref) {
1226 bgref = maxinrow - mininrow + 1 - countref;
1231 diff = L_ABS(rowsum - countref);
1232 if (diff >= delta || y == by) {
1233 width = maxval - minval + 1;
1235 if (y == by) y0 = y;
1236 height = by + bh - y0;
1237 boxr =
boxCreate(minval, y0, width, height);
1238 score = 2 * score - width * height;
1242 maxval = L_MAX(maxval, maxinrow);
1243 minval = L_MIN(minval, mininrow);
1290 l_int32 i, nstrips, extra;
1295 return (
BOXA *)ERROR_PTR(
"invalid w or h", __func__, NULL);
1297 return (
BOXA *)ERROR_PTR(
"invalid direction", __func__, NULL);
1299 return (
BOXA *)ERROR_PTR(
"size < 1", __func__, NULL);
1304 for (i = 0; i < nstrips; i++) {
1308 if ((extra = w % size) > 0) {
1309 box =
boxCreate(nstrips * size, 0, extra, h);
1314 for (i = 0; i < nstrips; i++) {
1318 if ((extra = h % size) > 0) {
1319 box =
boxCreate(0, nstrips * size, w, extra);
1366 l_float32 *pdiffarea,
1367 l_float32 *pdiffxor,
1370 l_int32 w, h, x3, y3, w3, h3, x4, y4, w4, h4, n3, n4, area1, area2;
1371 l_int32 count3, count4, countxor;
1374 BOXA *boxa3, *boxa4, *boxa3t, *boxa4t;
1375 PIX *pix1, *pix2, *pix3, *pix4, *pix5;
1378 if (pdiffxor) *pdiffxor = 1.0;
1379 if (ppixdb) *ppixdb = NULL;
1380 if (pnsame) *pnsame = FALSE;
1381 if (pdiffarea) *pdiffarea = 1.0;
1382 if (!boxa1 || !boxa2)
1383 return ERROR_INT(
"boxa1 and boxa2 not both defined", __func__, 1);
1385 return ERROR_INT(
"&nsame not defined", __func__, 1);
1387 return ERROR_INT(
"&diffarea not defined", __func__, 1);
1397 if (n3 == 0 || n4 == 0) {
1400 if (n3 == 0 && n4 == 0) {
1404 if (pdiffxor) *pdiffxor = 0.0;
1412 *pdiffarea = (l_float32)L_ABS(area1 - area2) / (l_float32)(area1 + area2);
1429 w = L_MAX(x3 + w3, x4 + w4);
1430 h = L_MAX(y3 + h3, y4 + h4);
1438 pix5 =
pixXor(NULL, pix3, pix4);
1441 *pdiffxor = (l_float32)countxor / (l_float32)(count3 + count4);
1455 pixAnd(pix3, pix3, pix4);
1507 l_int32 connectivity)
1513 return (
BOX *)ERROR_PTR(
"pixs not defined", __func__, NULL);
1514 if (areaslop < 0.0 || areaslop > 1.0)
1515 return (
BOX *)ERROR_PTR(
"invalid value for areaslop", __func__, NULL);
1516 yslop = L_MAX(0, yslop);
1547 l_int32 w, h, i, n, x1, y1, x2, y2, select;
1548 l_float32 area, max_area;
1550 BOXA *boxa1, *boxa2, *boxa3;
1553 return (
BOX *)ERROR_PTR(
"boxas not defined", __func__, NULL);
1555 return (
BOX *)ERROR_PTR(
"no boxes in boxas", __func__, NULL);
1556 if (areaslop < 0.0 || areaslop > 1.0)
1557 return (
BOX *)ERROR_PTR(
"invalid value for areaslop", __func__, NULL);
1558 yslop = L_MAX(0, yslop);
1564 max_area = (l_float32)(w * h);
1568 for (i = 0; i < n; i++) {
1570 area = (l_float32)(w * h);
1571 if (area / max_area >= areaslop) {
1582 for (i = 1; i < n; i++) {
1584 if (y2 - y1 < yslop && x2 < x1) {
#define GET_DATA_BIT(pdata, n)
l_ok boxGetGeometry(const BOX *box, l_int32 *px, l_int32 *py, l_int32 *pw, l_int32 *ph)
boxGetGeometry()
void boxDestroy(BOX **pbox)
boxDestroy()
l_int32 boxaaGetCount(BOXAA *baa)
boxaaGetCount()
l_ok boxaGetBoxGeometry(BOXA *boxa, l_int32 index, l_int32 *px, l_int32 *py, l_int32 *pw, l_int32 *ph)
boxaGetBoxGeometry()
l_ok boxaWriteStderr(BOXA *boxa)
boxaWriteStderr()
l_ok boxaAddBox(BOXA *boxa, BOX *box, l_int32 copyflag)
boxaAddBox()
void boxaDestroy(BOXA **pboxa)
boxaDestroy()
l_int32 boxaGetCount(const BOXA *boxa)
boxaGetCount()
BOXA * boxaaGetBoxa(BOXAA *baa, l_int32 index, l_int32 accessflag)
boxaaGetBoxa()
BOX * boxaGetBox(BOXA *boxa, l_int32 index, l_int32 accessflag)
boxaGetBox()
BOX * boxCreate(l_int32 x, l_int32 y, l_int32 w, l_int32 h)
boxCreate()
BOXA * boxaCreate(l_int32 n)
boxaCreate()
l_ok boxPrintStreamInfo(FILE *fp, BOX *box)
boxPrintStreamInfo()
l_ok boxaJoin(BOXA *boxad, BOXA *boxas, l_int32 istart, l_int32 iend)
boxaJoin()
l_ok boxaaGetExtent(BOXAA *baa, l_int32 *pw, l_int32 *ph, BOX **pbox, BOXA **pboxa)
boxaaGetExtent()
BOX * boxTransform(BOX *box, l_int32 shiftx, l_int32 shifty, l_float32 scalex, l_float32 scaley)
boxTransform()
BOXA * boxaTransform(BOXA *boxas, l_int32 shiftx, l_int32 shifty, l_float32 scalex, l_float32 scaley)
boxaTransform()
BOXA * boxaSort(BOXA *boxas, l_int32 sorttype, l_int32 sortorder, NUMA **pnaindex)
boxaSort()
BOXA * pixSplitIntoBoxa(PIX *pixs, l_int32 minsum, l_int32 skipdist, l_int32 delta, l_int32 maxbg, l_int32 maxcomps, l_int32 remainder)
pixSplitIntoBoxa()
PIX * pixPaintBoxa(PIX *pixs, BOXA *boxa, l_uint32 val)
pixPaintBoxa()
PIX * pixSetBlackOrWhiteBoxa(PIX *pixs, BOXA *boxa, l_int32 op)
pixSetBlackOrWhiteBoxa()
BOX * boxaSelectLargeULBox(BOXA *boxas, l_float32 areaslop, l_int32 yslop)
boxaSelectLargeULBox()
PIX * pixMaskBoxa(PIX *pixd, PIX *pixs, BOXA *boxa, l_int32 op)
pixMaskBoxa()
PIX * pixMaskConnComp(PIX *pixs, l_int32 connectivity, BOXA **pboxa)
pixMaskConnComp()
PIX * boxaaDisplay(PIX *pixs, BOXAA *baa, l_int32 linewba, l_int32 linewb, l_uint32 colorba, l_uint32 colorb, l_int32 w, l_int32 h)
boxaaDisplay()
BOXA * pixSplitComponentIntoBoxa(PIX *pix, BOX *box, l_int32 minsum, l_int32 skipdist, l_int32 delta, l_int32 maxbg, l_int32 maxcomps, l_int32 remainder)
pixSplitComponentIntoBoxa()
l_ok boxaCompareRegions(BOXA *boxa1, BOXA *boxa2, l_int32 areathresh, l_int32 *pnsame, l_float32 *pdiffarea, l_float32 *pdiffxor, PIX **ppixdb)
boxaCompareRegions()
BOX * pixSelectLargeULComp(PIX *pixs, l_float32 areaslop, l_int32 yslop, l_int32 connectivity)
pixSelectLargeULComp()
BOXA * makeMosaicStrips(l_int32 w, l_int32 h, l_int32 direction, l_int32 size)
makeMosaicStrips()
PIXA * pixaDisplayBoxaa(PIXA *pixas, BOXAA *baa, l_int32 colorflag, l_int32 width)
pixaDisplayBoxaa()
PIX * pixDrawBoxa(PIX *pixs, BOXA *boxa, l_int32 width, l_uint32 val)
pixDrawBoxa()
PIX * pixDrawBoxaRandom(PIX *pixs, BOXA *boxa, l_int32 width)
pixDrawBoxaRandom()
PIX * pixBlendBoxaRandom(PIX *pixs, BOXA *boxa, l_float32 fract)
pixBlendBoxaRandom()
static l_int32 pixSearchForRectangle(PIX *pixs, BOX *boxs, l_int32 minsum, l_int32 skipdist, l_int32 delta, l_int32 maxbg, l_int32 sideflag, BOXA *boxat, NUMA *nascore)
pixSearchForRectangle()
PIX * pixPaintBoxaRandom(PIX *pixs, BOXA *boxa)
pixPaintBoxaRandom()
BOXA * boxaSelectByArea(BOXA *boxas, l_int32 area, l_int32 relation, l_int32 *pchanged)
boxaSelectByArea()
l_ok boxaGetArea(BOXA *boxa, l_int32 *parea)
boxaGetArea()
l_ok boxaGetExtent(BOXA *boxa, l_int32 *pw, l_int32 *ph, BOX **pbox)
boxaGetExtent()
void pixcmapDestroy(PIXCMAP **pcmap)
pixcmapDestroy()
PIXCMAP * pixcmapCreateRandom(l_int32 depth, l_int32 hasblack, l_int32 haswhite)
pixcmapCreateRandom()
l_int32 pixcmapGetCount(const PIXCMAP *cmap)
pixcmapGetCount()
PIXCMAP * pixcmapCreate(l_int32 depth)
pixcmapCreate()
l_ok pixcmapAddNewColor(PIXCMAP *cmap, l_int32 rval, l_int32 gval, l_int32 bval, l_int32 *pindex)
pixcmapAddNewColor()
l_ok pixcmapAddBlackOrWhite(PIXCMAP *cmap, l_int32 color, l_int32 *pindex)
pixcmapAddBlackOrWhite()
l_ok pixcmapGetColor(PIXCMAP *cmap, l_int32 index, l_int32 *prval, l_int32 *pgval, l_int32 *pbval)
pixcmapGetColor()
l_ok pixcmapAddColor(PIXCMAP *cmap, l_int32 rval, l_int32 gval, l_int32 bval)
pixcmapAddColor()
BOXA * pixConnCompBB(PIX *pixs, l_int32 connectivity)
pixConnCompBB()
BOXA * pixConnComp(PIX *pixs, PIXA **ppixa, l_int32 connectivity)
pixConnComp()
l_ok pixRenderHashBoxaBlend(PIX *pix, BOXA *boxa, l_int32 spacing, l_int32 width, l_int32 orient, l_int32 outline, l_int32 rval, l_int32 gval, l_int32 bval, l_float32 fract)
pixRenderHashBoxaBlend()
PIX * pixRenderRandomCmapPtaa(PIX *pix, PTAA *ptaa, l_int32 polyflag, l_int32 width, l_int32 closeflag)
pixRenderRandomCmapPtaa()
PTAA * generatePtaaBoxa(BOXA *boxa)
generatePtaaBoxa()
l_ok pixRenderBoxArb(PIX *pix, BOX *box, l_int32 width, l_uint8 rval, l_uint8 gval, l_uint8 bval)
pixRenderBoxArb()
l_ok pixRenderBoxaArb(PIX *pix, BOXA *boxa, l_int32 width, l_uint8 rval, l_uint8 gval, l_uint8 bval)
pixRenderBoxaArb()
l_ok numaAddNumber(NUMA *na, l_float32 val)
numaAddNumber()
NUMA * numaCreate(l_int32 n)
numaCreate()
void numaDestroy(NUMA **pna)
numaDestroy()
l_ok numaGetIValue(NUMA *na, l_int32 index, l_int32 *pival)
numaGetIValue()
NUMA * numaGetSortIndex(NUMA *na, l_int32 sortorder)
numaGetSortIndex()
l_ok pixSetColormap(PIX *pix, PIXCMAP *colormap)
pixSetColormap()
void pixDestroy(PIX **ppix)
pixDestroy()
l_ok pixGetDimensions(const PIX *pix, l_int32 *pw, l_int32 *ph, l_int32 *pd)
pixGetDimensions()
PIX * pixCopy(PIX *pixd, const PIX *pixs)
pixCopy()
PIX * pixCreateTemplate(const PIX *pixs)
pixCreateTemplate()
PIX * pixCreate(l_int32 width, l_int32 height, l_int32 depth)
pixCreate()
void ** pixGetLinePtrs(PIX *pix, l_int32 *psize)
pixGetLinePtrs()
l_ok pixSetInRectArbitrary(PIX *pix, BOX *box, l_uint32 val)
pixSetInRectArbitrary()
l_ok pixClearInRect(PIX *pix, BOX *box)
pixClearInRect()
l_ok pixSetInRect(PIX *pix, BOX *box)
pixSetInRect()
l_ok pixSetAll(PIX *pix)
pixSetAll()
l_ok pixBlendInRect(PIX *pixs, BOX *box, l_uint32 val, l_float32 fract)
pixBlendInRect()
l_ok composeRGBPixel(l_int32 rval, l_int32 gval, l_int32 bval, l_uint32 *ppixel)
composeRGBPixel()
void extractRGBValues(l_uint32 pixel, l_int32 *prval, l_int32 *pgval, l_int32 *pbval)
extractRGBValues()
l_ok pixPaintThroughMask(PIX *pixd, PIX *pixm, l_int32 x, l_int32 y, l_uint32 val)
pixPaintThroughMask()
l_ok pixCountPixels(PIX *pixs, l_int32 *pcount, l_int32 *tab8)
pixCountPixels()
PIX * pixAnd(PIX *pixd, PIX *pixs1, PIX *pixs2)
pixAnd()
l_int32 * makePixelSumTab8(void)
makePixelSumTab8()
PIX * pixXor(PIX *pixd, PIX *pixs1, PIX *pixs2)
pixXor()
l_ok pixClipBoxToForeground(PIX *pixs, BOX *boxs, PIX **ppixd, BOX **pboxd)
pixClipBoxToForeground()
l_ok pixaAddPix(PIXA *pixa, PIX *pix, l_int32 copyflag)
pixaAddPix()
void pixaDestroy(PIXA **ppixa)
pixaDestroy()
PIXA * pixaCreate(l_int32 n)
pixaCreate()
l_int32 pixaGetCount(PIXA *pixa)
pixaGetCount()
PIX * pixaGetPix(PIXA *pixa, l_int32 index, l_int32 accesstype)
pixaGetPix()
PIX * pixaDisplayTiledInRows(PIXA *pixa, l_int32 outdepth, l_int32 maxwidth, l_float32 scalefactor, l_int32 background, l_int32 spacing, l_int32 border)
pixaDisplayTiledInRows()
PIX * pixConvert1To8(PIX *pixd, PIX *pixs, l_uint8 val0, l_uint8 val1)
pixConvert1To8()
PIX * pixConvertTo8(PIX *pixs, l_int32 cmapflag)
pixConvertTo8()
PIX * pixConvertTo32(PIX *pixs)
pixConvertTo32()
void ptaaDestroy(PTAA **pptaa)
ptaaDestroy()
l_ok 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)
pixRasterop()
void lept_stderr(const char *fmt,...)
lept_stderr()