This file is indexed.

/usr/share/gtk-doc/html/libvips/libvips-mosaicing.html is in libvips-doc 7.40.6-2.

This file is owned by root:root, with mode 0o644.

The actual contents of the file can be viewed below.

  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
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>VIPS Reference Manual: mosaicing</title>
<meta name="generator" content="DocBook XSL Stylesheets V1.78.1">
<link rel="home" href="index.html" title="VIPS Reference Manual">
<link rel="up" href="ch03.html" title="VIPS operation API by section">
<link rel="prev" href="libvips-morphology.html" title="morphology">
<link rel="next" href="libvips-create.html" title="create">
<meta name="generator" content="GTK-Doc V1.20 (XML mode)">
<link rel="stylesheet" href="style.css" type="text/css">
</head>
<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
<table class="navigation" id="top" width="100%" summary="Navigation header" cellpadding="2" cellspacing="10"><tr valign="middle">
<td width="100%" align="left" class="shortcuts">
<a href="#" class="shortcut">Top</a><span id="nav_description"> <span class="dim">|</span> 
                  <a href="#libvips-mosaicing.description" class="shortcut">Description</a></span><span id="nav_hierarchy"> <span class="dim">|</span> 
                  <a href="#libvips-mosaicing.object-hierarchy" class="shortcut">Object Hierarchy</a></span>
</td>
<td><a accesskey="h" href="index.html"><img src="home.png" width="16" height="16" border="0" alt="Home"></a></td>
<td><a accesskey="u" href="ch03.html"><img src="up.png" width="16" height="16" border="0" alt="Up"></a></td>
<td><a accesskey="p" href="libvips-morphology.html"><img src="left.png" width="16" height="16" border="0" alt="Prev"></a></td>
<td><a accesskey="n" href="libvips-create.html"><img src="right.png" width="16" height="16" border="0" alt="Next"></a></td>
</tr></table>
<div class="refentry">
<a name="libvips-mosaicing"></a><div class="titlepage"></div>
<div class="refnamediv"><table width="100%"><tr>
<td valign="top">
<h2><span class="refentrytitle"><a name="libvips-mosaicing.top_of_page"></a>mosaicing</span></h2>
<p>mosaicing — build image mosaics</p>
</td>
<td class="gallery_image" valign="top" align="right"></td>
</tr></table></div>
<div class="refsect1">
<a name="libvips-mosaicing.stability-level"></a><h2>Stability Level</h2>
Stable, unless otherwise indicated
</div>
<div class="refsect1">
<a name="libvips-mosaicing.functions"></a><h2>Functions</h2>
<div class="informaltable"><table width="100%" border="0">
<colgroup>
<col width="150px" class="functions_return">
<col class="functions_name">
</colgroup>
<tbody>
<tr>
<td class="function_type">
<span class="returnvalue">int</span>
</td>
<td class="function_name">
<a class="link" href="libvips-mosaicing.html#vips-merge" title="vips_merge ()">vips_merge</a> <span class="c_punctuation">()</span>
</td>
</tr>
<tr>
<td class="function_type">
<span class="returnvalue">int</span>
</td>
<td class="function_name">
<a class="link" href="libvips-mosaicing.html#vips-mosaic" title="vips_mosaic ()">vips_mosaic</a> <span class="c_punctuation">()</span>
</td>
</tr>
<tr>
<td class="function_type">
<span class="returnvalue">int</span>
</td>
<td class="function_name">
<a class="link" href="libvips-mosaicing.html#vips-mosaic1" title="vips_mosaic1 ()">vips_mosaic1</a> <span class="c_punctuation">()</span>
</td>
</tr>
<tr>
<td class="function_type">
<span class="returnvalue">int</span>
</td>
<td class="function_name">
<a class="link" href="libvips-mosaicing.html#vips-match" title="vips_match ()">vips_match</a> <span class="c_punctuation">()</span>
</td>
</tr>
<tr>
<td class="function_type">
<span class="returnvalue">int</span>
</td>
<td class="function_name">
<a class="link" href="libvips-mosaicing.html#vips-globalbalance" title="vips_globalbalance ()">vips_globalbalance</a> <span class="c_punctuation">()</span>
</td>
</tr>
<tr>
<td class="function_type">
<span class="returnvalue">int</span>
</td>
<td class="function_name">
<a class="link" href="libvips-mosaicing.html#vips-remosaic" title="vips_remosaic ()">vips_remosaic</a> <span class="c_punctuation">()</span>
</td>
</tr>
<tr>
<td class="function_type">
<span class="returnvalue">int</span>
</td>
<td class="function_name">
<a class="link" href="libvips-mosaicing.html#im-correl" title="im_correl ()">im_correl</a> <span class="c_punctuation">()</span>
</td>
</tr>
<tr>
<td class="function_type">
<span class="returnvalue">int</span>
</td>
<td class="function_name">
<a class="link" href="libvips-mosaicing.html#im-align-bands" title="im_align_bands ()">im_align_bands</a> <span class="c_punctuation">()</span>
</td>
</tr>
<tr>
<td class="function_type">
<span class="returnvalue">int</span>
</td>
<td class="function_name">
<a class="link" href="libvips-mosaicing.html#im-maxpos-subpel" title="im_maxpos_subpel ()">im_maxpos_subpel</a> <span class="c_punctuation">()</span>
</td>
</tr>
</tbody>
</table></div>
</div>
<div class="refsect1">
<a name="libvips-mosaicing.object-hierarchy"></a><h2>Object Hierarchy</h2>
<pre class="screen">
</pre>
</div>
<div class="refsect1">
<a name="libvips-mosaicing.includes"></a><h2>Includes</h2>
<pre class="synopsis">#include &lt;vips/vips.h&gt;
</pre>
</div>
<div class="refsect1">
<a name="libvips-mosaicing.description"></a><h2>Description</h2>
<p>These functions are useful for joining many small images together to make
one large image. They can cope with unstable contrast and arbitary sub-image
layout, but will not do any geometric correction. Geometric errors should
be removed before using these functions.</p>
<p>The mosaicing functions can be grouped into layers:</p>
<p>The lowest level functions are <a class="link" href="libvips-mosaicing.html#im-correl" title="im_correl ()"><code class="function">im_correl()</code></a> and <a class="link" href="libvips-mosaicing.html#vips-merge" title="vips_merge ()"><code class="function">vips_merge()</code></a>.
<a class="link" href="libvips-mosaicing.html#im-correl" title="im_correl ()"><code class="function">im_correl()</code></a> 
searches a large image for a small sub-image, returning
the position of the best sub-image match. <a class="link" href="libvips-mosaicing.html#vips-merge" title="vips_merge ()"><code class="function">vips_merge()</code></a> 
joins two images together
left-right or up-down with a smooth seam.</p>
<p>Next, <a class="link" href="libvips-mosaicing.html#vips-mosaic" title="vips_mosaic ()"><code class="function">vips_mosaic()</code></a> use the
search function plus the two low-level merge operations to join two images 
given just an approximate overlap as a start point. </p>
<p>The functions <code class="function">im_lrmosaic1()</code> and <code class="function">im_tbmosaic1()</code> are
first-order
analogues of the basic mosaic functions: they take two approximate 
tie-points and use
them to rotate and scale the right-hand or bottom image before starting to
join.</p>
<p>Finally, <a class="link" href="libvips-mosaicing.html#vips-globalbalance" title="vips_globalbalance ()"><code class="function">vips_globalbalance()</code></a> can be used to remove contrast differences in 
a mosaic
which has been assembled with these functions. It takes the mosaic apart,
measures image contrast differences along the seams, finds a set of
correction factors which will minimise these differences, and reassembles
the mosaic.
<code class="function">im_remosaic()</code> uses the
same
techniques, but will reassemble the image from a different set of source
images.</p>
</div>
<div class="refsect1">
<a name="libvips-mosaicing.functions_details"></a><h2>Functions</h2>
<div class="refsect2">
<a name="vips-merge"></a><h3>vips_merge ()</h3>
<pre class="programlisting"><span class="returnvalue">int</span>
vips_merge (<em class="parameter"><code><a class="link" href="VipsImage.html" title="VipsImage"><span class="type">VipsImage</span></a> *ref</code></em>,
            <em class="parameter"><code><a class="link" href="VipsImage.html" title="VipsImage"><span class="type">VipsImage</span></a> *sec</code></em>,
            <em class="parameter"><code><a class="link" href="VipsImage.html" title="VipsImage"><span class="type">VipsImage</span></a> **out</code></em>,
            <em class="parameter"><code><a class="link" href="libvips-conversion.html#VipsDirection" title="enum VipsDirection"><span class="type">VipsDirection</span></a> direction</code></em>,
            <em class="parameter"><code><span class="type">int</span> dx</code></em>,
            <em class="parameter"><code><span class="type">int</span> dy</code></em>,
            <em class="parameter"><code>...</code></em>);</pre>
