Home
last modified time | relevance | path

Searched refs:box2 (Results 1 – 25 of 2181) sorted by relevance

12345678910>>...88

/dports/graphics/gocr/gocr-0.52/src/
H A Ddetect.c104 my += box2->y1 - box2->y0 + 1; in detect_lines1()
310 if( get_bw(box2->x0,box2->x1,box2->y1+1 ,box2->y1+my/2,box2->p,job->cfg.cs,1) == 0 in detect_lines1()
311 || get_bw(box2->x0,box2->x1,box2->y1+my/2,box2->y1+my/2,box2->p,job->cfg.cs,1) == 1 in detect_lines1()
312 …|| num_cross(box2->x0,box2->x1,(box2->y0+box2->y1)/2,(box2->y0+box2->y1)/2,box2->p,job->cfg.cs)>2 ) in detect_lines1()
639 if( box2->x1-box2->x0+4 > dx && box2->y1+4<y0+dy ) { y3=1; y2=box2->y1+1; i=2; break; } in detect_lines2()
640 if( box2->x1-box2->x0+4 > dx && box2->y0-4>y0 ) { y3=1; y2=box2->y0-1; i=2; break; } in detect_lines2()
797 if (abs(box2->y1-box2->y0-box3->y1+box3->y0)>(box2->y1-box2->y0)/8) { in detect_rotation_angle()
986 box2->m1=job->res.lines.m1[box2->line]+((box2->x1)*dy/dx); in adjust_text_lines()
987 box2->m2=job->res.lines.m2[box2->line]+((box2->x1)*dy/dx); in adjust_text_lines()
988 box2->m3=job->res.lines.m3[box2->line]+((box2->x1)*dy/dx); in adjust_text_lines()
[all …]
H A Dlines.c124 box2->line, box2->x0, box2->y0, adjusted_indent); in get_least_line_indent()
208 if (box2->num_ac && box2->wac[0]<job->cfg.certainty) box2->c=UNKNOWN; in store_boxtree_lines()
253 box2->x0,box2->y0,box2->x1-box2->x0+1,box2->y1-box2->y0+1); in store_boxtree_lines()
266 int indent = box2->x0 - job->res.lines.x0[box2->line]; in store_boxtree_lines()
276 box2->x0,box2->y0,box2->x1-box2->x0+1,box2->y1-box2->y0+1); in store_boxtree_lines()
288 box2->x0,box2->y0,box2->x1-box2->x0+1,box2->y1-box2->y0+1); in store_boxtree_lines()
293 if (box2->c != UNKNOWN && box2->c != 0) { in store_boxtree_lines()
300 if (box2->num_ac>0 && box2->tas[0] in store_boxtree_lines()
307 if (box2->num_ac == 0 || box2->c == UNKNOWN) { in store_boxtree_lines()
329 if (box2->tas[i1] && box2->tas[i1][0]!='<') in store_boxtree_lines()
[all …]
H A Dremove.c37 dy = box2->y1 - box2->y0 - 1; in mean_thickness()
143 x0=box2->x0;x1=box2->x1;y0=box2->y0;y1=box2->y1; /* box */ in remove_dust()
177 x0=box2->x0;x1=box2->x1;y0=box2->y0;y1=box2->y1; /* box */ in remove_dust()
215 if (box2->x1-box2->x0+1<7 || box2->y1-box2->y0+1<16 ) continue; in smooth_borders()
334 && box2->y1-box2->y0+1>box2->p->y/2 ){ j=0; in remove_pictures()
358 if ( box2->x1-box2->x0+1 > box2->p->x/2 in remove_pictures()
368 if (getpixel(box2->p,box2->x0,box2->y0)<cs) j++; in remove_pictures()
369 if (getpixel(box2->p,box2->x1,box2->y0)<cs) j++; in remove_pictures()
370 if (getpixel(box2->p,box2->x0,box2->y1)<cs) j++; in remove_pictures()
540 if(box2->m3>y0 && 2*y1>box2->m3+box2->m4) i3=box2->m3; /* some IJ */ in remove_melted_serifs()
[all …]
H A Dpgm2asc.c1801 cnt, box2->x0, box2->y0, box2->x1-box2->x0, in count_subboxes()
1951 if (box2->m1>0 && y0<box2->m1-(box2->m3-box2->m2)) continue; in glue_broken_chars()
2319 if (box2->y1 - box2->y0 > 4 && box2->x1 - box2->x0 > 1) { // no dots! in compare_unknown_with_known_chars()
2328 if (box2->y1 - box2->y0 < 5 || box2->x1 - box2->x0 < 3) continue; in compare_unknown_with_known_chars()
2399 && box2->x1-box2->x0>5 && box2->y1-box2->y0>4){ in try_to_divide_boxes()
2451 if (box2->m2 && box2->m3 > box2->m2+2) in try_to_divide_boxes()
2831 decode(box2->c,ASCII), box2->wac[0], box2->x0, box2->y0); in context_correction()
3193 || box2->y0 < box2->m1 - (box2->m3-box2->m1)/2 in add_line_info()
3194 || box2->y0-2 > box2->m4 + (box2->m3-box2->m2)/2 // bad m4 + ,._ ocr-b in add_line_info()
3195 || box2->y1 > box2->m3 + (box2->m3-box2->m1) in add_line_info()
[all …]
/dports/graphics/swftools/swftools-0.9.2/lib/gocr/
H A Ddetect.c89 my += box2->y1 - box2->y0 + 1; in detect_lines1()
187 && (box2->y1 - box2->y0) < my in detect_lines1()
221 if( get_bw(box2->x0,box2->x1,box2->y1+1 ,box2->y1+my/2,box2->p,JOB->cfg.cs,1) == 0 in detect_lines1()
222 || get_bw(box2->x0,box2->x1,box2->y1+my/2,box2->y1+my/2,box2->p,JOB->cfg.cs,1) == 1 in detect_lines1()
223 …|| num_cross(box2->x0,box2->x1,(box2->y0+box2->y1)/2,(box2->y0+box2->y1)/2,box2->p,JOB->cfg.cs)>2 ) in detect_lines1()
491 if( box2->x1-box2->x0+4 > dx && box2->y1+4<y0+dy ) { y3=1; y2=box2->y1+1; i=2; break; } in detect_lines2()
649 if (abs(box2->y1-box2->y0-box3->y1+box3->y0)>(box2->y1-box2->y0)/8) { in detect_rotation_angle()
836 box2->m1=JOB->res.lines.m1[box2->line]+((box2->x1)*dy/dx); in adjust_text_lines()
837 box2->m2=JOB->res.lines.m2[box2->line]+((box2->x1)*dy/dx); in adjust_text_lines()
838 box2->m3=JOB->res.lines.m3[box2->line]+((box2->x1)*dy/dx); in adjust_text_lines()
[all …]
H A Dlines.c121 box2->line, box2->x0, box2->y0, adjusted_indent); in get_least_line_indent()
146 struct box *box2; in store_boxtree_lines() local
201 if (box2->num_ac && box2->wac[0]<JOB->cfg.certainty) box2->c=UNKNOWN; in store_boxtree_lines()
246 box2->x0,box2->y0,box2->x1-box2->x0+1,box2->y1-box2->y0+1); in store_boxtree_lines()
257 int indent = box2->x0 - JOB->res.lines.x0[box2->line]; in store_boxtree_lines()
267 box2->x0,box2->y0,box2->x1-box2->x0+1,box2->y1-box2->y0+1); in store_boxtree_lines()
278 box2->x0,box2->y0,box2->x1-box2->x0+1,box2->y1-box2->y0+1); in store_boxtree_lines()
283 if (box2->c != UNKNOWN && box2->c!=0) { in store_boxtree_lines()
290 if (box2->num_ac>0 && box2->tas[0] in store_boxtree_lines()
313 if (box2->tas[i1] && box2->tas[i1][0]!='<') in store_boxtree_lines()
[all …]
H A Dremove.c36 dy = box2->y1 - box2->y0 - 1; in mean_thickness()
137 x0=box2->x0;x1=box2->x1;y0=box2->y0;y1=box2->y1; /* box */ in remove_dust()
171 x0=box2->x0;x1=box2->x1;y0=box2->y0;y1=box2->y1; /* box */ in remove_dust()
209 if (box2->x1-box2->x0+1<7 || box2->y1-box2->y0+1<16 ) continue; in smooth_borders()
327 && box2->y1-box2->y0+1>box2->p->y/2 ){ j=0; in remove_pictures()
351 if ( box2->x1-box2->x0+1 > box2->p->x/2 in remove_pictures()
361 if (getpixel(box2->p,box2->x0,box2->y0)<cs) j++; in remove_pictures()
362 if (getpixel(box2->p,box2->x1,box2->y0)<cs) j++; in remove_pictures()
363 if (getpixel(box2->p,box2->x0,box2->y1)<cs) j++; in remove_pictures()
364 if (getpixel(box2->p,box2->x1,box2->y1)<cs) j++; in remove_pictures()
[all …]
H A Dpgm2asc.c1552 cnt, box2->x0, box2->y0, box2->x1-box2->x0, in count_subboxes()
1690 if( box2->m1>0 && y0<box2->m1-(box2->m3-box2->m2) ) continue; in glue_broken_chars()
1764 && 2*box2->y0 < box2->m3+box2->m2 in glue_broken_chars()
1971 x0=box2->x0;x1=box2->x1; in char_recognition()
2027 if (box2->y1 - box2->y0 > 4 && box2->x1 - box2->x0 > 1) { // no dots! in compare_unknown_with_known_chars()
2036 if (box2->y1 - box2->y0 < 5 || box2->x1 - box2->x0 < 3) continue; in compare_unknown_with_known_chars()
2098 && box2->x1-box2->x0>5 && box2->y1-box2->y0>4){ in try_to_divide_boxes()
2107 if (box2->m2 && box2->m3 > box2->m2+2) in try_to_divide_boxes()
2596 if( box2->m2==0 || abs(box2->y0-box2->m2) > abs(box2->y0-m2) ) in add_line_info()
2606 || box2->y0 < box2->m1 - (box2->m3-box2->m1)/2 in add_line_info()
[all …]
/dports/math/libccd/libccd-2.1/src/testsuites/
H A Dmpr_boxbox.c251 ccdVec3X(&box2->pos), ccdVec3Y(&box2->pos), ccdVec3Z(&box2->pos)); in pConf()
253 box2->quat.q[0], box2->quat.q[1], box2->quat.q[2], box2->quat.q[3]); in pConf()
307 box2.x = box2.y = box2.z = 1.; in TEST()
396 box2.x = box2.y = box2.z = 1.; in TEST()
408 box2.x = box2.y = box2.z = 1.; in TEST()
420 box2.x = box2.y = box2.z = 1.; in TEST()
432 box2.x = box2.y = box2.z = 1.; in TEST()
461 box2.x = 0.2; box2.y = 0.5; box2.z = 1.; in TEST()
462 box2.x = box2.y = box2.z = 1.; in TEST()
480 box2.x = 0.5; box2.y = 0.5; box2.z = .5; in TEST()
[all …]
H A Dboxbox.c34 box2.x = 2; in TEST()
35 box2.y = 1; in TEST()
252 ccdVec3X(&box2->pos), ccdVec3Y(&box2->pos), ccdVec3Z(&box2->pos)); in pConf()
254 box2->quat.q[0], box2->quat.q[1], box2->quat.q[2], box2->quat.q[3]); in pConf()
306 box2.x = box2.y = box2.z = 1.; in TEST()
385 box2.x = box2.y = box2.z = 1.; in TEST()
397 box2.x = box2.y = box2.z = 1.; in TEST()
409 box2.x = box2.y = box2.z = 1.; in TEST()
421 box2.x = box2.y = box2.z = 1.; in TEST()
450 box2.x = 0.2; box2.y = 0.5; box2.z = 1.; in TEST()
[all …]
/dports/devel/ode/ode-0.13/libccd/src/testsuites/
H A Dmpr_boxbox.c251 ccdVec3X(&box2->pos), ccdVec3Y(&box2->pos), ccdVec3Z(&box2->pos)); in pConf()
253 box2->quat.q[0], box2->quat.q[1], box2->quat.q[2], box2->quat.q[3]); in pConf()
305 box2.x = box2.y = box2.z = 1.; in TEST()
394 box2.x = box2.y = box2.z = 1.; in TEST()
406 box2.x = box2.y = box2.z = 1.; in TEST()
418 box2.x = box2.y = box2.z = 1.; in TEST()
430 box2.x = box2.y = box2.z = 1.; in TEST()
459 box2.x = 0.2; box2.y = 0.5; box2.z = 1.; in TEST()
460 box2.x = box2.y = box2.z = 1.; in TEST()
478 box2.x = 0.5; box2.y = 0.5; box2.z = .5; in TEST()
[all …]
H A Dboxbox.c35 box2.x = 2; in TEST()
36 box2.y = 1; in TEST()
253 ccdVec3X(&box2->pos), ccdVec3Y(&box2->pos), ccdVec3Z(&box2->pos)); in pConf()
255 box2->quat.q[0], box2->quat.q[1], box2->quat.q[2], box2->quat.q[3]); in pConf()
307 box2.x = box2.y = box2.z = 1.; in TEST()
386 box2.x = box2.y = box2.z = 1.; in TEST()
398 box2.x = box2.y = box2.z = 1.; in TEST()
410 box2.x = box2.y = box2.z = 1.; in TEST()
422 box2.x = box2.y = box2.z = 1.; in TEST()
451 box2.x = 0.2; box2.y = 0.5; box2.z = 1.; in TEST()
[all …]
/dports/devel/ppl/ppl-1.2/tests/Box/
H A Dcc76narrowing1.cc38 TBox box2(3); in test01() local
39 box2.add_constraint(-x <= 3); in test01()
40 box2.add_constraint(y <= 2); in test01()
41 box2.add_constraint(-y <= 5); in test01()
42 box2.add_constraint(x <= 0); in test01()
71 TBox box2(4); in test02() local
74 box2.add_constraint(x <= 3); in test02()
102 TBox box2(3); in test03() local
134 TBox box2(3); in test04() local
157 TBox box2(0, EMPTY); in test05() local
[all …]
H A Ddifference1.cc40 TBox box2(2); in test01() local
92 TBox box2; in test03() local
122 TBox box2(2); in test04() local
159 TBox box2(2); in test05() local
191 TBox box2(2); in test06() local
224 TBox box2(3); in test07() local
259 TBox box2(2); in test08() local
296 TBox box2(2); in test09() local
333 TBox box2(2); in test10() local
397 TBox box2(2); in test12() local
[all …]
H A Dintersection1.cc36 TBox box2(3); in test01() local
64 TBox box2(4); in test02() local
95 TBox box2(3); in test03() local
129 TBox box2(3); in test04() local
159 TBox box2(3); in test05() local
180 TBox box2; in test06() local
204 TBox box2(3); in test07() local
229 TBox box2(3); in test08() local
254 TBox box2(3); in test09() local
294 TBox box2(3); in test11() local
[all …]
H A Dupperboundifexact1.cc77 TBox box2(2, UNIVERSE); in test02() local
78 box2.add_constraint(x >= 1); in test02()
79 box2.add_constraint(x <= 2); in test02()
108 TBox box2(2, UNIVERSE); in test03() local
141 TBox box2(2, UNIVERSE); in test04() local
149 TBox known_result(box2); in test04()
170 TBox box2(2, UNIVERSE); in test05() local
197 TBox box2(2, UNIVERSE); in test06() local
222 TBox box2(2, UNIVERSE); in test07() local
250 TBox box2(2, UNIVERSE); in test08() local
[all …]
H A Dsimplifyusingcontext1.cc41 TBox box2(box1); in test01() local
42 box2.affine_image(x, x + 6); in test01()
70 TBox box2(box1); in test02() local
71 box2.affine_image(x, x + 1); in test02()
72 box2.affine_image(y, y + 6); in test02()
101 TBox box2(1); in test03() local
167 TBox box2(3, UNIVERSE); in test05() local
200 TBox box2(3, UNIVERSE); in test06() local
220 TBox box2; in test07() local
242 TBox box2(1); in test08() local
[all …]
H A Dupperbound1.cc39 TBox box2(5); in test01() local
40 box2.add_constraint(x1 <= 2); in test01()
41 box2.add_constraint(x4 <= 7); in test01()
69 TBox box2(3); in test02() local
70 box2.add_constraint(x <= 3); in test02()
100 TBox box2(2); in test03() local
129 TBox box2(2); in test04() local
154 TBox box2(5); in test05() local
179 TBox box2(1); in test06() local
204 TBox box2(1); in test07() local
[all …]
H A Ddisjoint1.cc38 TBox box2(2); in test01() local
39 box2.add_constraint(A == 0); in test01()
40 box2.add_constraint(B >= 1); in test01()
41 box2.add_constraint(B <= 2); in test01()
58 TBox box2(3); in test02() local
89 TBox box2(2); in test03() local
90 box2.add_constraints(cs2); in test03()
106 TBox box2(3); in test04() local
131 TBox box2(2); in test05() local
150 TBox box2(2, EMPTY); in test06() local
[all …]
H A Dlimitedcc76extrapolation1.cc31 TBox box2(0); in test01() local
57 TBox box2(2); in test02() local
59 box2.add_constraint(B == 3); in test02()
93 TBox box2(cs2); in test03() local
128 TBox box2(3); in test04() local
164 TBox box2(2, EMPTY); in test05() local
192 TBox box2(2, EMPTY); in test06() local
219 TBox box2(2); in test07() local
250 TBox box2(2); in test08() local
282 TBox box2(2); in test09() local
[all …]
H A Dtimeelapse1.cc31 TBox box2(2); in test01() local
36 box1.time_elapse_assign(box2); in test01()
63 TBox box2(2); in test02() local
64 box2.add_constraint(x >= 2); in test02()
65 box2.add_constraint(x <= 4); in test02()
66 box2.add_constraint(y == 3); in test02()
95 TBox box2(2); in test03() local
96 box2.add_constraint(y == 5); in test03()
122 TBox box2(3); in test04() local
153 TBox box2(3); in test05() local
[all …]
H A Dconcatenate1.cc44 TBox box2(3); in test01() local
45 box2.add_constraint(x3 <= 7); in test01()
72 TBox box2(0, EMPTY); in test02() local
101 TBox box2(0); in test03() local
132 TBox box2(2); in test04() local
133 box2.add_constraint(A >= 0); in test04()
134 box2.add_constraint(A <= 1); in test04()
135 box2.add_constraint(B >= 0); in test04()
167 TBox box2(0, EMPTY); in test05() local
195 TBox box2(1); in test06() local
[all …]
H A Dequality1.cc35 TBox box2(2); in test01() local
39 box2.add_constraint(x == 3); in test01()
42 print_constraints(box2, "*** box2 ***"); in test01()
53 TBox box2(0); in test02() local
67 TBox box2(0, EMPTY); in test03() local
88 TBox box2(2); in test04() local
89 box2.add_constraint(A >= 9); in test04()
90 box2.add_constraint(B <= -2); in test04()
110 TBox box2(2); in test05() local
111 box2.add_constraint(B <= 5); in test05()
[all …]
/dports/math/R-cran-prodlim/prodlim/R/
H A DfindArrow.R47 box2$p1 <- c(x=box2$left,y=box2$bottom)
48 box2$p2 <- c(x=box2$left,y=box2$mid.vertical)
49 box2$p3 <- c(x=box2$left,y=box2$top)
50 box2$p4 <- c(x=box2$mid.horizontal,y=box2$top)
51 box2$p5 <- c(x=box2$right,y=box2$top)
52 box2$p6 <- c(x=box2$right,y=box2$mid.vertical)
53 box2$p7 <- c(x=box2$right,y=box2$bottom)
54 box2$p8 <- c(x=box2$mid.horizontal,y=box2$bottom)
62 box1 <- box2
112 if ((box2$bottom-box1$top) <= (box2$left-box1$right)){
[all …]
/dports/cad/pdnmesh/pdnmesh-0.2.2/src/
H A Doutput.c129 box2=gtk_hbox_new(FALSE,10); in generate_output_files()
132 gtk_widget_show(box2); in generate_output_files()
145 gtk_widget_show(box2); in generate_output_files()
156 gtk_widget_show(box2); in generate_output_files()
165 box2=gtk_hbox_new(FALSE,10); in generate_output_files()
168 gtk_widget_show(box2); in generate_output_files()
181 gtk_widget_show(box2); in generate_output_files()
190 box2=gtk_hbox_new(FALSE,10); in generate_output_files()
193 gtk_widget_show(box2); in generate_output_files()
204 gtk_widget_show(box2); in generate_output_files()
[all …]

12345678910>>...88