-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathbilinear_8c.html
916 lines (843 loc) · 63.5 KB
/
bilinear_8c.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<title>Leptonica: src/bilinear.c File Reference</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/search.js"></script>
<link href="navtree.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="navtree.js"></script>
<script type="text/javascript" src="resize.js"></script>
<script type="text/javascript">
$(document).ready(initResizable);
</script>
<link href="doxygen.css" rel="stylesheet" type="text/css"/>
</head>
<body onload='searchBox.OnSelectItem(0);'>
<!-- Generated by Doxygen 1.7.3 -->
<script type="text/javascript"><!--
var searchBox = new SearchBox("searchBox", "search",false,'Search');
--></script>
<script type="text/javascript">
function hasClass(ele,cls) {
return ele.className.match(new RegExp('(\\s|^)'+cls+'(\\s|$)'));
}
function addClass(ele,cls) {
if (!this.hasClass(ele,cls)) ele.className += " "+cls;
}
function removeClass(ele,cls) {
if (hasClass(ele,cls)) {
var reg = new RegExp('(\\s|^)'+cls+'(\\s|$)');
ele.className=ele.className.replace(reg,' ');
}
}
function toggleVisibility(linkObj) {
var base = linkObj.getAttribute('id');
var summary = document.getElementById(base + '-summary');
var content = document.getElementById(base + '-content');
var trigger = document.getElementById(base + '-trigger');
if ( hasClass(linkObj,'closed') ) {
summary.style.display = 'none';
content.style.display = 'block';
trigger.src = 'open.png';
removeClass(linkObj,'closed');
addClass(linkObj,'opened');
} else if ( hasClass(linkObj,'opened') ) {
summary.style.display = 'block';
content.style.display = 'none';
trigger.src = 'closed.png';
removeClass(linkObj,'opened');
addClass(linkObj,'closed');
}
return false;
}
</script>
<div id="top">
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
<tbody>
<tr style="height: 56px;">
<td id="projectlogo"><img alt="Logo" src="moller52-tiny.jpg"></td>
<td style="padding-left: 0.5em;">
<div id="projectname">Leptonica <span id="projectnumber">1.68</span></div>
<div id="projectbrief">C Image Processing Library</div>
</td>
</tr>
</tbody>
</table>
</div>
<div id="navrow1" class="tabs">
<ul class="tablist">
<li><a href="index.html"><span>Main Page</span></a></li>
<li><a href="annotated.html"><span>Data Structures</span></a></li>
<li class="current"><a href="files.html"><span>Files</span></a></li>
<li><a href="dirs.html"><span>Directories</span></a></li>
<li id="searchli">
<div id="MSearchBox" class="MSearchBoxInactive">
<span class="left">
<img id="MSearchSelect" src="search/mag_sel.png"
onmouseover="return searchBox.OnSearchSelectShow()"
onmouseout="return searchBox.OnSearchSelectHide()"
alt=""/>
<input type="text" id="MSearchField" value="Search" accesskey="S"
onfocus="searchBox.OnSearchFieldFocus(true)"
onblur="searchBox.OnSearchFieldFocus(false)"
onkeyup="searchBox.OnSearchFieldChange(event)"/>
</span><span class="right">
<a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.png" alt=""/></a>
</span>
</div>
</li>
</ul>
</div>
<div id="navrow2" class="tabs2">
<ul class="tablist">
<li><a href="files.html"><span>File List</span></a></li>
<li><a href="globals.html"><span>Globals</span></a></li>
</ul>
</div>
</div>
<div id="side-nav" class="ui-resizable side-nav-resizable">
<div id="nav-tree">
<div id="nav-tree-contents">
</div>
</div>
<div id="splitbar" style="-moz-user-select:none;"
class="ui-resizable-handle">
</div>
</div>
<script type="text/javascript">
initNavTree('bilinear_8c.html','');
</script>
<div id="doc-content">
<div class="header">
<div class="summary">
<a href="#func-members">Functions</a> |
<a href="#var-members">Variables</a> </div>
<div class="headertitle">
<h1>bilinear.c File Reference</h1> </div>
</div>
<div class="contents">
<p>4-pt bilinear transforms on images and coordinates, with sampling and interpolation
<a href="#_details">More...</a></p>
<div class="textblock"><code>#include <stdio.h></code><br/>
<code>#include <stdlib.h></code><br/>
<code>#include <string.h></code><br/>
<code>#include <math.h></code><br/>
<code>#include "<a class="el" href="allheaders_8h_source.html">allheaders.h</a>"</code><br/>
</div>
<p><a href="bilinear_8c_source.html">Go to the source code of this file.</a></p>
<table class="memberdecls">
<tr><td colspan="2"><h2><a name="func-members"></a>
Functions</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="el" href="struct_pix.html">PIX</a> * </td><td class="memItemRight" valign="bottom"><a class="el" href="bilinear_8c.html#a4f3574a47c72332a4e38cab21d5384c1">pixBilinearSampledPta</a> (<a class="el" href="struct_pix.html">PIX</a> *pixs, <a class="el" href="struct_pta.html">PTA</a> *ptad, <a class="el" href="struct_pta.html">PTA</a> *ptas, <a class="el" href="environ_8h.html#a9085c7874153c280a4171244aa052e4e">l_int32</a> incolor)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="el" href="struct_pix.html">PIX</a> * </td><td class="memItemRight" valign="bottom"><a class="el" href="bilinear_8c.html#a0335ce400bd87b0d383d2ec35bedd1a0">pixBilinearSampled</a> (<a class="el" href="struct_pix.html">PIX</a> *pixs, <a class="el" href="environ_8h.html#af59419416d96ecf5fca70c8d05adb456">l_float32</a> *vc, <a class="el" href="environ_8h.html#a9085c7874153c280a4171244aa052e4e">l_int32</a> incolor)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="el" href="struct_pix.html">PIX</a> * </td><td class="memItemRight" valign="bottom"><a class="el" href="bilinear_8c.html#a866a16d9b1b7b1eeccee5a99db770f6c">pixBilinearPta</a> (<a class="el" href="struct_pix.html">PIX</a> *pixs, <a class="el" href="struct_pta.html">PTA</a> *ptad, <a class="el" href="struct_pta.html">PTA</a> *ptas, <a class="el" href="environ_8h.html#a9085c7874153c280a4171244aa052e4e">l_int32</a> incolor)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="el" href="struct_pix.html">PIX</a> * </td><td class="memItemRight" valign="bottom"><a class="el" href="bilinear_8c.html#a3cd91f17e187a01167d6eb202327f5f9">pixBilinear</a> (<a class="el" href="struct_pix.html">PIX</a> *pixs, <a class="el" href="environ_8h.html#af59419416d96ecf5fca70c8d05adb456">l_float32</a> *vc, <a class="el" href="environ_8h.html#a9085c7874153c280a4171244aa052e4e">l_int32</a> incolor)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="el" href="struct_pix.html">PIX</a> * </td><td class="memItemRight" valign="bottom"><a class="el" href="bilinear_8c.html#aa967eb84f3a887aa448d6b9ac706f31e">pixBilinearPtaColor</a> (<a class="el" href="struct_pix.html">PIX</a> *pixs, <a class="el" href="struct_pta.html">PTA</a> *ptad, <a class="el" href="struct_pta.html">PTA</a> *ptas, <a class="el" href="environ_8h.html#a4d4d7254020fc95aef5dde8884405358">l_uint32</a> colorval)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="el" href="struct_pix.html">PIX</a> * </td><td class="memItemRight" valign="bottom"><a class="el" href="bilinear_8c.html#aa67483a6e7485e402548fcaf5bdcb30b">pixBilinearColor</a> (<a class="el" href="struct_pix.html">PIX</a> *pixs, <a class="el" href="environ_8h.html#af59419416d96ecf5fca70c8d05adb456">l_float32</a> *vc, <a class="el" href="environ_8h.html#a4d4d7254020fc95aef5dde8884405358">l_uint32</a> colorval)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="el" href="struct_pix.html">PIX</a> * </td><td class="memItemRight" valign="bottom"><a class="el" href="bilinear_8c.html#a788c2c4ea2a64a9f0274898477dbd113">pixBilinearPtaGray</a> (<a class="el" href="struct_pix.html">PIX</a> *pixs, <a class="el" href="struct_pta.html">PTA</a> *ptad, <a class="el" href="struct_pta.html">PTA</a> *ptas, <a class="el" href="environ_8h.html#a7ed60554e7d6dd89aca643189b1e70ad">l_uint8</a> grayval)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="el" href="struct_pix.html">PIX</a> * </td><td class="memItemRight" valign="bottom"><a class="el" href="bilinear_8c.html#a7f5121c569440ea4ee49100e2bc5b631">pixBilinearGray</a> (<a class="el" href="struct_pix.html">PIX</a> *pixs, <a class="el" href="environ_8h.html#af59419416d96ecf5fca70c8d05adb456">l_float32</a> *vc, <a class="el" href="environ_8h.html#a7ed60554e7d6dd89aca643189b1e70ad">l_uint8</a> grayval)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="el" href="struct_pix.html">PIX</a> * </td><td class="memItemRight" valign="bottom"><a class="el" href="bilinear_8c.html#a739ebd4cf6b26d52b186236430fd64fb">pixBilinearPtaWithAlpha</a> (<a class="el" href="struct_pix.html">PIX</a> *pixs, <a class="el" href="struct_pta.html">PTA</a> *ptad, <a class="el" href="struct_pta.html">PTA</a> *ptas, <a class="el" href="struct_pix.html">PIX</a> *pixg, <a class="el" href="environ_8h.html#af59419416d96ecf5fca70c8d05adb456">l_float32</a> fract, <a class="el" href="environ_8h.html#a9085c7874153c280a4171244aa052e4e">l_int32</a> border)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="el" href="struct_pix.html">PIX</a> * </td><td class="memItemRight" valign="bottom"><a class="el" href="bilinear_8c.html#a8c6a4b1ffc5d17ab5ca7496813da1c85">pixBilinearPtaGammaXform</a> (<a class="el" href="struct_pix.html">PIX</a> *pixs, <a class="el" href="environ_8h.html#af59419416d96ecf5fca70c8d05adb456">l_float32</a> gamma, <a class="el" href="struct_pta.html">PTA</a> *ptad, <a class="el" href="struct_pta.html">PTA</a> *ptas, <a class="el" href="environ_8h.html#af59419416d96ecf5fca70c8d05adb456">l_float32</a> fract, <a class="el" href="environ_8h.html#a9085c7874153c280a4171244aa052e4e">l_int32</a> border)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="el" href="environ_8h.html#a9085c7874153c280a4171244aa052e4e">l_int32</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="bilinear_8c.html#aa3a0074fac267cd853f517dad1f928fb">getBilinearXformCoeffs</a> (<a class="el" href="struct_pta.html">PTA</a> *ptas, <a class="el" href="struct_pta.html">PTA</a> *ptad, <a class="el" href="environ_8h.html#af59419416d96ecf5fca70c8d05adb456">l_float32</a> **pvc)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="el" href="environ_8h.html#a9085c7874153c280a4171244aa052e4e">l_int32</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="bilinear_8c.html#a49a64f65c6156091745cb4336d273279">bilinearXformSampledPt</a> (<a class="el" href="environ_8h.html#af59419416d96ecf5fca70c8d05adb456">l_float32</a> *vc, <a class="el" href="environ_8h.html#a9085c7874153c280a4171244aa052e4e">l_int32</a> x, <a class="el" href="environ_8h.html#a9085c7874153c280a4171244aa052e4e">l_int32</a> y, <a class="el" href="environ_8h.html#a9085c7874153c280a4171244aa052e4e">l_int32</a> *pxp, <a class="el" href="environ_8h.html#a9085c7874153c280a4171244aa052e4e">l_int32</a> *pyp)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="el" href="environ_8h.html#a9085c7874153c280a4171244aa052e4e">l_int32</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="bilinear_8c.html#a8ac1cde6ef928602fd8106cc66031e06">bilinearXformPt</a> (<a class="el" href="environ_8h.html#af59419416d96ecf5fca70c8d05adb456">l_float32</a> *vc, <a class="el" href="environ_8h.html#a9085c7874153c280a4171244aa052e4e">l_int32</a> x, <a class="el" href="environ_8h.html#a9085c7874153c280a4171244aa052e4e">l_int32</a> y, <a class="el" href="environ_8h.html#af59419416d96ecf5fca70c8d05adb456">l_float32</a> *pxp, <a class="el" href="environ_8h.html#af59419416d96ecf5fca70c8d05adb456">l_float32</a> *pyp)</td></tr>
<tr><td colspan="2"><h2><a name="var-members"></a>
Variables</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="el" href="environ_8h.html#af59419416d96ecf5fca70c8d05adb456">l_float32</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="bilinear_8c.html#a073f1588e24855b59dcdd87afe3b6e6f">AlphaMaskBorderVals</a> [2]</td></tr>
</table>
<hr/><a name="_details"></a><h2>Detailed Description</h2>
<div class="textblock"><p>4-pt bilinear transforms on images and coordinates, with sampling and interpolation </p>
<div class="fragment"><pre class="fragment"> Bilinear (4 pt) <a class="code" href="colorquant__reg_8c.html#aabec89bef1d1e1f9faf4e7d2e685c317">image</a> transformation using a sampled
(to nearest integer) transform on each dest point
<a class="code" href="struct_pix.html">PIX</a> *<a class="code" href="bilinear_8c.html#a4f3574a47c72332a4e38cab21d5384c1">pixBilinearSampledPta</a>()
<a class="code" href="struct_pix.html">PIX</a> *<a class="code" href="bilinear_8c.html#a0335ce400bd87b0d383d2ec35bedd1a0">pixBilinearSampled</a>()
Bilinear (4 pt) <a class="code" href="colorquant__reg_8c.html#aabec89bef1d1e1f9faf4e7d2e685c317">image</a> transformation using interpolation
(or area mapping) for anti-aliasing images that are
2, 4, or 8 bpp gray, or colormapped, or 32 bpp RGB
<a class="code" href="struct_pix.html">PIX</a> *<a class="code" href="bilinear_8c.html#a866a16d9b1b7b1eeccee5a99db770f6c">pixBilinearPta</a>()
<a class="code" href="struct_pix.html">PIX</a> *<a class="code" href="bilinear_8c.html#a3cd91f17e187a01167d6eb202327f5f9">pixBilinear</a>()
<a class="code" href="struct_pix.html">PIX</a> *<a class="code" href="bilinear_8c.html#aa967eb84f3a887aa448d6b9ac706f31e">pixBilinearPtaColor</a>()
<a class="code" href="struct_pix.html">PIX</a> *<a class="code" href="bilinear_8c.html#aa67483a6e7485e402548fcaf5bdcb30b">pixBilinearColor</a>()
<a class="code" href="struct_pix.html">PIX</a> *<a class="code" href="bilinear_8c.html#a788c2c4ea2a64a9f0274898477dbd113">pixBilinearPtaGray</a>()
<a class="code" href="struct_pix.html">PIX</a> *<a class="code" href="bilinear_8c.html#a7f5121c569440ea4ee49100e2bc5b631">pixBilinearGray</a>()
Bilinear transform including alpha (blend) component and gamma xform
<a class="code" href="struct_pix.html">PIX</a> *<a class="code" href="bilinear_8c.html#a739ebd4cf6b26d52b186236430fd64fb">pixBilinearPtaWithAlpha</a>()
<a class="code" href="struct_pix.html">PIX</a> *<a class="code" href="bilinear_8c.html#a8c6a4b1ffc5d17ab5ca7496813da1c85">pixBilinearPtaGammaXform</a>()
Bilinear coordinate transformation
<a class="code" href="environ_8h.html#a9085c7874153c280a4171244aa052e4e">l_int32</a> <a class="code" href="bilinear_8c.html#aa3a0074fac267cd853f517dad1f928fb">getBilinearXformCoeffs</a>()
<a class="code" href="environ_8h.html#a9085c7874153c280a4171244aa052e4e">l_int32</a> <a class="code" href="bilinear_8c.html#a49a64f65c6156091745cb4336d273279">bilinearXformSampledPt</a>()
<a class="code" href="environ_8h.html#a9085c7874153c280a4171244aa052e4e">l_int32</a> <a class="code" href="bilinear_8c.html#a8ac1cde6ef928602fd8106cc66031e06">bilinearXformPt</a>()
A bilinear transform can be specified as a specific functional
mapping between 4 points in the source and 4 points in the dest.
It can be used as an approximation to a (nonlinear) projective
transform, because for small warps it is very similar and
it is more stable. (Projective transforms have a division
by a quantity that can get arbitrarily small.)
We give both a bilinear coordinate transformation and
a bilinear <a class="code" href="colorquant__reg_8c.html#aabec89bef1d1e1f9faf4e7d2e685c317">image</a> transformation.
For the former, we ask for the coordinate value (x',y')
in the transformed space for any point (x,y) in the original
space. The coefficients of the transformation are found by
solving 8 simultaneous equations for the 8 coordinates of
the 4 points in src and dest. The transformation can then
be used to compute the associated <a class="code" href="colorquant__reg_8c.html#aabec89bef1d1e1f9faf4e7d2e685c317">image</a> transform, by
computing, for each dest pixel, the relevant pixel(s) in
the source. This can be done either by taking the closest
src pixel to each transformed dest pixel ("sampling") or
by doing an interpolation and averaging over 4 source
pixels with appropriate weightings ("interpolated").
A typical application would be to remove some of the
keystoning due to a projective transform in the imaging system.
The bilinear transform is given by specifying two equations:
x' = ax + by + cxy + d
y' = ex + fy + gxy + h
where the eight coefficients have been computed from four
sets of these equations, each for two corresponding data pts.
In practice, for each point (x,y) in the dest <a class="code" href="colorquant__reg_8c.html#aabec89bef1d1e1f9faf4e7d2e685c317">image</a>, this
equation is used to compute the corresponding point (x',y')
in the src. That computed point in the src is then used
to determine the dest value in one of two ways:
- sampling: take the value of the src pixel in which this
point falls
- interpolation: take appropriate linear combinations of the
four src pixels that this dest pixel would
overlap, with the coefficients proportional
to the amount of overlap
For small warp, like rotation, area mapping in the
interpolation is equivalent to linear interpolation.
Typical relative timing of transforms (sampled = 1.0):
8 bpp: sampled 1.0
interpolated 1.6
32 bpp: sampled 1.0
interpolated 1.8
Additionally, the computation time/pixel is nearly the same
for 8 bpp and 32 bpp, for both sampled and interpolated.
</pre></div>
<p>Definition in file <a class="el" href="bilinear_8c_source.html">bilinear.c</a>.</p>
</div><hr/><h2>Function Documentation</h2>
<a class="anchor" id="a4f3574a47c72332a4e38cab21d5384c1"></a><!-- doxytag: member="bilinear.c::pixBilinearSampledPta" ref="a4f3574a47c72332a4e38cab21d5384c1" args="(PIX *pixs, PTA *ptad, PTA *ptas, l_int32 incolor)" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname"><a class="el" href="struct_pix.html">PIX</a>* pixBilinearSampledPta </td>
<td>(</td>
<td class="paramtype"><a class="el" href="struct_pix.html">PIX</a> * </td>
<td class="paramname"><em>pixs</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype"><a class="el" href="struct_pta.html">PTA</a> * </td>
<td class="paramname"><em>ptad</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype"><a class="el" href="struct_pta.html">PTA</a> * </td>
<td class="paramname"><em>ptas</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype"><a class="el" href="environ_8h.html#a9085c7874153c280a4171244aa052e4e">l_int32</a> </td>
<td class="paramname"><em>incolor</em> </td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td>
</tr>
</table>
</div>
<div class="memdoc">
<p><a class="el" href="bilinear_8c.html#a4f3574a47c72332a4e38cab21d5384c1">pixBilinearSampledPta()</a></p>
<p>Input: pixs (all depths) ptad (4 pts of final coordinate space) ptas (4 pts of initial coordinate space) incolor (L_BRING_IN_WHITE, L_BRING_IN_BLACK) Return: pixd, or null on error</p>
<p>Notes: (1) Brings in either black or white pixels from the boundary. (2) Retains colormap, which you can do for a sampled transform.. (3) No 3 of the 4 points may be collinear. (4) For 8 and 32 bpp pix, better quality is obtained by the somewhat slower <a class="el" href="bilinear_8c.html#a866a16d9b1b7b1eeccee5a99db770f6c">pixBilinearPta()</a>. See that function for relative timings between sampled and interpolated. </p>
<p>Definition at line <a class="el" href="bilinear_8c_source.html#l00130">130</a> of file <a class="el" href="bilinear_8c_source.html">bilinear.c</a>.</p>
<p>References <a class="el" href="environ_8h_source.html#l00250">ERROR_PTR</a>, <a class="el" href="environ_8h_source.html#l00216">FREE</a>, <a class="el" href="bilinear_8c_source.html#l00798">getBilinearXformCoeffs()</a>, <a class="el" href="pix_8h_source.html#l00695">L_BRING_IN_BLACK</a>, <a class="el" href="pix_8h_source.html#l00694">L_BRING_IN_WHITE</a>, <a class="el" href="environ_8h_source.html#l00171">NULL</a>, <a class="el" href="bilinear_8c_source.html#l00178">pixBilinearSampled()</a>, <a class="el" href="environ_8h_source.html#l00249">PROCNAME</a>, and <a class="el" href="ptabasic_8c_source.html#l00346">ptaGetCount()</a>.</p>
<p>Referenced by <a class="el" href="bilinear__reg_8c_source.html#l00052">main()</a>, and <a class="el" href="bilinear_8c_source.html#l00273">pixBilinearPta()</a>.</p>
</div>
</div>
<a class="anchor" id="a0335ce400bd87b0d383d2ec35bedd1a0"></a><!-- doxytag: member="bilinear.c::pixBilinearSampled" ref="a0335ce400bd87b0d383d2ec35bedd1a0" args="(PIX *pixs, l_float32 *vc, l_int32 incolor)" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname"><a class="el" href="struct_pix.html">PIX</a>* pixBilinearSampled </td>
<td>(</td>
<td class="paramtype"><a class="el" href="struct_pix.html">PIX</a> * </td>
<td class="paramname"><em>pixs</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype"><a class="el" href="environ_8h.html#af59419416d96ecf5fca70c8d05adb456">l_float32</a> * </td>
<td class="paramname"><em>vc</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype"><a class="el" href="environ_8h.html#a9085c7874153c280a4171244aa052e4e">l_int32</a> </td>
<td class="paramname"><em>incolor</em> </td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td>
</tr>
</table>
</div>
<div class="memdoc">
<p><a class="el" href="bilinear_8c.html#a0335ce400bd87b0d383d2ec35bedd1a0">pixBilinearSampled()</a></p>
<p>Input: pixs (all depths) vc (vector of 8 coefficients for bilinear transformation) incolor (L_BRING_IN_WHITE, L_BRING_IN_BLACK) Return: pixd, or null on error</p>
<p>Notes: (1) Brings in either black or white pixels from the boundary. (2) Retains colormap, which you can do for a sampled transform.. (3) For 8 or 32 bpp, much better quality is obtained by the somewhat slower <a class="el" href="bilinear_8c.html#a3cd91f17e187a01167d6eb202327f5f9">pixBilinear()</a>. See that function for relative timings between sampled and interpolated. </p>
<p>Definition at line <a class="el" href="bilinear_8c_source.html#l00178">178</a> of file <a class="el" href="bilinear_8c_source.html">bilinear.c</a>.</p>
<p>References <a class="el" href="bilinear_8c_source.html#l00889">bilinearXformSampledPt()</a>, <a class="el" href="environ_8h_source.html#l00250">ERROR_PTR</a>, <a class="el" href="arrayaccess_8h_source.html#l00060">GET_DATA_BIT</a>, <a class="el" href="arrayaccess_8h_source.html#l00118">GET_DATA_BYTE</a>, <a class="el" href="arrayaccess_8h_source.html#l00080">GET_DATA_DIBIT</a>, <a class="el" href="arrayaccess_8h_source.html#l00097">GET_DATA_QBIT</a>, <a class="el" href="pix_8h_source.html#l00695">L_BRING_IN_BLACK</a>, <a class="el" href="pix_8h_source.html#l00694">L_BRING_IN_WHITE</a>, <a class="el" href="environ_8h_source.html#l00171">NULL</a>, <a class="el" href="pix2_8c_source.html#l00598">pixClearAll()</a>, <a class="el" href="colormap_8c_source.html#l00446">pixcmapAddBlackOrWhite()</a>, <a class="el" href="pix1_8c_source.html#l00328">pixCreateTemplate()</a>, <a class="el" href="pix1_8c_source.html#l01288">pixGetColormap()</a>, <a class="el" href="pix1_8c_source.html#l01358">pixGetData()</a>, <a class="el" href="pix1_8c_source.html#l00898">pixGetDimensions()</a>, <a class="el" href="pix1_8c_source.html#l00970">pixGetWpl()</a>, <a class="el" href="pix2_8c_source.html#l00625">pixSetAll()</a>, <a class="el" href="pix2_8c_source.html#l00661">pixSetAllArbitrary()</a>, <a class="el" href="environ_8h_source.html#l00249">PROCNAME</a>, <a class="el" href="arrayaccess_8h_source.html#l00069">SET_DATA_BIT_VAL</a>, <a class="el" href="arrayaccess_8h_source.html#l00126">SET_DATA_BYTE</a>, <a class="el" href="arrayaccess_8h_source.html#l00083">SET_DATA_DIBIT</a>, and <a class="el" href="arrayaccess_8h_source.html#l00100">SET_DATA_QBIT</a>.</p>
<p>Referenced by <a class="el" href="bilinear_8c_source.html#l00341">pixBilinear()</a>, and <a class="el" href="bilinear_8c_source.html#l00130">pixBilinearSampledPta()</a>.</p>
</div>
</div>
<a class="anchor" id="a866a16d9b1b7b1eeccee5a99db770f6c"></a><!-- doxytag: member="bilinear.c::pixBilinearPta" ref="a866a16d9b1b7b1eeccee5a99db770f6c" args="(PIX *pixs, PTA *ptad, PTA *ptas, l_int32 incolor)" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname"><a class="el" href="struct_pix.html">PIX</a>* pixBilinearPta </td>
<td>(</td>
<td class="paramtype"><a class="el" href="struct_pix.html">PIX</a> * </td>
<td class="paramname"><em>pixs</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype"><a class="el" href="struct_pta.html">PTA</a> * </td>
<td class="paramname"><em>ptad</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype"><a class="el" href="struct_pta.html">PTA</a> * </td>
<td class="paramname"><em>ptas</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype"><a class="el" href="environ_8h.html#a9085c7874153c280a4171244aa052e4e">l_int32</a> </td>
<td class="paramname"><em>incolor</em> </td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td>
</tr>
</table>
</div>
<div class="memdoc">
<p><a class="el" href="bilinear_8c.html#a866a16d9b1b7b1eeccee5a99db770f6c">pixBilinearPta()</a></p>
<p>Input: pixs (all depths; colormap ok) ptad (4 pts of final coordinate space) ptas (4 pts of initial coordinate space) incolor (L_BRING_IN_WHITE, L_BRING_IN_BLACK) Return: pixd, or null on error</p>
<p>Notes: (1) Brings in either black or white pixels from the boundary (2) Removes any existing colormap, if necessary, before transforming </p>
<p>Definition at line <a class="el" href="bilinear_8c_source.html#l00273">273</a> of file <a class="el" href="bilinear_8c_source.html">bilinear.c</a>.</p>
<p>References <a class="el" href="environ_8h_source.html#l00250">ERROR_PTR</a>, <a class="el" href="environ_8h_source.html#l00179">FALSE</a>, <a class="el" href="pix_8h_source.html#l00695">L_BRING_IN_BLACK</a>, <a class="el" href="pix_8h_source.html#l00694">L_BRING_IN_WHITE</a>, <a class="el" href="environ_8h_source.html#l00171">NULL</a>, <a class="el" href="bilinear_8c_source.html#l00397">pixBilinearPtaColor()</a>, <a class="el" href="bilinear_8c_source.html#l00491">pixBilinearPtaGray()</a>, <a class="el" href="bilinear_8c_source.html#l00130">pixBilinearSampledPta()</a>, <a class="el" href="pix1_8c_source.html#l00440">pixClone()</a>, <a class="el" href="pixconv_8c_source.html#l02297">pixConvertTo8()</a>, <a class="el" href="pix1_8c_source.html#l00466">pixDestroy()</a>, <a class="el" href="pix1_8c_source.html#l00863">pixGetDepth()</a>, <a class="el" href="pixconv_8c_source.html#l00223">pixRemoveColormap()</a>, <a class="el" href="environ_8h_source.html#l00249">PROCNAME</a>, <a class="el" href="ptabasic_8c_source.html#l00346">ptaGetCount()</a>, and <a class="el" href="pix_8h_source.html#l00181">REMOVE_CMAP_BASED_ON_SRC</a>.</p>
<p>Referenced by <a class="el" href="bilinear__reg_8c_source.html#l00052">main()</a>.</p>
</div>
</div>
<a class="anchor" id="a3cd91f17e187a01167d6eb202327f5f9"></a><!-- doxytag: member="bilinear.c::pixBilinear" ref="a3cd91f17e187a01167d6eb202327f5f9" args="(PIX *pixs, l_float32 *vc, l_int32 incolor)" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname"><a class="el" href="struct_pix.html">PIX</a>* pixBilinear </td>
<td>(</td>
<td class="paramtype"><a class="el" href="struct_pix.html">PIX</a> * </td>
<td class="paramname"><em>pixs</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype"><a class="el" href="environ_8h.html#af59419416d96ecf5fca70c8d05adb456">l_float32</a> * </td>
<td class="paramname"><em>vc</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype"><a class="el" href="environ_8h.html#a9085c7874153c280a4171244aa052e4e">l_int32</a> </td>
<td class="paramname"><em>incolor</em> </td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td>
</tr>
</table>
</div>
<div class="memdoc">
<p><a class="el" href="bilinear_8c.html#a3cd91f17e187a01167d6eb202327f5f9">pixBilinear()</a></p>
<p>Input: pixs (all depths; colormap ok) vc (vector of 8 coefficients for bilinear transformation) incolor (L_BRING_IN_WHITE, L_BRING_IN_BLACK) Return: pixd, or null on error</p>
<p>Notes: (1) Brings in either black or white pixels from the boundary (2) Removes any existing colormap, if necessary, before transforming </p>
<p>Definition at line <a class="el" href="bilinear_8c_source.html#l00341">341</a> of file <a class="el" href="bilinear_8c_source.html">bilinear.c</a>.</p>
<p>References <a class="el" href="environ_8h_source.html#l00250">ERROR_PTR</a>, <a class="el" href="environ_8h_source.html#l00179">FALSE</a>, <a class="el" href="pix_8h_source.html#l00694">L_BRING_IN_WHITE</a>, <a class="el" href="environ_8h_source.html#l00171">NULL</a>, <a class="el" href="bilinear_8c_source.html#l00438">pixBilinearColor()</a>, <a class="el" href="bilinear_8c_source.html#l00532">pixBilinearGray()</a>, <a class="el" href="bilinear_8c_source.html#l00178">pixBilinearSampled()</a>, <a class="el" href="pix1_8c_source.html#l00440">pixClone()</a>, <a class="el" href="pixconv_8c_source.html#l02297">pixConvertTo8()</a>, <a class="el" href="pix1_8c_source.html#l00466">pixDestroy()</a>, <a class="el" href="pix1_8c_source.html#l00863">pixGetDepth()</a>, <a class="el" href="pixconv_8c_source.html#l00223">pixRemoveColormap()</a>, <a class="el" href="environ_8h_source.html#l00249">PROCNAME</a>, and <a class="el" href="pix_8h_source.html#l00181">REMOVE_CMAP_BASED_ON_SRC</a>.</p>
</div>
</div>
<a class="anchor" id="aa967eb84f3a887aa448d6b9ac706f31e"></a><!-- doxytag: member="bilinear.c::pixBilinearPtaColor" ref="aa967eb84f3a887aa448d6b9ac706f31e" args="(PIX *pixs, PTA *ptad, PTA *ptas, l_uint32 colorval)" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname"><a class="el" href="struct_pix.html">PIX</a>* pixBilinearPtaColor </td>
<td>(</td>
<td class="paramtype"><a class="el" href="struct_pix.html">PIX</a> * </td>
<td class="paramname"><em>pixs</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype"><a class="el" href="struct_pta.html">PTA</a> * </td>
<td class="paramname"><em>ptad</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype"><a class="el" href="struct_pta.html">PTA</a> * </td>
<td class="paramname"><em>ptas</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype"><a class="el" href="environ_8h.html#a4d4d7254020fc95aef5dde8884405358">l_uint32</a> </td>
<td class="paramname"><em>colorval</em> </td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td>
</tr>
</table>
</div>
<div class="memdoc">
<p><a class="el" href="bilinear_8c.html#aa967eb84f3a887aa448d6b9ac706f31e">pixBilinearPtaColor()</a></p>
<p>Input: pixs (32 bpp) ptad (4 pts of final coordinate space) ptas (4 pts of initial coordinate space) colorval (e.g., 0 to bring in BLACK, 0xffffff00 for WHITE) Return: pixd, or null on error </p>
<p>Definition at line <a class="el" href="bilinear_8c_source.html#l00397">397</a> of file <a class="el" href="bilinear_8c_source.html">bilinear.c</a>.</p>
<p>References <a class="el" href="environ_8h_source.html#l00250">ERROR_PTR</a>, <a class="el" href="environ_8h_source.html#l00216">FREE</a>, <a class="el" href="bilinear_8c_source.html#l00798">getBilinearXformCoeffs()</a>, <a class="el" href="environ_8h_source.html#l00171">NULL</a>, <a class="el" href="bilinear_8c_source.html#l00438">pixBilinearColor()</a>, <a class="el" href="pix1_8c_source.html#l00863">pixGetDepth()</a>, <a class="el" href="environ_8h_source.html#l00249">PROCNAME</a>, and <a class="el" href="ptabasic_8c_source.html#l00346">ptaGetCount()</a>.</p>
<p>Referenced by <a class="el" href="bilinear_8c_source.html#l00273">pixBilinearPta()</a>, and <a class="el" href="bilinear_8c_source.html#l00618">pixBilinearPtaWithAlpha()</a>.</p>
</div>
</div>
<a class="anchor" id="aa67483a6e7485e402548fcaf5bdcb30b"></a><!-- doxytag: member="bilinear.c::pixBilinearColor" ref="aa67483a6e7485e402548fcaf5bdcb30b" args="(PIX *pixs, l_float32 *vc, l_uint32 colorval)" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname"><a class="el" href="struct_pix.html">PIX</a>* pixBilinearColor </td>
<td>(</td>
<td class="paramtype"><a class="el" href="struct_pix.html">PIX</a> * </td>
<td class="paramname"><em>pixs</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype"><a class="el" href="environ_8h.html#af59419416d96ecf5fca70c8d05adb456">l_float32</a> * </td>
<td class="paramname"><em>vc</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype"><a class="el" href="environ_8h.html#a4d4d7254020fc95aef5dde8884405358">l_uint32</a> </td>
<td class="paramname"><em>colorval</em> </td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td>
</tr>
</table>
</div>
<div class="memdoc">
<p><a class="el" href="bilinear_8c.html#aa67483a6e7485e402548fcaf5bdcb30b">pixBilinearColor()</a></p>
<p>Input: pixs (32 bpp) vc (vector of 8 coefficients for bilinear transformation) colorval (e.g., 0 to bring in BLACK, 0xffffff00 for WHITE) Return: pixd, or null on error </p>
<p>Definition at line <a class="el" href="bilinear_8c_source.html#l00438">438</a> of file <a class="el" href="bilinear_8c_source.html">bilinear.c</a>.</p>
<p>References <a class="el" href="bilinear_8c_source.html#l00920">bilinearXformPt()</a>, <a class="el" href="environ_8h_source.html#l00250">ERROR_PTR</a>, <a class="el" href="affine_8c_source.html#l01187">linearInterpolatePixelColor()</a>, <a class="el" href="environ_8h_source.html#l00171">NULL</a>, <a class="el" href="pix1_8c_source.html#l00328">pixCreateTemplate()</a>, <a class="el" href="pix1_8c_source.html#l01358">pixGetData()</a>, <a class="el" href="pix1_8c_source.html#l00898">pixGetDimensions()</a>, <a class="el" href="pix1_8c_source.html#l00970">pixGetWpl()</a>, <a class="el" href="pix2_8c_source.html#l00661">pixSetAllArbitrary()</a>, and <a class="el" href="environ_8h_source.html#l00249">PROCNAME</a>.</p>
<p>Referenced by <a class="el" href="bilinear_8c_source.html#l00341">pixBilinear()</a>, and <a class="el" href="bilinear_8c_source.html#l00397">pixBilinearPtaColor()</a>.</p>
</div>
</div>
<a class="anchor" id="a788c2c4ea2a64a9f0274898477dbd113"></a><!-- doxytag: member="bilinear.c::pixBilinearPtaGray" ref="a788c2c4ea2a64a9f0274898477dbd113" args="(PIX *pixs, PTA *ptad, PTA *ptas, l_uint8 grayval)" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname"><a class="el" href="struct_pix.html">PIX</a>* pixBilinearPtaGray </td>
<td>(</td>
<td class="paramtype"><a class="el" href="struct_pix.html">PIX</a> * </td>
<td class="paramname"><em>pixs</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype"><a class="el" href="struct_pta.html">PTA</a> * </td>
<td class="paramname"><em>ptad</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype"><a class="el" href="struct_pta.html">PTA</a> * </td>
<td class="paramname"><em>ptas</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype"><a class="el" href="environ_8h.html#a7ed60554e7d6dd89aca643189b1e70ad">l_uint8</a> </td>
<td class="paramname"><em>grayval</em> </td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td>
</tr>
</table>
</div>
<div class="memdoc">
<p><a class="el" href="bilinear_8c.html#a788c2c4ea2a64a9f0274898477dbd113">pixBilinearPtaGray()</a></p>
<p>Input: pixs (8 bpp) ptad (4 pts of final coordinate space) ptas (4 pts of initial coordinate space) grayval (0 to bring in BLACK, 255 for WHITE) Return: pixd, or null on error </p>
<p>Definition at line <a class="el" href="bilinear_8c_source.html#l00491">491</a> of file <a class="el" href="bilinear_8c_source.html">bilinear.c</a>.</p>
<p>References <a class="el" href="environ_8h_source.html#l00250">ERROR_PTR</a>, <a class="el" href="environ_8h_source.html#l00216">FREE</a>, <a class="el" href="bilinear_8c_source.html#l00798">getBilinearXformCoeffs()</a>, <a class="el" href="environ_8h_source.html#l00171">NULL</a>, <a class="el" href="bilinear_8c_source.html#l00532">pixBilinearGray()</a>, <a class="el" href="pix1_8c_source.html#l00863">pixGetDepth()</a>, <a class="el" href="environ_8h_source.html#l00249">PROCNAME</a>, and <a class="el" href="ptabasic_8c_source.html#l00346">ptaGetCount()</a>.</p>
<p>Referenced by <a class="el" href="bilinear_8c_source.html#l00273">pixBilinearPta()</a>, and <a class="el" href="bilinear_8c_source.html#l00618">pixBilinearPtaWithAlpha()</a>.</p>
</div>
</div>
<a class="anchor" id="a7f5121c569440ea4ee49100e2bc5b631"></a><!-- doxytag: member="bilinear.c::pixBilinearGray" ref="a7f5121c569440ea4ee49100e2bc5b631" args="(PIX *pixs, l_float32 *vc, l_uint8 grayval)" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname"><a class="el" href="struct_pix.html">PIX</a>* pixBilinearGray </td>
<td>(</td>
<td class="paramtype"><a class="el" href="struct_pix.html">PIX</a> * </td>
<td class="paramname"><em>pixs</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype"><a class="el" href="environ_8h.html#af59419416d96ecf5fca70c8d05adb456">l_float32</a> * </td>
<td class="paramname"><em>vc</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype"><a class="el" href="environ_8h.html#a7ed60554e7d6dd89aca643189b1e70ad">l_uint8</a> </td>
<td class="paramname"><em>grayval</em> </td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td>
</tr>
</table>
</div>
<div class="memdoc">
<p><a class="el" href="bilinear_8c.html#a7f5121c569440ea4ee49100e2bc5b631">pixBilinearGray()</a></p>
<p>Input: pixs (8 bpp) vc (vector of 8 coefficients for bilinear transformation) grayval (0 to bring in BLACK, 255 for WHITE) Return: pixd, or null on error </p>
<p>Definition at line <a class="el" href="bilinear_8c_source.html#l00532">532</a> of file <a class="el" href="bilinear_8c_source.html">bilinear.c</a>.</p>
<p>References <a class="el" href="bilinear_8c_source.html#l00920">bilinearXformPt()</a>, <a class="el" href="environ_8h_source.html#l00250">ERROR_PTR</a>, <a class="el" href="affine_8c_source.html#l01267">linearInterpolatePixelGray()</a>, <a class="el" href="environ_8h_source.html#l00171">NULL</a>, <a class="el" href="pix1_8c_source.html#l00328">pixCreateTemplate()</a>, <a class="el" href="pix1_8c_source.html#l01358">pixGetData()</a>, <a class="el" href="pix1_8c_source.html#l00863">pixGetDepth()</a>, <a class="el" href="pix1_8c_source.html#l00898">pixGetDimensions()</a>, <a class="el" href="pix1_8c_source.html#l00970">pixGetWpl()</a>, <a class="el" href="pix2_8c_source.html#l00661">pixSetAllArbitrary()</a>, <a class="el" href="environ_8h_source.html#l00249">PROCNAME</a>, and <a class="el" href="arrayaccess_8h_source.html#l00126">SET_DATA_BYTE</a>.</p>
<p>Referenced by <a class="el" href="bilinear_8c_source.html#l00341">pixBilinear()</a>, and <a class="el" href="bilinear_8c_source.html#l00491">pixBilinearPtaGray()</a>.</p>
</div>
</div>
<a class="anchor" id="a739ebd4cf6b26d52b186236430fd64fb"></a><!-- doxytag: member="bilinear.c::pixBilinearPtaWithAlpha" ref="a739ebd4cf6b26d52b186236430fd64fb" args="(PIX *pixs, PTA *ptad, PTA *ptas, PIX *pixg, l_float32 fract, l_int32 border)" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname"><a class="el" href="struct_pix.html">PIX</a>* pixBilinearPtaWithAlpha </td>
<td>(</td>
<td class="paramtype"><a class="el" href="struct_pix.html">PIX</a> * </td>
<td class="paramname"><em>pixs</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype"><a class="el" href="struct_pta.html">PTA</a> * </td>
<td class="paramname"><em>ptad</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype"><a class="el" href="struct_pta.html">PTA</a> * </td>
<td class="paramname"><em>ptas</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype"><a class="el" href="struct_pix.html">PIX</a> * </td>
<td class="paramname"><em>pixg</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype"><a class="el" href="environ_8h.html#af59419416d96ecf5fca70c8d05adb456">l_float32</a> </td>
<td class="paramname"><em>fract</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype"><a class="el" href="environ_8h.html#a9085c7874153c280a4171244aa052e4e">l_int32</a> </td>
<td class="paramname"><em>border</em> </td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td>
</tr>
</table>
</div>
<div class="memdoc">
<p><a class="el" href="bilinear_8c.html#a739ebd4cf6b26d52b186236430fd64fb">pixBilinearPtaWithAlpha()</a></p>
<p>Input: pixs (32 bpp rgb) ptad (4 pts of final coordinate space) ptas (4 pts of initial coordinate space) pixg (<optional> 8 bpp, can be null) fract (between 0.0 and 1.0, with 0.0 fully transparent and 1.0 fully opaque) border (of pixels added to capture transformed source pixels) Return: pixd, or null on error</p>
<p>Notes: (1) The alpha channel is transformed separately from pixs, and aligns with it, being fully transparent outside the boundary of the transformed pixs. For pixels that are fully transparent, a blending function like <a class="el" href="blend_8c.html#a51d08d3ae19c515a5fabf42db1daf85b">pixBlendWithGrayMask()</a> will give zero weight to corresponding pixels in pixs. (2) If pixg is NULL, it is generated as an alpha layer that is partially opaque, using . Otherwise, it is cropped to pixs if required and is ignored. The alpha channel in pixs is never used. (3) Colormaps are removed. (4) When pixs is transformed, it doesn't matter what color is brought in because the alpha channel will be transparent (0) there. (5) To avoid losing source pixels in the destination, it may be necessary to add a border to the source pix before doing the bilinear transformation. This can be any non-negative number. (6) The input and are in a coordinate space before the border is added. Internally, we compensate for this before doing the bilinear transform on the image after the border is added. (7) The default setting for the border values in the alpha channel is 0 (transparent) for the outermost ring of pixels and (0.5 * fract * 255) for the second ring. When blended over a second image, this (a) shrinks the visible image to make a clean overlap edge with an image below, and (b) softens the edges by weakening the aliasing there. Use <a class="el" href="leptprotos_8h.html#ab264c4aa44066ad46ebe2294b8bb523b">l_setAlphaMaskBorder()</a> to change these values. </p>
<p>Definition at line <a class="el" href="bilinear_8c_source.html#l00618">618</a> of file <a class="el" href="bilinear_8c_source.html">bilinear.c</a>.</p>
<p>References <a class="el" href="pix2_8c_source.html#l00117">AlphaMaskBorderVals</a>, <a class="el" href="environ_8h_source.html#l00250">ERROR_PTR</a>, <a class="el" href="pix_8h_source.html#l00146">L_ALPHA_CHANNEL</a>, <a class="el" href="environ_8h_source.html#l00257">L_WARNING</a>, <a class="el" href="environ_8h_source.html#l00171">NULL</a>, <a class="el" href="pix2_8c_source.html#l01463">pixAddBorder()</a>, <a class="el" href="bilinear_8c_source.html#l00397">pixBilinearPtaColor()</a>, <a class="el" href="bilinear_8c_source.html#l00491">pixBilinearPtaGray()</a>, <a class="el" href="pix1_8c_source.html#l00269">pixCreate()</a>, <a class="el" href="pix1_8c_source.html#l00466">pixDestroy()</a>, <a class="el" href="pix1_8c_source.html#l01288">pixGetColormap()</a>, <a class="el" href="pix1_8c_source.html#l00863">pixGetDepth()</a>, <a class="el" href="pix1_8c_source.html#l00898">pixGetDimensions()</a>, <a class="el" href="pix5_8c_source.html#l00835">pixResizeToMatch()</a>, <a class="el" href="pix2_8c_source.html#l00625">pixSetAll()</a>, <a class="el" href="pix2_8c_source.html#l00661">pixSetAllArbitrary()</a>, <a class="el" href="pix2_8c_source.html#l01313">pixSetBorderRingVal()</a>, <a class="el" href="pix2_8c_source.html#l01940">pixSetRGBComponent()</a>, <a class="el" href="environ_8h_source.html#l00249">PROCNAME</a>, <a class="el" href="ptabasic_8c_source.html#l00156">ptaDestroy()</a>, and <a class="el" href="ptafunc1_8c_source.html#l00735">ptaTransform()</a>.</p>
<p>Referenced by <a class="el" href="alphaxform__reg_8c_source.html#l00054">main()</a>, and <a class="el" href="bilinear_8c_source.html#l00714">pixBilinearPtaGammaXform()</a>.</p>
</div>
</div>
<a class="anchor" id="a8c6a4b1ffc5d17ab5ca7496813da1c85"></a><!-- doxytag: member="bilinear.c::pixBilinearPtaGammaXform" ref="a8c6a4b1ffc5d17ab5ca7496813da1c85" args="(PIX *pixs, l_float32 gamma, PTA *ptad, PTA *ptas, l_float32 fract, l_int32 border)" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname"><a class="el" href="struct_pix.html">PIX</a>* pixBilinearPtaGammaXform </td>
<td>(</td>
<td class="paramtype"><a class="el" href="struct_pix.html">PIX</a> * </td>
<td class="paramname"><em>pixs</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype"><a class="el" href="environ_8h.html#af59419416d96ecf5fca70c8d05adb456">l_float32</a> </td>
<td class="paramname"><em>gamma</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype"><a class="el" href="struct_pta.html">PTA</a> * </td>
<td class="paramname"><em>ptad</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype"><a class="el" href="struct_pta.html">PTA</a> * </td>
<td class="paramname"><em>ptas</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype"><a class="el" href="environ_8h.html#af59419416d96ecf5fca70c8d05adb456">l_float32</a> </td>
<td class="paramname"><em>fract</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype"><a class="el" href="environ_8h.html#a9085c7874153c280a4171244aa052e4e">l_int32</a> </td>
<td class="paramname"><em>border</em> </td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td>
</tr>
</table>
</div>
<div class="memdoc">
<p><a class="el" href="bilinear_8c.html#a8c6a4b1ffc5d17ab5ca7496813da1c85">pixBilinearPtaGammaXform()</a></p>
<p>Input: pixs (32 bpp rgb) gamma (gamma correction; must be > 0.0) ptad (3 pts of final coordinate space) ptas (3 pts of initial coordinate space) fract (between 0.0 and 1.0, with 1.0 fully transparent) border (of pixels to capture transformed source pixels) Return: pixd, or null on error</p>
<p>Notes: (1) This wraps a gamma/inverse-gamma photometric transform around <a class="el" href="bilinear_8c.html#a739ebd4cf6b26d52b186236430fd64fb">pixBilinearPtaWithAlpha()</a>. (2) For usage, see notes in <a class="el" href="bilinear_8c.html#a739ebd4cf6b26d52b186236430fd64fb">pixBilinearPtaWithAlpha()</a> and <a class="el" href="enhance_8c.html#ade289b100cd6316d6ef34d40beb375c2">pixGammaTRCWithAlpha()</a>. (3) The basic idea of a gamma/inverse-gamma transform is to remove any gamma correction before the bilinear transform, and restore it afterward. The effects can be subtle, but important for some applications. For example, using gamma > 1.0 will cause the dark areas to become somewhat lighter and slightly reduce aliasing effects when blending using the alpha channel. </p>
<p>Definition at line <a class="el" href="bilinear_8c_source.html#l00714">714</a> of file <a class="el" href="bilinear_8c_source.html">bilinear.c</a>.</p>
<p>References <a class="el" href="environ_8h_source.html#l00250">ERROR_PTR</a>, <a class="el" href="environ_8h_source.html#l00257">L_WARNING</a>, <a class="el" href="environ_8h_source.html#l00171">NULL</a>, <a class="el" href="bilinear_8c_source.html#l00618">pixBilinearPtaWithAlpha()</a>, <a class="el" href="pix1_8c_source.html#l00466">pixDestroy()</a>, <a class="el" href="enhance_8c_source.html#l00281">pixGammaTRCWithAlpha()</a>, <a class="el" href="pix1_8c_source.html#l00863">pixGetDepth()</a>, and <a class="el" href="environ_8h_source.html#l00249">PROCNAME</a>.</p>
<p>Referenced by <a class="el" href="alphaxform__reg_8c_source.html#l00054">main()</a>.</p>
</div>
</div>
<a class="anchor" id="aa3a0074fac267cd853f517dad1f928fb"></a><!-- doxytag: member="bilinear.c::getBilinearXformCoeffs" ref="aa3a0074fac267cd853f517dad1f928fb" args="(PTA *ptas, PTA *ptad, l_float32 **pvc)" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname"><a class="el" href="environ_8h.html#a9085c7874153c280a4171244aa052e4e">l_int32</a> getBilinearXformCoeffs </td>
<td>(</td>
<td class="paramtype"><a class="el" href="struct_pta.html">PTA</a> * </td>
<td class="paramname"><em>ptas</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype"><a class="el" href="struct_pta.html">PTA</a> * </td>
<td class="paramname"><em>ptad</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype"><a class="el" href="environ_8h.html#af59419416d96ecf5fca70c8d05adb456">l_float32</a> ** </td>
<td class="paramname"><em>pvc</em> </td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td>
</tr>
</table>
</div>
<div class="memdoc">
<p><a class="el" href="bilinear_8c.html#aa3a0074fac267cd853f517dad1f928fb">getBilinearXformCoeffs()</a></p>
<p>Input: ptas (source 4 points; unprimed) ptad (transformed 4 points; primed) &vc (<return> vector of coefficients of transform) Return: 0 if OK; 1 on error</p>
<p>We have a set of 8 equations, describing the bilinear transformation that takes 4 points (ptas) into 4 other points (ptad). These equations are:</p>
<p>x1' = c[0]*x1 + c[1]*y1 + c[2]*x1*y1 + c[3] y1' = c[4]*x1 + c[5]*y1 + c[6]*x1*y1 + c[7] x2' = c[0]*x2 + c[1]*y2 + c[2]*x2*y2 + c[3] y2' = c[4]*x2 + c[5]*y2 + c[6]*x2*y2 + c[7] x3' = c[0]*x3 + c[1]*y3 + c[2]*x3*y3 + c[3] y3' = c[4]*x3 + c[5]*y3 + c[6]*x3*y3 + c[7] x4' = c[0]*x4 + c[1]*y4 + c[2]*x4*y4 + c[3] y4' = c[4]*x4 + c[5]*y4 + c[6]*x4*y4 + c[7]</p>
<p>This can be represented as</p>
<p>AC = B</p>
<p>where B and C are column vectors</p>
<p>B = [ x1' y1' x2' y2' x3' y3' x4' y4' ] C = [ c[0] c[1] c[2] c[3] c[4] c[5] c[6] c[7] ]</p>
<p>and A is the 8x8 matrix</p>
<p>x1 y1 x1*y1 1 0 0 0 0 0 0 0 0 x1 y1 x1*y1 1 x2 y2 x2*y2 1 0 0 0 0 0 0 0 0 x2 y2 x2*y2 1 x3 y3 x3*y3 1 0 0 0 0 0 0 0 0 x3 y3 x3*y3 1 x4 y4 x4*y4 1 0 0 0 0 0 0 0 0 x4 y4 x4*y4 1</p>
<p>These eight equations are solved here for the coefficients C.</p>
<p>These eight coefficients can then be used to find the mapping (x,y) --> (x',y'):</p>
<p>x' = c[0]x + c[1]y + c[2]xy + c[3] y' = c[4]x + c[5]y + c[6]xy + c[7]</p>
<p>that are implemented in <a class="el" href="bilinear_8c.html#a49a64f65c6156091745cb4336d273279">bilinearXformSampledPt()</a> and bilinearXFormPt(). </p>
<p>Definition at line <a class="el" href="bilinear_8c_source.html#l00798">798</a> of file <a class="el" href="bilinear_8c_source.html">bilinear.c</a>.</p>
<p>References <a class="el" href="environ_8h_source.html#l00214">CALLOC</a>, <a class="el" href="environ_8h_source.html#l00251">ERROR_INT</a>, <a class="el" href="environ_8h_source.html#l00216">FREE</a>, <a class="el" href="affine_8c_source.html#l01337">gaussjordan()</a>, <a class="el" href="environ_8h_source.html#l00171">NULL</a>, <a class="el" href="environ_8h_source.html#l00249">PROCNAME</a>, <a class="el" href="ptabasic_8c_source.html#l00367">ptaGetPt()</a>, <a class="el" href="affine__reg_8c_source.html#l00032">x1</a>, <a class="el" href="affine__reg_8c_source.html#l00034">x2</a>, <a class="el" href="affine__reg_8c_source.html#l00036">x3</a>, <a class="el" href="alphaxform__reg_8c_source.html#l00039">x4</a>, <a class="el" href="affine__reg_8c_source.html#l00033">y1</a>, <a class="el" href="affine__reg_8c_source.html#l00035">y2</a>, <a class="el" href="affine__reg_8c_source.html#l00037">y3</a>, and <a class="el" href="alphaxform__reg_8c_source.html#l00040">y4</a>.</p>
<p>Referenced by <a class="el" href="bilinear_8c_source.html#l00397">pixBilinearPtaColor()</a>, <a class="el" href="bilinear_8c_source.html#l00491">pixBilinearPtaGray()</a>, and <a class="el" href="bilinear_8c_source.html#l00130">pixBilinearSampledPta()</a>.</p>
</div>
</div>
<a class="anchor" id="a49a64f65c6156091745cb4336d273279"></a><!-- doxytag: member="bilinear.c::bilinearXformSampledPt" ref="a49a64f65c6156091745cb4336d273279" args="(l_float32 *vc, l_int32 x, l_int32 y, l_int32 *pxp, l_int32 *pyp)" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname"><a class="el" href="environ_8h.html#a9085c7874153c280a4171244aa052e4e">l_int32</a> bilinearXformSampledPt </td>
<td>(</td>
<td class="paramtype"><a class="el" href="environ_8h.html#af59419416d96ecf5fca70c8d05adb456">l_float32</a> * </td>
<td class="paramname"><em>vc</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype"><a class="el" href="environ_8h.html#a9085c7874153c280a4171244aa052e4e">l_int32</a> </td>
<td class="paramname"><em>x</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype"><a class="el" href="environ_8h.html#a9085c7874153c280a4171244aa052e4e">l_int32</a> </td>
<td class="paramname"><em>y</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype"><a class="el" href="environ_8h.html#a9085c7874153c280a4171244aa052e4e">l_int32</a> * </td>
<td class="paramname"><em>pxp</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype"><a class="el" href="environ_8h.html#a9085c7874153c280a4171244aa052e4e">l_int32</a> * </td>
<td class="paramname"><em>pyp</em> </td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td>
</tr>
</table>
</div>
<div class="memdoc">
<p><a class="el" href="bilinear_8c.html#a49a64f65c6156091745cb4336d273279">bilinearXformSampledPt()</a></p>
<p>Input: vc (vector of 8 coefficients) (x, y) (initial point) (&xp, &yp) (<return> transformed point) Return: 0 if OK; 1 on error</p>
<p>Notes: (1) This finds the nearest pixel coordinates of the transformed point. (2) It does not check ptrs for returned data! </p>
<p>Definition at line <a class="el" href="bilinear_8c_source.html#l00889">889</a> of file <a class="el" href="bilinear_8c_source.html">bilinear.c</a>.</p>
<p>References <a class="el" href="environ_8h_source.html#l00251">ERROR_INT</a>, and <a class="el" href="environ_8h_source.html#l00249">PROCNAME</a>.</p>
<p>Referenced by <a class="el" href="bilinear_8c_source.html#l00178">pixBilinearSampled()</a>.</p>
</div>
</div>
<a class="anchor" id="a8ac1cde6ef928602fd8106cc66031e06"></a><!-- doxytag: member="bilinear.c::bilinearXformPt" ref="a8ac1cde6ef928602fd8106cc66031e06" args="(l_float32 *vc, l_int32 x, l_int32 y, l_float32 *pxp, l_float32 *pyp)" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname"><a class="el" href="environ_8h.html#a9085c7874153c280a4171244aa052e4e">l_int32</a> bilinearXformPt </td>
<td>(</td>
<td class="paramtype"><a class="el" href="environ_8h.html#af59419416d96ecf5fca70c8d05adb456">l_float32</a> * </td>
<td class="paramname"><em>vc</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype"><a class="el" href="environ_8h.html#a9085c7874153c280a4171244aa052e4e">l_int32</a> </td>
<td class="paramname"><em>x</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype"><a class="el" href="environ_8h.html#a9085c7874153c280a4171244aa052e4e">l_int32</a> </td>
<td class="paramname"><em>y</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype"><a class="el" href="environ_8h.html#af59419416d96ecf5fca70c8d05adb456">l_float32</a> * </td>
<td class="paramname"><em>pxp</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype"><a class="el" href="environ_8h.html#af59419416d96ecf5fca70c8d05adb456">l_float32</a> * </td>
<td class="paramname"><em>pyp</em> </td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td>
</tr>
</table>
</div>
<div class="memdoc">
<p><a class="el" href="bilinear_8c.html#a8ac1cde6ef928602fd8106cc66031e06">bilinearXformPt()</a></p>
<p>Input: vc (vector of 8 coefficients) (x, y) (initial point) (&xp, &yp) (<return> transformed point) Return: 0 if OK; 1 on error</p>
<p>Notes: (1) This computes the floating point location of the transformed point. (2) It does not check ptrs for returned data! </p>
<p>Definition at line <a class="el" href="bilinear_8c_source.html#l00920">920</a> of file <a class="el" href="bilinear_8c_source.html">bilinear.c</a>.</p>
<p>References <a class="el" href="environ_8h_source.html#l00251">ERROR_INT</a>, and <a class="el" href="environ_8h_source.html#l00249">PROCNAME</a>.</p>
<p>Referenced by <a class="el" href="bilinear_8c_source.html#l00438">pixBilinearColor()</a>, and <a class="el" href="bilinear_8c_source.html#l00532">pixBilinearGray()</a>.</p>
</div>
</div>
<hr/><h2>Variable Documentation</h2>
<a class="anchor" id="a073f1588e24855b59dcdd87afe3b6e6f"></a><!-- doxytag: member="bilinear.c::AlphaMaskBorderVals" ref="a073f1588e24855b59dcdd87afe3b6e6f" args="[2]" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname"><a class="el" href="environ_8h.html#af59419416d96ecf5fca70c8d05adb456">l_float32</a> <a class="el" href="scale_8c.html#a073f1588e24855b59dcdd87afe3b6e6f">AlphaMaskBorderVals</a>[2]</td>
</tr>
</table>
</div>
<div class="memdoc">
<p>Definition at line <a class="el" href="pix2_8c_source.html#l00117">117</a> of file <a class="el" href="pix2_8c_source.html">pix2.c</a>.</p>
</div>
</div>
</div>
</div>
<div id="nav-path" class="navpath">
<ul>
<li class="navelem"><a class="el" href="bilinear_8c.html">bilinear.c</a> </li>
<li class="footer">Generated by 
<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.7.3 </li>
</ul>
</div>
<!--- window showing the filter options -->
<div id="MSearchSelectWindow"
onmouseover="return searchBox.OnSearchSelectShow()"
onmouseout="return searchBox.OnSearchSelectHide()"
onkeydown="return searchBox.OnSearchSelectKey(event)">
<a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(0)"><span class="SelectionMark"> </span>All</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(1)"><span class="SelectionMark"> </span>Data Structures</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(2)"><span class="SelectionMark"> </span>Files</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(3)"><span class="SelectionMark"> </span>Functions</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(4)"><span class="SelectionMark"> </span>Variables</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(5)"><span class="SelectionMark"> </span>Typedefs</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(6)"><span class="SelectionMark"> </span>Enumerations</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(7)"><span class="SelectionMark"> </span>Enumerator</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(8)"><span class="SelectionMark"> </span>Defines</a></div>
<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="" frameborder="0"
name="MSearchResults" id="MSearchResults">
</iframe>
</div>
</body>
</html>