<p>Optional arguments:</p>
<p><em class="parameter"><code>mblend</code></em>
: maximum blend size </p>
<p>This operation joins two images left-right (with <em class="parameter"><code>ref</code></em>
 on the left) or
up-down (with <em class="parameter"><code>ref</code></em>
 above) with a smooth seam.</p>
<p>If the number of bands differs, one of the images 
must have one band. In this case, an n-band image is formed from the 
one-band image by joining n copies of the one-band image together, and then
the two n-band images are operated upon.</p>
<p>The two input images are cast up to the smallest common type (see table 
Smallest common format in </p>
arithmetic).
<p><em class="parameter"><code>dx</code></em>
 and <em class="parameter"><code>dy</code></em>
 give the displacement of <em class="parameter"><code>sec</code></em>
 relative to <em class="parameter"><code>ref</code></em>
, in other words,
the vector to get from the origin of <em class="parameter"><code>sec</code></em>
 to the origin of <em class="parameter"><code>ref</code></em>
, in other
words, <em class="parameter"><code>dx</code></em>
 will generally be a negative number. </p>
<p><em class="parameter"><code>mblend</code></em>
 limits  the  maximum width of the
blend area.  A value of "-1" means "unlimited". The two images are blended 
with a raised cosine. </p>
<p>Pixels with all bands equal to zero are "transparent", that
is, zero pixels in the overlap area do not  contribute  to  the  merge.
This makes it possible to join non-rectangular images.</p>
<p>See also: <a class="link" href="libvips-mosaicing.html#vips-mosaic" title="vips_mosaic ()"><code class="function">vips_mosaic()</code></a>, <a class="link" href="libvips-conversion.html#vips-insert" title="vips_insert ()"><code class="function">vips_insert()</code></a>.</p>
<div class="refsect3">
<a name="id-1.4.12.8.2.14"></a><h4>Parameters</h4>
<div class="informaltable"><table width="100%" border="0">
<colgroup>
<col width="150px" class="parameters_name">
<col class="parameters_description">
<col width="200px" class="parameters_annotations">
</colgroup>
<tbody>
<tr>
<td class="parameter_name"><p>ref</p></td>
<td class="parameter_description"><p>reference image</p></td>
<td class="parameter_annotations"> </td>
</tr>
<tr>
<td class="parameter_name"><p>sec</p></td>
<td class="parameter_description"><p>secondary image</p></td>
<td class="parameter_annotations"> </td>
</tr>
<tr>
<td class="parameter_name"><p>out</p></td>
<td class="parameter_description"><p>output image</p></td>
<td class="parameter_annotations"> </td>
</tr>
<tr>
<td class="parameter_name"><p>direction</p></td>
<td class="parameter_description"><p>horizontal or vertical merge</p></td>
<td class="parameter_annotations"> </td>
</tr>
<tr>
<td class="parameter_name"><p>dx</p></td>
<td class="parameter_description"><p>displacement of ref from sec</p></td>
<td class="parameter_annotations"> </td>
</tr>
<tr>
<td class="parameter_name"><p>dy</p></td>
<td class="parameter_description"><p>displacement of ref from sec</p></td>
<td class="parameter_annotations"> </td>
</tr>
<tr>
<td class="parameter_name"><p>...</p></td>
<td class="parameter_description"><p><a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a>-terminated list of optional named arguments</p></td>
<td class="parameter_annotations"> </td>
</tr>
</tbody>
</table></div>
</div>
<div class="refsect3">
<a name="id-1.4.12.8.2.15"></a><h4>Returns</h4>
<p> 0 on success, -1 on error</p>
<p></p>
</div>
</div>
<hr>
<div class="refsect2">
<a name="vips-mosaic"></a><h3>vips_mosaic ()</h3>
<pre class="programlisting"><span class="returnvalue">int</span>
vips_mosaic (<em class="parameter"><code><a class="link" href="VipsImage.html" title="VipsImage"><span class="type">VipsImage</span></a> *ref</code></em>,
             <em class="parameter"><code><a class="link" href="VipsImage.html" title="VipsImage"><span class="type">VipsImage</span></a> *sec</code></em>,
             <em class="parameter"><code><a class="link" href="VipsImage.html" title="VipsImage"><span class="type">VipsImage</span></a> **out</code></em>,
             <em class="parameter"><code><a class="link" href="libvips-conversion.html#VipsDirection" title="enum VipsDirection"><span class="type">VipsDirection</span></a> direction</code></em>,
             <em class="parameter"><code><span class="type">int</span> xref</code></em>,
             <em class="parameter"><code><span class="type">int</span> yref</code></em>,
             <em class="parameter"><code><span class="type">int</span> xsec</code></em>,
             <em class="parameter"><code><span class="type">int</span> ysec</code></em>,
             <em class="parameter"><code>...</code></em>);</pre>
<p>Optional arguments:</p>
<p><em class="parameter"><code>bandno</code></em>
: band to search for features
<em class="parameter"><code>hwindow</code></em>
: half window size
<em class="parameter"><code>harea</code></em>
: half search size 
<em class="parameter"><code>mblend</code></em>
: maximum blend size</p>
<p>This operation joins two images left-right (with <em class="parameter"><code>ref</code></em>
 on the left) or
top-bottom (with <em class="parameter"><code>ref</code></em>
 above) given an approximate overlap.</p>
<p><em class="parameter"><code>sec</code></em>
 is positioned so that the pixel (<em class="parameter"><code>xsec</code></em>
, <em class="parameter"><code>ysec</code></em>
) lies on top of the
pixel in <em class="parameter"><code>ref</code></em>
 at (<em class="parameter"><code>xref</code></em>
, <em class="parameter"><code>yref</code></em>
). The overlap area is divided into three
sections, 20 high-contrast points in band <em class="parameter"><code>bandno</code></em>
 of image <em class="parameter"><code>ref</code></em>
 are found 
in each, and each high-contrast point is searched for in <em class="parameter"><code>sec</code></em>
 using
<em class="parameter"><code>hwindow</code></em>
 and <em class="parameter"><code>harea</code></em>
 (see <code class="function">vips_correl()</code>). </p>
<p>A linear model is fitted to the 60 tie-points, points a long way from the
fit are discarded, and the model refitted until either too few points
remain or the model reaches good agreement. </p>
<p>The detected displacement is used with <a class="link" href="libvips-mosaicing.html#vips-merge" title="vips_merge ()"><code class="function">vips_merge()</code></a> to join the two images
together. </p>
<p>See also: <a class="link" href="libvips-mosaicing.html#vips-merge" title="vips_merge ()"><code class="function">vips_merge()</code></a>, <a class="link" href="libvips-conversion.html#vips-insert" title="vips_insert ()"><code class="function">vips_insert()</code></a>.</p>
<div class="refsect3">
<a name="id-1.4.12.8.3.11"></a><h4>Parameters</h4>
<div class="informaltable"><table width="100%" border="0">
<colgroup>
<col width="150px" class="parameters_name">
<col class="parameters_description">
<col width="200px" class="parameters_annotations">
</colgroup>
<tbody>
<tr>
<td class="parameter_name"><p>ref</p></td>
<td class="parameter_description"><p>reference image</p></td>
<td class="parameter_annotations"> </td>
</tr>
<tr>
<td class="parameter_name"><p>sec</p></td>
<td class="parameter_description"><p>secondary image</p></td>
<td class="parameter_annotations"> </td>
</tr>
<tr>
<td class="parameter_name"><p>out</p></td>
<td class="parameter_description"><p>output image</p></td>
<td class="parameter_annotations"> </td>
</tr>
<tr>
<td class="parameter_name"><p>direction</p></td>
<td class="parameter_description"><p>horizontal or vertical join</p></td>
<td class="parameter_annotations"> </td>
</tr>
<tr>
<td class="parameter_name"><p>xref</p></td>
<td class="parameter_description"><p>position in reference image</p></td>
<td class="parameter_annotations"> </td>
</tr>
<tr>
<td class="parameter_name"><p>yref</p></td>
<td class="parameter_description"><p>position in reference image</p></td>
<td class="parameter_annotations"> </td>
</tr>
<tr>
<td class="parameter_name"><p>xsec</p></td>
<td class="parameter_description"><p>position in secondary image</p></td>
<td class="parameter_annotations"> </td>
</tr>
<tr>
<td class="parameter_name"><p>ysec</p></td>
<td class="parameter_description"><p>position in secondary image</p></td>
<td class="parameter_annotations"> </td>
</tr>
</tbody>
</table></div>
</div>
<div class="refsect3">
<a name="id-1.4.12.8.3.12"></a><h4>Returns</h4>
<p> 0 on success, -1 on error</p>
<p></p>
</div>
</div>
<hr>
<div class="refsect2">
<a name="vips-mosaic1"></a><h3>vips_mosaic1 ()</h3>
<pre class="programlisting"><span class="returnvalue">int</span>
vips_mosaic1 (<em class="parameter"><code><a class="link" href="VipsImage.html" title="VipsImage"><span class="type">VipsImage</span></a> *ref</code></em>,
              <em class="parameter"><code><a class="link" href="VipsImage.html" title="VipsImage"><span class="type">VipsImage</span></a> *sec</code></em>,
              <em class="parameter"><code><a class="link" href="VipsImage.html" title="VipsImage"><span class="type">VipsImage</span></a> **out</code></em>,
              <em class="parameter"><code><a class="link" href="libvips-conversion.html#VipsDirection" title="enum VipsDirection"><span class="type">VipsDirection</span></a> direction</code></em>,
              <em class="parameter"><code><span class="type">int</span> xr1</code></em>,
              <em class="parameter"><code><span class="type">int</span> yr1</code></em>,
              <em class="parameter"><code><span class="type">int</span> xs1</code></em>,
              <em class="parameter"><code><span class="type">int</span> ys1</code></em>,
              <em class="parameter"><code><span class="type">int</span> xr2</code></em>,
              <em class="parameter"><code><span class="type">int</span> yr2</code></em>,
              <em class="parameter"><code><span class="type">int</span> xs2</code></em>,
              <em class="parameter"><code><span class="type">int</span> ys2</code></em>,
              <em class="parameter"><code>...</code></em>);</pre>
<p>Optional arguments:</p>
<p><em class="parameter"><code>search</code></em>
: search to improve tie-points
<em class="parameter"><code>hwindow</code></em>
: half window size
<em class="parameter"><code>harea</code></em>
: half search size 
<em class="parameter"><code>interpolate</code></em>
: interpolate pixels with this
<em class="parameter"><code>mblend</code></em>
: maximum blend size 
<em class="parameter"><code>bandno</code></em>
: band to search for features</p>
<p>This operation joins two images top-bottom (with <em class="parameter"><code>sec</code></em>
 on the right) 
or left-right (with <em class="parameter"><code>sec</code></em>
 at the bottom)
given an approximate pair of tie-points. <em class="parameter"><code>sec</code></em>
 is scaled and rotated as
necessary before the join.</p>
<p>Before performing the transformation, the tie-points are improved by 
searching band <em class="parameter"><code>bandno</code></em>
 in an area of <em class="parameter"><code>sec</code></em>
 of size <em class="parameter"><code>hsearchsize</code></em>
 for a
match of size <em class="parameter"><code>hwindowsize</code></em>
 to <em class="parameter"><code>ref</code></em>
. </p>
<p>If <em class="parameter"><code>search</code></em>
 is <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#TRUE:CAPS"><code class="literal">TRUE</code></a>, before performing the transformation, the tie-points 
are improved by searching an area of <em class="parameter"><code>sec</code></em>
 of size <em class="parameter"><code>harea</code></em>
 for a
mosaic1 of size <em class="parameter"><code>hwindow</code></em>
 to <em class="parameter"><code>ref</code></em>
. </p>
<p><em class="parameter"><code>mblend</code></em>
 limits  the  maximum size of the
blend area.  A value of "-1" means "unlimited". The two images are blended 
with a raised cosine. </p>
<p>Pixels with all bands equal to zero are "transparent", that
is, zero pixels in the overlap area do not  contribute  to  the  merge.
This makes it possible to join non-rectangular images.</p>
<p>If the number of bands differs, one of the images 
must have one band. In this case, an n-band image is formed from the 
one-band image by joining n copies of the one-band image together, and then
the two n-band images are operated upon.</p>
<p>The two input images are cast up to the smallest common type (see table 
Smallest common format in </p>
arithmetic).
<p>See also: <a class="link" href="libvips-mosaicing.html#vips-merge" title="vips_merge ()"><code class="function">vips_merge()</code></a>, <a class="link" href="libvips-conversion.html#vips-insert" title="vips_insert ()"><code class="function">vips_insert()</code></a>, <a class="link" href="libvips-mosaicing.html#vips-globalbalance" title="vips_globalbalance ()"><code class="function">vips_globalbalance()</code></a>.</p>
<div class="refsect3">
<a name="id-1.4.12.8.4.15"></a><h4>Parameters</h4>
<div class="informaltable"><table width="100%" border="0">
<colgroup>
<col width="150px" class="parameters_name">
<col class="parameters_description">
<col width="200px" class="parameters_annotations">
</colgroup>
<tbody>
<tr>
<td class="parameter_name"><p>ref</p></td>
<td class="parameter_description"><p>reference image</p></td>
<td class="parameter_annotations"> </td>
</tr>
<tr>
<td class="parameter_name"><p>sec</p></td>
<td class="parameter_description"><p>secondary image</p></td>
<td class="parameter_annotations"> </td>
</tr>
<tr>
<td class="parameter_name"><p>out</p></td>
<td class="parameter_description"><p>output image</p></td>
<td class="parameter_annotations"> </td>
</tr>
<tr>
<td class="parameter_name"><p>direction</p></td>
<td class="parameter_description"><p>horizontal or vertical join</p></td>
<td class="parameter_annotations"> </td>
</tr>
<tr>
<td class="parameter_name"><p>xr1</p></td>
<td class="parameter_description"><p>first reference tie-point</p></td>
<td class="parameter_annotations"> </td>
</tr>
<tr>
<td class="parameter_name"><p>yr1</p></td>
<td class="parameter_description"><p>first reference tie-point</p></td>
<td class="parameter_annotations"> </td>
</tr>
<tr>
<td class="parameter_name"><p>xs1</p></td>
<td class="parameter_description"><p>first secondary tie-point</p></td>
<td class="parameter_annotations"> </td>
</tr>
<tr>
<td class="parameter_name"><p>ys1</p></td>
<td class="parameter_description"><p>first secondary tie-point</p></td>
<td class="parameter_annotations"> </td>
</tr>
<tr>
<td class="parameter_name"><p>xr2</p></td>
<td class="parameter_description"><p>second reference tie-point</p></td>
<td class="parameter_annotations"> </td>
</tr>
<tr>
<td class="parameter_name"><p>yr2</p></td>
<td class="parameter_description"><p>second reference tie-point</p></td>
<td class="parameter_annotations"> </td>
</tr>
<tr>
<td class="parameter_name"><p>xs2</p></td>
<td class="parameter_description"><p>second secondary tie-point</p></td>
<td class="parameter_annotations"> </td>
</tr>
<tr>
<td class="parameter_name"><p>ys2</p></td>
<td class="parameter_description"><p>second secondary tie-point</p></td>
<td class="parameter_annotations"> </td>
</tr>
</tbody>
</table></div>
</div>
<div class="refsect3">
<a name="id-1.4.12.8.4.16"></a><h4>Returns</h4>
<p> 0 on success, -1 on error</p>
<p></p>
</div>
</div>
<hr>
<div class="refsect2">
<a name="vips-match"></a><h3>vips_match ()</h3>
<pre class="programlisting"><span class="returnvalue">int</span>
vips_match (<em class="parameter"><code><a class="link" href="VipsImage.html" title="VipsImage"><span class="type">VipsImage</span></a> *ref</code></em>,
            <em class="parameter"><code><a class="link" href="VipsImage.html" title="VipsImage"><span class="type">VipsImage</span></a> *sec</code></em>,
            <em class="parameter"><code><a class="link" href="VipsImage.html" title="VipsImage"><span class="type">VipsImage</span></a> **out</code></em>,
            <em class="parameter"><code><span class="type">int</span> xr1</code></em>,
            <em class="parameter"><code><span class="type">int</span> yr1</code></em>,
            <em class="parameter"><code><span class="type">int</span> xs1</code></em>,
            <em class="parameter"><code><span class="type">int</span> ys1</code></em>,
            <em class="parameter"><code><span class="type">int</span> xr2</code></em>,
            <em class="parameter"><code><span class="type">int</span> yr2</code></em>,
            <em class="parameter"><code><span class="type">int</span> xs2</code></em>,
            <em class="parameter"><code><span class="type">int</span> ys2</code></em>,
            <em class="parameter"><code>...</code></em>);</pre>
<p>Optional arguments:</p>
<p><em class="parameter"><code>search</code></em>
: search to improve tie-points
<em class="parameter"><code>hwindow</code></em>
: half window size
<em class="parameter"><code>harea</code></em>
: half search size 
<em class="parameter"><code>interpolate</code></em>
: interpolate pixels with this</p>
<p>Scale, rotate and translate <em class="parameter"><code>sec</code></em>
 so that the tie-points line up.</p>
<p>If <em class="parameter"><code>search</code></em>
 is <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#TRUE:CAPS"><code class="literal">TRUE</code></a>, before performing the transformation, the tie-points 
are improved by searching an area of <em class="parameter"><code>sec</code></em>
 of size <em class="parameter"><code>harea</code></em>
 for a
match of size <em class="parameter"><code>hwindow</code></em>
 to <em class="parameter"><code>ref</code></em>
. </p>
<p>This function will only work well for small rotates and scales.</p>
<div class="refsect3">
<a name="id-1.4.12.8.5.9"></a><h4>Parameters</h4>
<div class="informaltable"><table width="100%" border="0">
<colgroup>
<col width="150px" class="parameters_name">
<col class="parameters_description">
<col width="200px" class="parameters_annotations">
</colgroup>
<tbody>
<tr>
<td class="parameter_name"><p>ref</p></td>
<td class="parameter_description"><p>reference image</p></td>
<td class="parameter_annotations"> </td>
</tr>
<tr>
<td class="parameter_name"><p>sec</p></td>
<td class="parameter_description"><p>secondary image</p></td>
<td class="parameter_annotations"> </td>
</tr>
<tr>
<td class="parameter_name"><p>out</p></td>
<td class="parameter_description"><p>output image</p></td>
<td class="parameter_annotations"> </td>
</tr>
<tr>
<td class="parameter_name"><p>xr1</p></td>
<td class="parameter_description"><p>first reference tie-point</p></td>
<td class="parameter_annotations"> </td>
</tr>
<tr>
<td class="parameter_name"><p>yr1</p></td>
<td class="parameter_description"><p>first reference tie-point</p></td>
<td class="parameter_annotations"> </td>
</tr>
<tr>
<td class="parameter_name"><p>xs1</p></td>
<td class="parameter_description"><p>first secondary tie-point</p></td>
<td class="parameter_annotations"> </td>
</tr>
<tr>
<td class="parameter_name"><p>ys1</p></td>
<td class="parameter_description"><p>first secondary tie-point</p></td>
<td class="parameter_annotations"> </td>
</tr>
<tr>
<td class="parameter_name"><p>xr2</p></td>
<td class="parameter_description"><p>second reference tie-point</p></td>
<td class="parameter_annotations"> </td>
</tr>
<tr>
<td class="parameter_name"><p>yr2</p></td>
<td class="parameter_description"><p>second reference tie-point</p></td>
<td class="parameter_annotations"> </td>
</tr>
<tr>
<td class="parameter_name"><p>xs2</p></td>
<td class="parameter_description"><p>second secondary tie-point</p></td>
<td class="parameter_annotations"> </td>
</tr>
<tr>
<td class="parameter_name"><p>ys2</p></td>
<td class="parameter_description"><p>second secondary tie-point</p></td>
<td class="parameter_annotations"> </td>
</tr>
</tbody>
</table></div>
</div>
<div class="refsect3">
<a name="id-1.4.12.8.5.10"></a><h4>Returns</h4>
<p> 0 on success, -1 on error</p>
<p></p>
</div>
</div>
<hr>
<div class="refsect2">
<a name="vips-globalbalance"></a><h3>vips_globalbalance ()</h3>
<pre class="programlisting"><span class="returnvalue">int</span>
vips_globalbalance (<em class="parameter"><code><a class="link" href="VipsImage.html" title="VipsImage"><span class="type">VipsImage</span></a> *in</code></em>,
                    <em class="parameter"><code><a class="link" href="VipsImage.html" title="VipsImage"><span class="type">VipsImage</span></a> **out</code></em>,
                    <em class="parameter"><code>...</code></em>);</pre>
<p>Optional arguments:</p>
<p><em class="parameter"><code>gamma</code></em>
: gamma of source images
<em class="parameter"><code>int_output</code></em>
: <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#TRUE:CAPS"><code class="literal">TRUE</code></a> for integer image output</p>
<p>vips_globalbalance() can be used to remove contrast differences in 
an assembled mosaic.</p>
<p>It reads the History field attached to <em class="parameter"><code>in</code></em>
 and builds a list of the source
images that were used to make the mosaic and the position that each ended
up at in the final image.</p>
<p>It opens each of the source images in turn and extracts all parts which
overlap with any of the other images. It finds the average values in the
overlap areas and uses least-mean-square to find a set of correction
factors which will minimise overlap differences. It uses <em class="parameter"><code>gamma</code></em>
 to
gamma-correct the source images before calculating the factors. A value of
1.0 will stop this.</p>
<p>Each of the source images is transformed with the appropriate correction 
factor, then the mosaic is reassembled. <em class="parameter"><code>out</code></em>
 is <a class="link" href="VipsImage.html#VIPS-FORMAT-FLOAT:CAPS"><span class="type">VIPS_FORMAT_FLOAT</span></a>, but 
if <em class="parameter"><code>int_output</code></em>
 is set, the output image is the same format as the input
images.  </p>
<p>There are some conditions that must be met before this operation can work:
the source images must all be present under the filenames recorded in the
history on <em class="parameter"><code>in</code></em>
, and the mosaic must have been built using only operations in
this package.</p>
<p>See also: <a class="link" href="libvips-mosaicing.html#vips-remosaic" title="vips_remosaic ()"><code class="function">vips_remosaic()</code></a>.</p>
<div class="refsect3">
<a name="id-1.4.12.8.6.12"></a><h4>Parameters</h4>
<div class="informaltable"><table width="100%" border="0">
<colgroup>
<col width="150px" class="parameters_name">
<col class="parameters_description">
<col width="200px" class="parameters_annotations">
</colgroup>
<tbody>
<tr>
<td class="parameter_name"><p>in</p></td>
<td class="parameter_description"><p>mosaic to rebuild</p></td>
<td class="parameter_annotations"> </td>
</tr>
<tr>
<td class="parameter_name"><p>out</p></td>
<td class="parameter_description"><p>output image</p></td>
<td class="parameter_annotations"> </td>
</tr>
<tr>
<td class="parameter_name"><p>...</p></td>
<td class="parameter_description"><p><a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a>-terminated list of optional named arguments</p></td>
<td class="parameter_annotations"> </td>
</tr>
</tbody>
</table></div>
</div>
<div class="refsect3">
<a name="id-1.4.12.8.6.13"></a><h4>Returns</h4>
<p> 0 on success, -1 on error</p>
<p></p>
</div>
</div>
<hr>
<div class="refsect2">
<a name="vips-remosaic"></a><h3>vips_remosaic ()</h3>
<pre class="programlisting"><span class="returnvalue">int</span>
vips_remosaic (<em class="parameter"><code><a class="link" href="VipsImage.html" title="VipsImage"><span class="type">VipsImage</span></a> *in</code></em>,
               <em class="parameter"><code><a class="link" href="VipsImage.html" title="VipsImage"><span class="type">VipsImage</span></a> **out</code></em>,
               <em class="parameter"><code>const <span class="type">char</span> *old_str</code></em>,
               <em class="parameter"><code>const <span class="type">char</span> *new_str</code></em>,
               <em class="parameter"><code>...</code></em>);</pre>
<p>vips_remosaic() works rather as <a class="link" href="libvips-mosaicing.html#vips-globalbalance" title="vips_globalbalance ()"><code class="function">vips_globalbalance()</code></a>. It takes apart the
mosaiced image <em class="parameter"><code>in</code></em>
 and rebuilds it, substituting images.</p>
<p>Unlike <a class="link" href="libvips-mosaicing.html#vips-globalbalance" title="vips_globalbalance ()"><code class="function">vips_globalbalance()</code></a>, images are substituted based on their file‐
names.  The  rightmost  occurence  of the string <em class="parameter"><code>old_str</code></em>
 is swapped
for <em class="parameter"><code>new_str</code></em>
, that file is opened, and that image substituted  for
the old image.</p>
<p>It's convenient for multispectral images. You can mosaic one band, then
use that mosaic as a template for mosaicing the others automatically.</p>
<p>See also: <a class="link" href="libvips-mosaicing.html#vips-globalbalance" title="vips_globalbalance ()"><code class="function">vips_globalbalance()</code></a>.</p>
<div class="refsect3">
<a name="id-1.4.12.8.7.8"></a><h4>Parameters</h4>
<div class="informaltable"><table width="100%" border="0">
<colgroup>
<col width="150px" class="parameters_name">
<col class="parameters_description">
<col width="200px" class="parameters_annotations">
</colgroup>
<tbody>
<tr>
<td class="parameter_name"><p>in</p></td>
<td class="parameter_description"><p>mosaic to rebuild</p></td>
<td class="parameter_annotations"> </td>
</tr>
<tr>
<td class="parameter_name"><p>out</p></td>
<td class="parameter_description"><p>output image</p></td>
<td class="parameter_annotations"> </td>
</tr>
<tr>
<td class="parameter_name"><p>old_str</p></td>
<td class="parameter_description"><p>gamma of source images</p></td>
<td class="parameter_annotations"> </td>
</tr>
<tr>
<td class="parameter_name"><p>new_str</p></td>
<td class="parameter_description"><p>gamma of source images</p></td>
<td class="parameter_annotations"> </td>
</tr>
<tr>
<td class="parameter_name"><p>...</p></td>
<td class="parameter_description"><p><a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a>-terminated list of optional named arguments</p></td>
<td class="parameter_annotations"> </td>
</tr>
</tbody>
</table></div>
</div>
<div class="refsect3">
<a name="id-1.4.12.8.7.9"></a><h4>Returns</h4>
<p> 0 on success, -1 on error</p>
<p></p>
</div>
</div>
<hr>
<div class="refsect2">
<a name="im-correl"></a><h3>im_correl ()</h3>
<pre class="programlisting"><span class="returnvalue">int</span>
im_correl (<em class="parameter"><code><a class="link" href="VipsImage.html" title="VipsImage"><span class="type">VipsImage</span></a> *ref</code></em>,
           <em class="parameter"><code><a class="link" href="VipsImage.html" title="VipsImage"><span class="type">VipsImage</span></a> *sec</code></em>,
           <em class="parameter"><code><span class="type">int</span> xref</code></em>,
           <em class="parameter"><code><span class="type">int</span> yref</code></em>,
           <em class="parameter"><code><span class="type">int</span> xsec</code></em>,
           <em class="parameter"><code><span class="type">int</span> ysec</code></em>,
           <em class="parameter"><code><span class="type">int</span> hwindowsize</code></em>,
           <em class="parameter"><code><span class="type">int</span> hsearchsize</code></em>,
           <em class="parameter"><code><span class="type">double</span> *correlation</code></em>,
           <em class="parameter"><code><span class="type">int</span> *x</code></em>,
           <em class="parameter"><code><span class="type">int</span> *y</code></em>);</pre>
<p>This operation finds the position of <em class="parameter"><code>sec</code></em>
 within <em class="parameter"><code>ref</code></em>
. </p>
<p>The area around
(<em class="parameter"><code>xsec</code></em>
, <em class="parameter"><code>ysec</code></em>
) is searched for the best match to the area around (<em class="parameter"><code>xref</code></em>
,
<em class="parameter"><code>yref</code></em>
). It  searches an area of size <em class="parameter"><code>hsearchsize</code></em>
 for a
match of size <em class="parameter"><code>hwindowsize</code></em>
.  The position of the best match is
returned, together with the correlation at that point.</p>
<p>Only  the  first  band  of each image is correlated. <em class="parameter"><code>ref</code></em>
 and <em class="parameter"><code>sec</code></em>
 may be
very large --- the function  extracts  and  generates  just  the
parts needed.  Correlation is done with <code class="function">im_spcor()</code>; the position of
the maximum is found with <code class="function">im_maxpos()</code>.</p>
<p>See also: <code class="function">im_match_linear()</code>, <code class="function">im_match_linear_search()</code>, <code class="function">im_lrmosaic()</code>.</p>
<div class="refsect3">
<a name="id-1.4.12.8.8.8"></a><h4>Parameters</h4>
<div class="informaltable"><table width="100%" border="0">
<colgroup>
<col width="150px" class="parameters_name">
<col class="parameters_description">
<col width="200px" class="parameters_annotations">
</colgroup>
<tbody>
<tr>
<td class="parameter_name"><p>ref</p></td>
<td class="parameter_description"><p>reference image</p></td>
<td class="parameter_annotations"> </td>
</tr>
<tr>
<td class="parameter_name"><p>sec</p></td>
<td class="parameter_description"><p>secondary image</p></td>
<td class="parameter_annotations"> </td>
</tr>
<tr>
<td class="parameter_name"><p>xref</p></td>
<td class="parameter_description"><p>position in reference image</p></td>
<td class="parameter_annotations"> </td>
</tr>
<tr>
<td class="parameter_name"><p>yref</p></td>
<td class="parameter_description"><p>position in reference image</p></td>
<td class="parameter_annotations"> </td>
</tr>
<tr>
<td class="parameter_name"><p>xsec</p></td>
<td class="parameter_description"><p>position in secondary image</p></td>
<td class="parameter_annotations"> </td>
</tr>
<tr>
<td class="parameter_name"><p>ysec</p></td>
<td class="parameter_description"><p>position in secondary image</p></td>
<td class="parameter_annotations"> </td>
</tr>
<tr>
<td class="parameter_name"><p>hwindowsize</p></td>
<td class="parameter_description"><p>half window size</p></td>
<td class="parameter_annotations"> </td>
</tr>
<tr>
<td class="parameter_name"><p>hsearchsize</p></td>
<td class="parameter_description"><p>half search size </p></td>
<td class="parameter_annotations"> </td>
</tr>
<tr>
<td class="parameter_name"><p>correlation</p></td>
<td class="parameter_description"><p>return detected correlation</p></td>
<td class="parameter_annotations"> </td>
</tr>
<tr>
<td class="parameter_name"><p>x</p></td>
<td class="parameter_description"><p>return found position</p></td>
<td class="parameter_annotations"> </td>
</tr>
<tr>
<td class="parameter_name"><p>y</p></td>
<td class="parameter_description"><p>return found position</p></td>
<td class="parameter_annotations"> </td>
</tr>
</tbody>
</table></div>
</div>
<div class="refsect3">
<a name="id-1.4.12.8.8.9"></a><h4>Returns</h4>
<p> 0 on success, -1 on error</p>
<p></p>
</div>
</div>
<hr>
<div class="refsect2">
<a name="im-align-bands"></a><h3>im_align_bands ()</h3>
<pre class="programlisting"><span class="returnvalue">int</span>
im_align_bands (<em class="parameter"><code><a class="link" href="VipsImage.html" title="VipsImage"><span class="type">VipsImage</span></a> *in</code></em>,
                <em class="parameter"><code><a class="link" href="VipsImage.html" title="VipsImage"><span class="type">VipsImage</span></a> *out</code></em>);</pre>
<p>This operation uses <code class="function">im_phasecor_fft()</code> to find an integer displacement to
align all image bands band 0. It is very slow and not very accurate. </p>
<p>Use <code class="function">im_estpar()</code> in preference: it's fast and accurate.</p>
<p>See also: <code class="function">im_global_balancef()</code>, <code class="function">im_remosaic()</code>.</p>
<div class="refsect3">
<a name="id-1.4.12.8.9.7"></a><h4>Parameters</h4>
<div class="informaltable"><table width="100%" border="0">
<colgroup>
<col width="150px" class="parameters_name">
<col class="parameters_description">
<col width="200px" class="parameters_annotations">
</colgroup>
<tbody>
<tr>
<td class="parameter_name"><p>in</p></td>
<td class="parameter_description"><p>image to align</p></td>
<td class="parameter_annotations"> </td>
</tr>
<tr>
<td class="parameter_name"><p>out</p></td>
<td class="parameter_description"><p>output image</p></td>
<td class="parameter_annotations"> </td>
</tr>
</tbody>
</table></div>
</div>
<div class="refsect3">
<a name="id-1.4.12.8.9.8"></a><h4>Returns</h4>
<p> 0 on success, -1 on error</p>
<p></p>
</div>
</div>
<hr>
<div class="refsect2">
<a name="im-maxpos-subpel"></a><h3>im_maxpos_subpel ()</h3>
<pre class="programlisting"><span class="returnvalue">int</span>
im_maxpos_subpel (<em class="parameter"><code><a class="link" href="VipsImage.html" title="VipsImage"><span class="type">VipsImage</span></a> *in</code></em>,
                  <em class="parameter"><code><span class="type">double</span> *x</code></em>,
                  <em class="parameter"><code><span class="type">double</span> *y</code></em>);</pre>
<p>This function implements:</p>
<p>  "Extension of Phase Correlation to Subpixel Registration"
  by H. Foroosh, from IEEE trans. Im. Proc. 11(3), 2002.</p>
<p>If the best three matches in the correlation are aranged:</p>
<p>  02   or   01
  1         2</p>
<p>then we return a subpixel match using the ratio of correlations in the
vertical and horizontal dimension.</p>
<p>( xs[0], ys[0] ) is the best integer alignment
( xs[ use_x ], ys[ use_x ] ) is equal in y and (+/-)1 off in x
( xs[ use_y ], ys[ use_y ] ) is equal in x and (+/-)1 off in y</p>
<p>Alternatively if the best four matches in the correlation are aranged in
a square:</p>
<p>  01  or  03  or  02  or  03
  32      12      31      21</p>
<p>then we return a subpixel match weighting with the sum the two on each
side over the sum of all four, but only if all four of them are very
close to the best, and the fifth is nowhere near.</p>
<p>This alternative method is not described by Foroosh, but is often the
case where the match is close to n-and-a-half pixels in both dimensions.</p>
<p>See also: <code class="function">im_maxpos()</code>, <code class="function">im_min()</code>, <code class="function">im_stats()</code>.</p>
<div class="refsect3">
<a name="id-1.4.12.8.10.15"></a><h4>Parameters</h4>
<div class="informaltable"><table width="100%" border="0">
<colgroup>
<col width="150px" class="parameters_name">
<col class="parameters_description">
<col width="200px" class="parameters_annotations">
</colgroup>
<tbody>
<tr>
<td class="parameter_name"><p>in</p></td>
<td class="parameter_description"><p>input image</p></td>
<td class="parameter_annotations"> </td>
</tr>
<tr>
<td class="parameter_name"><p>x</p></td>
<td class="parameter_description"><p>output position of maximum </p></td>
<td class="parameter_annotations"> </td>
</tr>
<tr>
<td class="parameter_name"><p>y</p></td>
<td class="parameter_description"><p>output position of maximum </p></td>
<td class="parameter_annotations"> </td>
</tr>
</tbody>
</table></div>
</div>
<div class="refsect3">
<a name="id-1.4.12.8.10.16"></a><h4>Returns</h4>
<p> 0 on success, -1 on error</p>
<p></p>
</div>
</div>
</div>
<div class="refsect1">
<a name="libvips-mosaicing.other_details"></a><h2>Types and Values</h2>
</div>
</div>
<div class="footer">
<hr>
          Generated by GTK-Doc V1.20</div>
</body>
</html>