/usr/share/gtk-doc/html/libvips/libvips-mask.html is in libvips-doc 7.26.3-1build1.
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 975 976 977 978 979 980 981 982 983 984 985 986 987 988 989 990 991 992 993 994 995 996 997 998 999 1000 1001 1002 1003 1004 1005 1006 1007 1008 1009 1010 1011 1012 1013 1014 1015 1016 1017 1018 1019 1020 1021 1022 1023 1024 1025 1026 1027 1028 1029 1030 1031 1032 1033 1034 1035 1036 1037 1038 1039 1040 1041 1042 1043 1044 1045 1046 1047 1048 1049 1050 1051 1052 1053 1054 1055 1056 1057 1058 1059 1060 1061 1062 1063 1064 1065 1066 1067 1068 1069 1070 1071 1072 1073 1074 1075 1076 1077 1078 1079 1080 1081 1082 1083 1084 1085 1086 1087 1088 1089 1090 1091 1092 1093 1094 1095 1096 1097 1098 1099 1100 1101 1102 1103 1104 1105 1106 1107 1108 1109 1110 1111 1112 1113 1114 1115 1116 1117 1118 1119 1120 1121 1122 1123 1124 1125 1126 1127 1128 1129 1130 1131 1132 1133 1134 1135 1136 1137 1138 1139 1140 1141 1142 1143 1144 1145 1146 1147 1148 1149 1150 1151 1152 1153 1154 1155 1156 1157 1158 1159 1160 1161 1162 1163 1164 1165 1166 1167 1168 1169 1170 1171 1172 1173 1174 1175 1176 1177 1178 1179 1180 1181 1182 1183 1184 1185 1186 1187 1188 1189 1190 1191 1192 1193 1194 1195 1196 1197 1198 1199 1200 1201 1202 1203 1204 1205 1206 1207 1208 1209 1210 1211 1212 1213 1214 1215 1216 1217 1218 1219 1220 1221 1222 1223 1224 1225 1226 1227 1228 1229 1230 1231 1232 1233 1234 1235 1236 1237 1238 1239 1240 1241 1242 1243 1244 1245 1246 1247 1248 1249 1250 1251 1252 1253 1254 1255 1256 1257 1258 1259 1260 1261 1262 1263 1264 1265 1266 1267 1268 1269 1270 1271 1272 1273 1274 1275 1276 1277 1278 1279 1280 1281 1282 1283 1284 1285 1286 1287 1288 1289 1290 1291 1292 1293 1294 1295 1296 1297 1298 1299 1300 1301 1302 1303 1304 1305 1306 1307 1308 1309 1310 1311 1312 1313 1314 1315 1316 1317 1318 1319 1320 1321 1322 1323 1324 1325 1326 1327 1328 1329 1330 1331 1332 1333 1334 1335 1336 1337 1338 1339 1340 1341 1342 1343 1344 1345 1346 1347 1348 1349 1350 1351 1352 1353 1354 1355 1356 1357 1358 1359 1360 1361 1362 1363 1364 1365 1366 1367 1368 1369 1370 1371 1372 1373 1374 1375 1376 1377 1378 1379 1380 1381 1382 1383 1384 1385 1386 1387 1388 1389 1390 1391 1392 1393 1394 1395 1396 1397 1398 1399 1400 1401 1402 1403 1404 1405 1406 1407 1408 1409 1410 1411 1412 1413 1414 1415 1416 1417 1418 1419 1420 1421 1422 1423 1424 1425 1426 1427 1428 1429 1430 1431 1432 1433 1434 1435 1436 1437 1438 1439 1440 1441 1442 1443 1444 1445 1446 1447 1448 1449 1450 1451 1452 1453 1454 1455 1456 1457 1458 1459 1460 1461 1462 1463 1464 1465 1466 1467 1468 1469 1470 1471 1472 1473 1474 1475 1476 1477 1478 1479 1480 1481 1482 1483 1484 1485 1486 1487 1488 1489 1490 1491 1492 1493 1494 1495 1496 1497 1498 1499 1500 1501 1502 1503 1504 1505 1506 1507 1508 1509 1510 1511 1512 1513 1514 1515 1516 1517 1518 1519 1520 1521 1522 1523 1524 | <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>mask</title>
<meta name="generator" content="DocBook XSL Stylesheets V1.75.2">
<link rel="home" href="index.html" title="VIPS Reference Manual">
<link rel="up" href="ch02.html" title="VIPS operation API by section">
<link rel="prev" href="VipsInterpolate.html" title="VipsInterpolate">
<link rel="next" href="libvips-morphology.html" title="morphology">
<meta name="generator" content="GTK-Doc V1.17 (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="2">
<tr valign="middle">
<td><a accesskey="p" href="VipsInterpolate.html"><img src="left.png" width="24" height="24" border="0" alt="Prev"></a></td>
<td><a accesskey="u" href="ch02.html"><img src="up.png" width="24" height="24" border="0" alt="Up"></a></td>
<td><a accesskey="h" href="index.html"><img src="home.png" width="24" height="24" border="0" alt="Home"></a></td>
<th width="100%" align="center">VIPS Reference Manual</th>
<td><a accesskey="n" href="libvips-morphology.html"><img src="right.png" width="24" height="24" border="0" alt="Next"></a></td>
</tr>
<tr><td colspan="5" class="shortcuts">
<a href="#libvips-mask.synopsis" class="shortcut">Top</a>
|
<a href="#libvips-mask.description" class="shortcut">Description</a>
</td></tr>
</table>
<div class="refentry">
<a name="libvips-mask"></a><div class="titlepage"></div>
<div class="refnamediv"><table width="100%"><tr>
<td valign="top">
<h2><span class="refentrytitle"><a name="libvips-mask.top_of_page"></a>mask</span></h2>
<p>mask — load, save and process mask (matrix) objects</p>
</td>
<td valign="top" align="right"></td>
</tr></table></div>
<div class="refsect1">
<a name="libvips-mask.stability-level"></a><h2>Stability Level</h2>
Stable, unless otherwise indicated
</div>
<div class="refsynopsisdiv">
<a name="libvips-mask.synopsis"></a><h2>Synopsis</h2>
<pre class="synopsis">
#include <vips/vips.h>
<a class="link" href="libvips-mask.html#INTMASK:CAPS" title="INTMASK">INTMASK</a>;
<a class="link" href="libvips-mask.html#DOUBLEMASK:CAPS" title="DOUBLEMASK">DOUBLEMASK</a>;
<a class="link" href="libvips-mask.html#INTMASK:CAPS" title="INTMASK"><span class="returnvalue">INTMASK</span></a> * <a class="link" href="libvips-mask.html#im-create-imask" title="im_create_imask ()">im_create_imask</a> (<em class="parameter"><code>const <span class="type">char</span> *filename</code></em>,
<em class="parameter"><code><span class="type">int</span> xsize</code></em>,
<em class="parameter"><code><span class="type">int</span> ysize</code></em>);
<a class="link" href="libvips-mask.html#INTMASK:CAPS" title="INTMASK"><span class="returnvalue">INTMASK</span></a> * <a class="link" href="libvips-mask.html#im-create-imaskv" title="im_create_imaskv ()">im_create_imaskv</a> (<em class="parameter"><code>const <span class="type">char</span> *filename</code></em>,
<em class="parameter"><code><span class="type">int</span> xsize</code></em>,
<em class="parameter"><code><span class="type">int</span> ysize</code></em>,
<em class="parameter"><code>...</code></em>);
<a class="link" href="libvips-mask.html#DOUBLEMASK:CAPS" title="DOUBLEMASK"><span class="returnvalue">DOUBLEMASK</span></a> * <a class="link" href="libvips-mask.html#im-create-dmask" title="im_create_dmask ()">im_create_dmask</a> (<em class="parameter"><code>const <span class="type">char</span> *filename</code></em>,
<em class="parameter"><code><span class="type">int</span> xsize</code></em>,
<em class="parameter"><code><span class="type">int</span> ysize</code></em>);
<a class="link" href="libvips-mask.html#DOUBLEMASK:CAPS" title="DOUBLEMASK"><span class="returnvalue">DOUBLEMASK</span></a> * <a class="link" href="libvips-mask.html#im-create-dmaskv" title="im_create_dmaskv ()">im_create_dmaskv</a> (<em class="parameter"><code>const <span class="type">char</span> *filename</code></em>,
<em class="parameter"><code><span class="type">int</span> xsize</code></em>,
<em class="parameter"><code><span class="type">int</span> ysize</code></em>,
<em class="parameter"><code>...</code></em>);
<a class="link" href="libvips-mask.html#INTMASK:CAPS" title="INTMASK"><span class="returnvalue">INTMASK</span></a> * <a class="link" href="libvips-mask.html#im-read-imask" title="im_read_imask ()">im_read_imask</a> (<em class="parameter"><code>const <span class="type">char</span> *filename</code></em>);
<a class="link" href="libvips-mask.html#DOUBLEMASK:CAPS" title="DOUBLEMASK"><span class="returnvalue">DOUBLEMASK</span></a> * <a class="link" href="libvips-mask.html#im-read-dmask" title="im_read_dmask ()">im_read_dmask</a> (<em class="parameter"><code>const <span class="type">char</span> *filename</code></em>);
<span class="returnvalue">void</span> <a class="link" href="libvips-mask.html#im-print-imask" title="im_print_imask ()">im_print_imask</a> (<em class="parameter"><code><a class="link" href="libvips-mask.html#INTMASK:CAPS" title="INTMASK"><span class="type">INTMASK</span></a> *in</code></em>);
<span class="returnvalue">void</span> <a class="link" href="libvips-mask.html#im-print-dmask" title="im_print_dmask ()">im_print_dmask</a> (<em class="parameter"><code><a class="link" href="libvips-mask.html#DOUBLEMASK:CAPS" title="DOUBLEMASK"><span class="type">DOUBLEMASK</span></a> *in</code></em>);
<span class="returnvalue">int</span> <a class="link" href="libvips-mask.html#im-write-imask" title="im_write_imask ()">im_write_imask</a> (<em class="parameter"><code><a class="link" href="libvips-mask.html#INTMASK:CAPS" title="INTMASK"><span class="type">INTMASK</span></a> *in</code></em>);
<span class="returnvalue">int</span> <a class="link" href="libvips-mask.html#im-write-dmask" title="im_write_dmask ()">im_write_dmask</a> (<em class="parameter"><code><a class="link" href="libvips-mask.html#DOUBLEMASK:CAPS" title="DOUBLEMASK"><span class="type">DOUBLEMASK</span></a> *in</code></em>);
<span class="returnvalue">int</span> <a class="link" href="libvips-mask.html#im-write-imask-name" title="im_write_imask_name ()">im_write_imask_name</a> (<em class="parameter"><code><a class="link" href="libvips-mask.html#INTMASK:CAPS" title="INTMASK"><span class="type">INTMASK</span></a> *in</code></em>,
<em class="parameter"><code>const <span class="type">char</span> *filename</code></em>);
<span class="returnvalue">int</span> <a class="link" href="libvips-mask.html#im-write-dmask-name" title="im_write_dmask_name ()">im_write_dmask_name</a> (<em class="parameter"><code><a class="link" href="libvips-mask.html#DOUBLEMASK:CAPS" title="DOUBLEMASK"><span class="type">DOUBLEMASK</span></a> *in</code></em>,
<em class="parameter"><code>const <span class="type">char</span> *filename</code></em>);
<span class="returnvalue">int</span> <a class="link" href="libvips-mask.html#im-free-imask" title="im_free_imask ()">im_free_imask</a> (<em class="parameter"><code><a class="link" href="libvips-mask.html#INTMASK:CAPS" title="INTMASK"><span class="type">INTMASK</span></a> *in</code></em>);
<span class="returnvalue">int</span> <a class="link" href="libvips-mask.html#im-free-dmask" title="im_free_dmask ()">im_free_dmask</a> (<em class="parameter"><code><a class="link" href="libvips-mask.html#DOUBLEMASK:CAPS" title="DOUBLEMASK"><span class="type">DOUBLEMASK</span></a> *in</code></em>);
<a class="link" href="libvips-mask.html#INTMASK:CAPS" title="INTMASK"><span class="returnvalue">INTMASK</span></a> * <a class="link" href="libvips-mask.html#im-log-imask" title="im_log_imask ()">im_log_imask</a> (<em class="parameter"><code>const <span class="type">char</span> *filename</code></em>,
<em class="parameter"><code><span class="type">double</span> sigma</code></em>,
<em class="parameter"><code><span class="type">double</span> min_ampl</code></em>);
<a class="link" href="libvips-mask.html#DOUBLEMASK:CAPS" title="DOUBLEMASK"><span class="returnvalue">DOUBLEMASK</span></a> * <a class="link" href="libvips-mask.html#im-log-dmask" title="im_log_dmask ()">im_log_dmask</a> (<em class="parameter"><code>const <span class="type">char</span> *filename</code></em>,
<em class="parameter"><code><span class="type">double</span> sigma</code></em>,
<em class="parameter"><code><span class="type">double</span> min_ampl</code></em>);
<a class="link" href="libvips-mask.html#INTMASK:CAPS" title="INTMASK"><span class="returnvalue">INTMASK</span></a> * <a class="link" href="libvips-mask.html#im-gauss-imask" title="im_gauss_imask ()">im_gauss_imask</a> (<em class="parameter"><code>const <span class="type">char</span> *filename</code></em>,
<em class="parameter"><code><span class="type">double</span> sigma</code></em>,
<em class="parameter"><code><span class="type">double</span> min_ampl</code></em>);
<a class="link" href="libvips-mask.html#INTMASK:CAPS" title="INTMASK"><span class="returnvalue">INTMASK</span></a> * <a class="link" href="libvips-mask.html#im-gauss-imask-sep" title="im_gauss_imask_sep ()">im_gauss_imask_sep</a> (<em class="parameter"><code>const <span class="type">char</span> *filename</code></em>,
<em class="parameter"><code><span class="type">double</span> sigma</code></em>,
<em class="parameter"><code><span class="type">double</span> min_ampl</code></em>);
<a class="link" href="libvips-mask.html#DOUBLEMASK:CAPS" title="DOUBLEMASK"><span class="returnvalue">DOUBLEMASK</span></a> * <a class="link" href="libvips-mask.html#im-gauss-dmask" title="im_gauss_dmask ()">im_gauss_dmask</a> (<em class="parameter"><code>const <span class="type">char</span> *filename</code></em>,
<em class="parameter"><code><span class="type">double</span> sigma</code></em>,
<em class="parameter"><code><span class="type">double</span> min_ampl</code></em>);
<a class="link" href="libvips-mask.html#DOUBLEMASK:CAPS" title="DOUBLEMASK"><span class="returnvalue">DOUBLEMASK</span></a> * <a class="link" href="libvips-mask.html#im-gauss-dmask-sep" title="im_gauss_dmask_sep ()">im_gauss_dmask_sep</a> (<em class="parameter"><code>const <span class="type">char</span> *filename</code></em>,
<em class="parameter"><code><span class="type">double</span> sigma</code></em>,
<em class="parameter"><code><span class="type">double</span> min_ampl</code></em>);
<a class="link" href="libvips-mask.html#INTMASK:CAPS" title="INTMASK"><span class="returnvalue">INTMASK</span></a> * <a class="link" href="libvips-mask.html#im-dup-imask" title="im_dup_imask ()">im_dup_imask</a> (<em class="parameter"><code><a class="link" href="libvips-mask.html#INTMASK:CAPS" title="INTMASK"><span class="type">INTMASK</span></a> *in</code></em>,
<em class="parameter"><code>const <span class="type">char</span> *filename</code></em>);
<a class="link" href="libvips-mask.html#DOUBLEMASK:CAPS" title="DOUBLEMASK"><span class="returnvalue">DOUBLEMASK</span></a> * <a class="link" href="libvips-mask.html#im-dup-dmask" title="im_dup_dmask ()">im_dup_dmask</a> (<em class="parameter"><code><a class="link" href="libvips-mask.html#DOUBLEMASK:CAPS" title="DOUBLEMASK"><span class="type">DOUBLEMASK</span></a> *in</code></em>,
<em class="parameter"><code>const <span class="type">char</span> *filename</code></em>);
<a class="link" href="libvips-mask.html#INTMASK:CAPS" title="INTMASK"><span class="returnvalue">INTMASK</span></a> * <a class="link" href="libvips-mask.html#im-scale-dmask" title="im_scale_dmask ()">im_scale_dmask</a> (<em class="parameter"><code><a class="link" href="libvips-mask.html#DOUBLEMASK:CAPS" title="DOUBLEMASK"><span class="type">DOUBLEMASK</span></a> *in</code></em>,
<em class="parameter"><code>const <span class="type">char</span> *filename</code></em>);
<span class="returnvalue">void</span> <a class="link" href="libvips-mask.html#im-norm-dmask" title="im_norm_dmask ()">im_norm_dmask</a> (<em class="parameter"><code><a class="link" href="libvips-mask.html#DOUBLEMASK:CAPS" title="DOUBLEMASK"><span class="type">DOUBLEMASK</span></a> *mask</code></em>);
<a class="link" href="libvips-mask.html#DOUBLEMASK:CAPS" title="DOUBLEMASK"><span class="returnvalue">DOUBLEMASK</span></a> * <a class="link" href="libvips-mask.html#im-imask2dmask" title="im_imask2dmask ()">im_imask2dmask</a> (<em class="parameter"><code><a class="link" href="libvips-mask.html#INTMASK:CAPS" title="INTMASK"><span class="type">INTMASK</span></a> *in</code></em>,
<em class="parameter"><code>const <span class="type">char</span> *filename</code></em>);
<a class="link" href="libvips-mask.html#INTMASK:CAPS" title="INTMASK"><span class="returnvalue">INTMASK</span></a> * <a class="link" href="libvips-mask.html#im-dmask2imask" title="im_dmask2imask ()">im_dmask2imask</a> (<em class="parameter"><code><a class="link" href="libvips-mask.html#DOUBLEMASK:CAPS" title="DOUBLEMASK"><span class="type">DOUBLEMASK</span></a> *in</code></em>,
<em class="parameter"><code>const <span class="type">char</span> *filename</code></em>);
<a class="link" href="libvips-mask.html#INTMASK:CAPS" title="INTMASK"><span class="returnvalue">INTMASK</span></a> * <a class="link" href="libvips-mask.html#im-rotate-imask90" title="im_rotate_imask90 ()">im_rotate_imask90</a> (<em class="parameter"><code><a class="link" href="libvips-mask.html#INTMASK:CAPS" title="INTMASK"><span class="type">INTMASK</span></a> *in</code></em>,
<em class="parameter"><code>const <span class="type">char</span> *filename</code></em>);
<a class="link" href="libvips-mask.html#INTMASK:CAPS" title="INTMASK"><span class="returnvalue">INTMASK</span></a> * <a class="link" href="libvips-mask.html#im-rotate-imask45" title="im_rotate_imask45 ()">im_rotate_imask45</a> (<em class="parameter"><code><a class="link" href="libvips-mask.html#INTMASK:CAPS" title="INTMASK"><span class="type">INTMASK</span></a> *in</code></em>,
<em class="parameter"><code>const <span class="type">char</span> *filename</code></em>);
<a class="link" href="libvips-mask.html#DOUBLEMASK:CAPS" title="DOUBLEMASK"><span class="returnvalue">DOUBLEMASK</span></a> * <a class="link" href="libvips-mask.html#im-rotate-dmask90" title="im_rotate_dmask90 ()">im_rotate_dmask90</a> (<em class="parameter"><code><a class="link" href="libvips-mask.html#DOUBLEMASK:CAPS" title="DOUBLEMASK"><span class="type">DOUBLEMASK</span></a> *in</code></em>,
<em class="parameter"><code>const <span class="type">char</span> *filename</code></em>);
<a class="link" href="libvips-mask.html#DOUBLEMASK:CAPS" title="DOUBLEMASK"><span class="returnvalue">DOUBLEMASK</span></a> * <a class="link" href="libvips-mask.html#im-rotate-dmask45" title="im_rotate_dmask45 ()">im_rotate_dmask45</a> (<em class="parameter"><code><a class="link" href="libvips-mask.html#DOUBLEMASK:CAPS" title="DOUBLEMASK"><span class="type">DOUBLEMASK</span></a> *in</code></em>,
<em class="parameter"><code>const <span class="type">char</span> *filename</code></em>);
<a class="link" href="libvips-mask.html#DOUBLEMASK:CAPS" title="DOUBLEMASK"><span class="returnvalue">DOUBLEMASK</span></a> * <a class="link" href="libvips-mask.html#im-mattrn" title="im_mattrn ()">im_mattrn</a> (<em class="parameter"><code><a class="link" href="libvips-mask.html#DOUBLEMASK:CAPS" title="DOUBLEMASK"><span class="type">DOUBLEMASK</span></a> *in</code></em>,
<em class="parameter"><code>const <span class="type">char</span> *filename</code></em>);
<a class="link" href="libvips-mask.html#DOUBLEMASK:CAPS" title="DOUBLEMASK"><span class="returnvalue">DOUBLEMASK</span></a> * <a class="link" href="libvips-mask.html#im-matcat" title="im_matcat ()">im_matcat</a> (<em class="parameter"><code><a class="link" href="libvips-mask.html#DOUBLEMASK:CAPS" title="DOUBLEMASK"><span class="type">DOUBLEMASK</span></a> *top</code></em>,
<em class="parameter"><code><a class="link" href="libvips-mask.html#DOUBLEMASK:CAPS" title="DOUBLEMASK"><span class="type">DOUBLEMASK</span></a> *bottom</code></em>,
<em class="parameter"><code>const <span class="type">char</span> *filename</code></em>);
<a class="link" href="libvips-mask.html#DOUBLEMASK:CAPS" title="DOUBLEMASK"><span class="returnvalue">DOUBLEMASK</span></a> * <a class="link" href="libvips-mask.html#im-matmul" title="im_matmul ()">im_matmul</a> (<em class="parameter"><code><a class="link" href="libvips-mask.html#DOUBLEMASK:CAPS" title="DOUBLEMASK"><span class="type">DOUBLEMASK</span></a> *in1</code></em>,
<em class="parameter"><code><a class="link" href="libvips-mask.html#DOUBLEMASK:CAPS" title="DOUBLEMASK"><span class="type">DOUBLEMASK</span></a> *in2</code></em>,
<em class="parameter"><code>const <span class="type">char</span> *filename</code></em>);
<a class="link" href="libvips-mask.html#DOUBLEMASK:CAPS" title="DOUBLEMASK"><span class="returnvalue">DOUBLEMASK</span></a> * <a class="link" href="libvips-mask.html#im-lu-decomp" title="im_lu_decomp ()">im_lu_decomp</a> (<em class="parameter"><code>const <a class="link" href="libvips-mask.html#DOUBLEMASK:CAPS" title="DOUBLEMASK"><span class="type">DOUBLEMASK</span></a> *mat</code></em>,
<em class="parameter"><code>const <span class="type">char</span> *filename</code></em>);
<span class="returnvalue">int</span> <a class="link" href="libvips-mask.html#im-lu-solve" title="im_lu_solve ()">im_lu_solve</a> (<em class="parameter"><code>const <a class="link" href="libvips-mask.html#DOUBLEMASK:CAPS" title="DOUBLEMASK"><span class="type">DOUBLEMASK</span></a> *lu</code></em>,
<em class="parameter"><code><span class="type">double</span> *vec</code></em>);
<a class="link" href="libvips-mask.html#DOUBLEMASK:CAPS" title="DOUBLEMASK"><span class="returnvalue">DOUBLEMASK</span></a> * <a class="link" href="libvips-mask.html#im-matinv" title="im_matinv ()">im_matinv</a> (<em class="parameter"><code>const <a class="link" href="libvips-mask.html#DOUBLEMASK:CAPS" title="DOUBLEMASK"><span class="type">DOUBLEMASK</span></a> *mat</code></em>,
<em class="parameter"><code>const <span class="type">char</span> *filename</code></em>);
<span class="returnvalue">int</span> <a class="link" href="libvips-mask.html#im-matinv-inplace" title="im_matinv_inplace ()">im_matinv_inplace</a> (<em class="parameter"><code><a class="link" href="libvips-mask.html#DOUBLEMASK:CAPS" title="DOUBLEMASK"><span class="type">DOUBLEMASK</span></a> *mat</code></em>);
<a class="link" href="libvips-mask.html#DOUBLEMASK:CAPS" title="DOUBLEMASK"><span class="returnvalue">DOUBLEMASK</span></a> * <a class="link" href="libvips-mask.html#im-local-dmask" title="im_local_dmask ()">im_local_dmask</a> (<em class="parameter"><code><span class="type">struct _VipsImage</span> *out</code></em>,
<em class="parameter"><code><a class="link" href="libvips-mask.html#DOUBLEMASK:CAPS" title="DOUBLEMASK"><span class="type">DOUBLEMASK</span></a> *mask</code></em>);
<a class="link" href="libvips-mask.html#INTMASK:CAPS" title="INTMASK"><span class="returnvalue">INTMASK</span></a> * <a class="link" href="libvips-mask.html#im-local-imask" title="im_local_imask ()">im_local_imask</a> (<em class="parameter"><code><span class="type">struct _VipsImage</span> *out</code></em>,
<em class="parameter"><code><a class="link" href="libvips-mask.html#INTMASK:CAPS" title="INTMASK"><span class="type">INTMASK</span></a> *mask</code></em>);
</pre>
</div>
<div class="refsect1">
<a name="libvips-mask.description"></a><h2>Description</h2>
<p>
These operations load, save and process mask objects. Masks are used as
paramaters to convolution and morphology operators, and to represent
matrices. There are two types of matrix: integer <a class="link" href="libvips-mask.html#INTMASK:CAPS" title="INTMASK"><span class="type">INTMASK</span></a> and double
precision floating point <a class="link" href="libvips-mask.html#DOUBLEMASK:CAPS" title="DOUBLEMASK"><span class="type">DOUBLEMASK</span></a>.
</p>
<p>
This API is horrible and clunky. Surely it will be replaced soon.
</p>
</div>
<div class="refsect1">
<a name="libvips-mask.details"></a><h2>Details</h2>
<div class="refsect2">
<a name="INTMASK:CAPS"></a><h3>INTMASK</h3>
<pre class="programlisting">typedef struct {
int xsize;
int ysize;
int scale;
int offset;
int *coeff;
char *filename;
} INTMASK;
</pre>
<p>
An integer mask.
</p>
<p>
<em class="parameter"><code>scale</code></em> lets the mask represent fractional values: for
example, in integer convolution (see <a class="link" href="libvips-convolution.html#im-conv" title="im_conv ()"><code class="function">im_conv()</code></a>) the result of the
convolution is divided by <em class="parameter"><code>scale</code></em> and then added to <em class="parameter"><code>offset</code></em> before being
written to the output image.
</p>
<p>
<em class="parameter"><code>scale</code></em> and <em class="parameter"><code>offset</code></em> default to 1 and 0. Various functions, such as
<a class="link" href="libvips-convolution.html#im-conv" title="im_conv ()"><code class="function">im_conv()</code></a>, will fail if <em class="parameter"><code>scale</code></em> is zero.
</p>
<p>
You can read and write the matrix elements in <em class="parameter"><code>coeff</code></em>.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><span class="type">int</span> <em class="structfield"><code><a name="INTMASK--CAPS.xsize"></a>xsize</code></em>;</span></p></td>
<td>mask width</td>
</tr>
<tr>
<td><p><span class="term"><span class="type">int</span> <em class="structfield"><code><a name="INTMASK--CAPS.ysize"></a>ysize</code></em>;</span></p></td>
<td>mask height</td>
</tr>
<tr>
<td><p><span class="term"><span class="type">int</span> <em class="structfield"><code><a name="INTMASK--CAPS.scale"></a>scale</code></em>;</span></p></td>
<td>mask scale factor</td>
</tr>
<tr>
<td><p><span class="term"><span class="type">int</span> <em class="structfield"><code><a name="INTMASK--CAPS.offset"></a>offset</code></em>;</span></p></td>
<td>mask offset</td>
</tr>
<tr>
<td><p><span class="term"><span class="type">int</span> *<em class="structfield"><code><a name="INTMASK--CAPS.coeff"></a>coeff</code></em>;</span></p></td>
<td>array of mask elements</td>
</tr>
<tr>
<td><p><span class="term"><span class="type">char</span> *<em class="structfield"><code><a name="INTMASK--CAPS.filename"></a>filename</code></em>;</span></p></td>
<td>the file this mask was read from, or should be written to</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="DOUBLEMASK:CAPS"></a><h3>DOUBLEMASK</h3>
<pre class="programlisting">typedef struct {
int xsize;
int ysize;
double scale;
double offset;
double *coeff;
char *filename;
} DOUBLEMASK;
</pre>
<p>
A floating-point mask.
</p>
<p>
As with <a class="link" href="libvips-mask.html#INTMASK:CAPS" title="INTMASK"><span class="type">INTMASK</span></a>, in convolution (see <code class="function">im_convf()</code>) the result of the
convolution is divided by <em class="parameter"><code>scale</code></em> and then added to <em class="parameter"><code>offset</code></em> before being
written to the output image.
</p>
<p>
<em class="parameter"><code>scale</code></em> and <em class="parameter"><code>offset</code></em> default to 1.0 and 0.0. Various functions, such as
<a class="link" href="libvips-convolution.html#im-conv" title="im_conv ()"><code class="function">im_conv()</code></a>, will fail if <em class="parameter"><code>scale</code></em> is zero.
</p>
<p>
You can read and write the matrix elements in <em class="parameter"><code>coeff</code></em>.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><span class="type">int</span> <em class="structfield"><code><a name="DOUBLEMASK--CAPS.xsize"></a>xsize</code></em>;</span></p></td>
<td>mask width</td>
</tr>
<tr>
<td><p><span class="term"><span class="type">int</span> <em class="structfield"><code><a name="DOUBLEMASK--CAPS.ysize"></a>ysize</code></em>;</span></p></td>
<td>mask height</td>
</tr>
<tr>
<td><p><span class="term"><span class="type">double</span> <em class="structfield"><code><a name="DOUBLEMASK--CAPS.scale"></a>scale</code></em>;</span></p></td>
<td>mask scale factor</td>
</tr>
<tr>
<td><p><span class="term"><span class="type">double</span> <em class="structfield"><code><a name="DOUBLEMASK--CAPS.offset"></a>offset</code></em>;</span></p></td>
<td>mask offset</td>
</tr>
<tr>
<td><p><span class="term"><span class="type">double</span> *<em class="structfield"><code><a name="DOUBLEMASK--CAPS.coeff"></a>coeff</code></em>;</span></p></td>
<td>array of mask elements</td>
</tr>
<tr>
<td><p><span class="term"><span class="type">char</span> *<em class="structfield"><code><a name="DOUBLEMASK--CAPS.filename"></a>filename</code></em>;</span></p></td>
<td>the file this mask was read from, or should be written to</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="im-create-imask"></a><h3>im_create_imask ()</h3>
<pre class="programlisting"><a class="link" href="libvips-mask.html#INTMASK:CAPS" title="INTMASK"><span class="returnvalue">INTMASK</span></a> * im_create_imask (<em class="parameter"><code>const <span class="type">char</span> *filename</code></em>,
<em class="parameter"><code><span class="type">int</span> xsize</code></em>,
<em class="parameter"><code><span class="type">int</span> ysize</code></em>);</pre>
<p>
Create an empty imask. You need to loop over <em class="parameter"><code>coeff</code></em> to set the values.
</p>
<p>
See also: <a class="link" href="libvips-mask.html#im-create-imaskv" title="im_create_imaskv ()"><code class="function">im_create_imaskv()</code></a>.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>filename</code></em> :</span></p></td>
<td>set mask filename to this</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>xsize</code></em> :</span></p></td>
<td>mask width</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>ysize</code></em> :</span></p></td>
<td>mask height</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td>The newly-allocated mask.</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="im-create-imaskv"></a><h3>im_create_imaskv ()</h3>
<pre class="programlisting"><a class="link" href="libvips-mask.html#INTMASK:CAPS" title="INTMASK"><span class="returnvalue">INTMASK</span></a> * im_create_imaskv (<em class="parameter"><code>const <span class="type">char</span> *filename</code></em>,
<em class="parameter"><code><span class="type">int</span> xsize</code></em>,
<em class="parameter"><code><span class="type">int</span> ysize</code></em>,
<em class="parameter"><code>...</code></em>);</pre>
<p>
Create an imask and initialise it from the function parameter list.
</p>
<p>
See also: <a class="link" href="libvips-mask.html#im-create-imask" title="im_create_imask ()"><code class="function">im_create_imask()</code></a>.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>filename</code></em> :</span></p></td>
<td>set mask filename to this</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>xsize</code></em> :</span></p></td>
<td>mask width</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>ysize</code></em> :</span></p></td>
<td>mask height</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>...</code></em> :</span></p></td>
<td>values to set for the mask</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td>The newly-allocated mask.</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="im-create-dmask"></a><h3>im_create_dmask ()</h3>
<pre class="programlisting"><a class="link" href="libvips-mask.html#DOUBLEMASK:CAPS" title="DOUBLEMASK"><span class="returnvalue">DOUBLEMASK</span></a> * im_create_dmask (<em class="parameter"><code>const <span class="type">char</span> *filename</code></em>,
<em class="parameter"><code><span class="type">int</span> xsize</code></em>,
<em class="parameter"><code><span class="type">int</span> ysize</code></em>);</pre>
<p>
Create an empty dmask. You need to loop over <em class="parameter"><code>coeff</code></em> to set the values.
</p>
<p>
See also: <a class="link" href="libvips-mask.html#im-create-dmaskv" title="im_create_dmaskv ()"><code class="function">im_create_dmaskv()</code></a>, <a class="link" href="libvips-conversion.html#im-vips2mask" title="im_vips2mask ()"><code class="function">im_vips2mask()</code></a>.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>filename</code></em> :</span></p></td>
<td>set mask filename to this</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>xsize</code></em> :</span></p></td>
<td>mask width</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>ysize</code></em> :</span></p></td>
<td>mask height</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td>The newly-allocated mask.</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="im-create-dmaskv"></a><h3>im_create_dmaskv ()</h3>
<pre class="programlisting"><a class="link" href="libvips-mask.html#DOUBLEMASK:CAPS" title="DOUBLEMASK"><span class="returnvalue">DOUBLEMASK</span></a> * im_create_dmaskv (<em class="parameter"><code>const <span class="type">char</span> *filename</code></em>,
<em class="parameter"><code><span class="type">int</span> xsize</code></em>,
<em class="parameter"><code><span class="type">int</span> ysize</code></em>,
<em class="parameter"><code>...</code></em>);</pre>
<p>
Create a dmask and initialise it from the function parameter list.
</p>
<p>
See also: <a class="link" href="libvips-mask.html#im-create-dmask" title="im_create_dmask ()"><code class="function">im_create_dmask()</code></a>.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>filename</code></em> :</span></p></td>
<td>set mask filename to this</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>xsize</code></em> :</span></p></td>
<td>mask width</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>ysize</code></em> :</span></p></td>
<td>mask height</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>...</code></em> :</span></p></td>
<td>values to set for the mask</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td>The newly-allocated mask.</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="im-read-imask"></a><h3>im_read_imask ()</h3>
<pre class="programlisting"><a class="link" href="libvips-mask.html#INTMASK:CAPS" title="INTMASK"><span class="returnvalue">INTMASK</span></a> * im_read_imask (<em class="parameter"><code>const <span class="type">char</span> *filename</code></em>);</pre>
<p>
Reads an integer matrix from a file.
</p>
<p>
This function works exactly as <a class="link" href="libvips-mask.html#im-read-dmask" title="im_read_dmask ()"><code class="function">im_read_dmask()</code></a>, but the loaded matrix is
checked for 'int-ness'. All coefficients must be integers, and scale and
offset must be integers.
</p>
<p>
See also: <a class="link" href="libvips-mask.html#im-read-dmask" title="im_read_dmask ()"><code class="function">im_read_dmask()</code></a>.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>filename</code></em> :</span></p></td>
<td>read matrix from this file</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td>the loaded mask on success, or NULL on error.</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="im-read-dmask"></a><h3>im_read_dmask ()</h3>
<pre class="programlisting"><a class="link" href="libvips-mask.html#DOUBLEMASK:CAPS" title="DOUBLEMASK"><span class="returnvalue">DOUBLEMASK</span></a> * im_read_dmask (<em class="parameter"><code>const <span class="type">char</span> *filename</code></em>);</pre>
<p>
Reads a matrix from a file.
</p>
<p>
Matrix files have a simple format that's supposed to be easy to create with
a text editor or a spreadsheet.
</p>
<p>
The first line has four numbers for width, height, scale and
offset (scale and offset may be omitted, in which case they default to 1.0
and 0.0). Scale must be non-zero. Width and height must be positive
integers. The numbers are separated by any mixture of spaces, commas,
tabs and quotation marks ("). The scale and offset fields may be
floating-point, and must use '.'
as a decimal separator.
</p>
<p>
Subsequent lines each hold one line of matrix data, with numbers again
separated by any mixture of spaces, commas,
tabs and quotation marks ("). The numbers may be floating-point, and must
use '.'
as a decimal separator.
</p>
<p>
Extra characters at the ends of lines or at the end of the file are
ignored.
</p>
<p>
See also: <a class="link" href="libvips-mask.html#im-read-imask" title="im_read_imask ()"><code class="function">im_read_imask()</code></a>, <a class="link" href="libvips-mask.html#im-gauss-dmask" title="im_gauss_dmask ()"><code class="function">im_gauss_dmask()</code></a>.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>filename</code></em> :</span></p></td>
<td>read matrix from this file</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td>the loaded mask on success, or NULL on error.</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="im-print-imask"></a><h3>im_print_imask ()</h3>
<pre class="programlisting"><span class="returnvalue">void</span> im_print_imask (<em class="parameter"><code><a class="link" href="libvips-mask.html#INTMASK:CAPS" title="INTMASK"><span class="type">INTMASK</span></a> *in</code></em>);</pre>
<p>
Print an imask to stdout.
</p>
<p>
See also: <a class="link" href="libvips-mask.html#im-print-dmask" title="im_print_dmask ()"><code class="function">im_print_dmask()</code></a>.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody><tr>
<td><p><span class="term"><em class="parameter"><code>in</code></em> :</span></p></td>
<td>mask to print</td>
</tr></tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="im-print-dmask"></a><h3>im_print_dmask ()</h3>
<pre class="programlisting"><span class="returnvalue">void</span> im_print_dmask (<em class="parameter"><code><a class="link" href="libvips-mask.html#DOUBLEMASK:CAPS" title="DOUBLEMASK"><span class="type">DOUBLEMASK</span></a> *in</code></em>);</pre>
<p>
Print a dmask to stdout.
</p>
<p>
See also: <a class="link" href="libvips-mask.html#im-print-imask" title="im_print_imask ()"><code class="function">im_print_imask()</code></a>.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody><tr>
<td><p><span class="term"><em class="parameter"><code>in</code></em> :</span></p></td>
<td>mask to print</td>
</tr></tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="im-write-imask"></a><h3>im_write_imask ()</h3>
<pre class="programlisting"><span class="returnvalue">int</span> im_write_imask (<em class="parameter"><code><a class="link" href="libvips-mask.html#INTMASK:CAPS" title="INTMASK"><span class="type">INTMASK</span></a> *in</code></em>);</pre>
<p>
Write an imask to a file.
</p>
<p>
See also: <a class="link" href="libvips-mask.html#im-write-imask-name" title="im_write_imask_name ()"><code class="function">im_write_imask_name()</code></a>.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>in</code></em> :</span></p></td>
<td>mask to write</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td>0 on success, or -1 on error.</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="im-write-dmask"></a><h3>im_write_dmask ()</h3>
<pre class="programlisting"><span class="returnvalue">int</span> im_write_dmask (<em class="parameter"><code><a class="link" href="libvips-mask.html#DOUBLEMASK:CAPS" title="DOUBLEMASK"><span class="type">DOUBLEMASK</span></a> *in</code></em>);</pre>
<p>
Write a dmask to a file. See <a class="link" href="libvips-mask.html#im-read-dmask" title="im_read_dmask ()"><code class="function">im_read_dmask()</code></a> for a description of the mask
file format.
</p>
<p>
See also: <a class="link" href="libvips-mask.html#im-write-dmask-name" title="im_write_dmask_name ()"><code class="function">im_write_dmask_name()</code></a>.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>in</code></em> :</span></p></td>
<td>mask to write</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td>0 on success, or -1 on error.</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="im-write-imask-name"></a><h3>im_write_imask_name ()</h3>
<pre class="programlisting"><span class="returnvalue">int</span> im_write_imask_name (<em class="parameter"><code><a class="link" href="libvips-mask.html#INTMASK:CAPS" title="INTMASK"><span class="type">INTMASK</span></a> *in</code></em>,
<em class="parameter"><code>const <span class="type">char</span> *filename</code></em>);</pre>
<p>
Write an imask to a file. See <a class="link" href="libvips-mask.html#im-read-dmask" title="im_read_dmask ()"><code class="function">im_read_dmask()</code></a> for a description of the mask
file format.
</p>
<p>
See also: <a class="link" href="libvips-mask.html#im-write-imask" title="im_write_imask ()"><code class="function">im_write_imask()</code></a>.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>in</code></em> :</span></p></td>
<td>mask to write</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>filename</code></em> :</span></p></td>
<td>filename to write to</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td>0 on success, or -1 on error.</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="im-write-dmask-name"></a><h3>im_write_dmask_name ()</h3>
<pre class="programlisting"><span class="returnvalue">int</span> im_write_dmask_name (<em class="parameter"><code><a class="link" href="libvips-mask.html#DOUBLEMASK:CAPS" title="DOUBLEMASK"><span class="type">DOUBLEMASK</span></a> *in</code></em>,
<em class="parameter"><code>const <span class="type">char</span> *filename</code></em>);</pre>
<p>
Write a dmask to a file. See <a class="link" href="libvips-mask.html#im-read-dmask" title="im_read_dmask ()"><code class="function">im_read_dmask()</code></a> for a description of the mask
file format.
</p>
<p>
See also: <a class="link" href="libvips-mask.html#im-write-dmask" title="im_write_dmask ()"><code class="function">im_write_dmask()</code></a>.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>in</code></em> :</span></p></td>
<td>mask to write</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>filename</code></em> :</span></p></td>
<td>filename to write to</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td>0 on success, or -1 on error.</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="im-free-imask"></a><h3>im_free_imask ()</h3>
<pre class="programlisting"><span class="returnvalue">int</span> im_free_imask (<em class="parameter"><code><a class="link" href="libvips-mask.html#INTMASK:CAPS" title="INTMASK"><span class="type">INTMASK</span></a> *in</code></em>);</pre>
<p>
Free mask structure and any attached arrays. Return zero, so we can use
these functions as close callbacks.
</p>
<p>
See also: <a class="link" href="libvips-mask.html#im-free-dmask" title="im_free_dmask ()"><code class="function">im_free_dmask()</code></a>.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>in</code></em> :</span></p></td>
<td>mask to free</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td>zero.</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="im-free-dmask"></a><h3>im_free_dmask ()</h3>
<pre class="programlisting"><span class="returnvalue">int</span> im_free_dmask (<em class="parameter"><code><a class="link" href="libvips-mask.html#DOUBLEMASK:CAPS" title="DOUBLEMASK"><span class="type">DOUBLEMASK</span></a> *in</code></em>);</pre>
<p>
Free mask structure and any attached arrays. Return zero, so we can use
these functions as close callbacks.
</p>
<p>
See also: <a class="link" href="libvips-mask.html#im-free-dmask" title="im_free_dmask ()"><code class="function">im_free_dmask()</code></a>.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>in</code></em> :</span></p></td>
<td>mask to free</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td>zero.</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="im-log-imask"></a><h3>im_log_imask ()</h3>
<pre class="programlisting"><a class="link" href="libvips-mask.html#INTMASK:CAPS" title="INTMASK"><span class="returnvalue">INTMASK</span></a> * im_log_imask (<em class="parameter"><code>const <span class="type">char</span> *filename</code></em>,
<em class="parameter"><code><span class="type">double</span> sigma</code></em>,
<em class="parameter"><code><span class="type">double</span> min_ampl</code></em>);</pre>
<p>
<a class="link" href="libvips-mask.html#im-log-imask" title="im_log_imask ()"><code class="function">im_log_imask()</code></a> works exactly as <a class="link" href="libvips-mask.html#im-log-dmask" title="im_log_dmask ()"><code class="function">im_log_dmask()</code></a>, but the returned mask
is scaled so that it's maximum value it set to 100.
</p>
<p>
See also: <a class="link" href="libvips-mask.html#im-log-dmask" title="im_log_dmask ()"><code class="function">im_log_dmask()</code></a>, <a class="link" href="libvips-mask.html#im-gauss-imask" title="im_gauss_imask ()"><code class="function">im_gauss_imask()</code></a>, <a class="link" href="libvips-convolution.html#im-conv" title="im_conv ()"><code class="function">im_conv()</code></a>.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>filename</code></em> :</span></p></td>
<td>the returned mask has this set as the filename</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>sigma</code></em> :</span></p></td>
<td>standard deviation of mask</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>min_ampl</code></em> :</span></p></td>
<td>minimum amplitude</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td>the calculated mask on success, or NULL on error.</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="im-log-dmask"></a><h3>im_log_dmask ()</h3>
<pre class="programlisting"><a class="link" href="libvips-mask.html#DOUBLEMASK:CAPS" title="DOUBLEMASK"><span class="returnvalue">DOUBLEMASK</span></a> * im_log_dmask (<em class="parameter"><code>const <span class="type">char</span> *filename</code></em>,
<em class="parameter"><code><span class="type">double</span> sigma</code></em>,
<em class="parameter"><code><span class="type">double</span> min_ampl</code></em>);</pre>
<p>
<a class="link" href="libvips-mask.html#im-log-dmask" title="im_log_dmask ()"><code class="function">im_log_dmask()</code></a> creates a circularly symmetric Laplacian of Gaussian mask
of radius
<em class="parameter"><code>sigma</code></em>. The size of the mask is determined by the variable <em class="parameter"><code>min_ampl</code></em>;
if for instance the value .1 is entered this means that the produced mask
is clipped at values within 10 persent of zero, and where the change
between mask elements is less than 10%.
</p>
<p>
The program uses the following equation: (from Handbook of Pattern
Recognition and image processing by Young and Fu, AP 1986 pages 220-221):
</p>
<p>
H(r) = (1 / (2 * M_PI * s4)) *
(2 - (r2 / s2)) *
exp(-r2 / (2 * s2))
</p>
<p>
where s2 = sigma * sigma, s4 = s2 * s2, r2 = r * r.
</p>
<p>
The generated mask has odd size and its maximum value is normalised to 1.0.
</p>
<p>
See also: <a class="link" href="libvips-mask.html#im-log-imask" title="im_log_imask ()"><code class="function">im_log_imask()</code></a>, <a class="link" href="libvips-mask.html#im-gauss-dmask" title="im_gauss_dmask ()"><code class="function">im_gauss_dmask()</code></a>, <a class="link" href="libvips-convolution.html#im-conv" title="im_conv ()"><code class="function">im_conv()</code></a>.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>filename</code></em> :</span></p></td>
<td>the returned mask has this set as the filename</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>sigma</code></em> :</span></p></td>
<td>standard deviation of mask</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>min_ampl</code></em> :</span></p></td>
<td>minimum amplitude</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td>the calculated mask on success, or NULL on error.</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="im-gauss-imask"></a><h3>im_gauss_imask ()</h3>
<pre class="programlisting"><a class="link" href="libvips-mask.html#INTMASK:CAPS" title="INTMASK"><span class="returnvalue">INTMASK</span></a> * im_gauss_imask (<em class="parameter"><code>const <span class="type">char</span> *filename</code></em>,
<em class="parameter"><code><span class="type">double</span> sigma</code></em>,
<em class="parameter"><code><span class="type">double</span> min_ampl</code></em>);</pre>
<p>
<a class="link" href="libvips-mask.html#im-gauss-imask" title="im_gauss_imask ()"><code class="function">im_gauss_imask()</code></a> works exactly as <a class="link" href="libvips-mask.html#im-gauss-dmask" title="im_gauss_dmask ()"><code class="function">im_gauss_dmask()</code></a>, but the returned mask
is scaled so that it's maximum value it set to 100.
</p>
<p>
See also: <a class="link" href="libvips-mask.html#im-gauss-dmask" title="im_gauss_dmask ()"><code class="function">im_gauss_dmask()</code></a>, <a class="link" href="libvips-mask.html#im-gauss-imask-sep" title="im_gauss_imask_sep ()"><code class="function">im_gauss_imask_sep()</code></a>, <a class="link" href="libvips-convolution.html#im-conv" title="im_conv ()"><code class="function">im_conv()</code></a>, <a class="link" href="libvips-convolution.html#im-convsep" title="im_convsep ()"><code class="function">im_convsep()</code></a>.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>filename</code></em> :</span></p></td>
<td>the returned mask has this set as the filename</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>sigma</code></em> :</span></p></td>
<td>standard deviation of mask</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>min_ampl</code></em> :</span></p></td>
<td>minimum amplitude</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td>the calculated mask on success, or NULL on error.</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="im-gauss-imask-sep"></a><h3>im_gauss_imask_sep ()</h3>
<pre class="programlisting"><a class="link" href="libvips-mask.html#INTMASK:CAPS" title="INTMASK"><span class="returnvalue">INTMASK</span></a> * im_gauss_imask_sep (<em class="parameter"><code>const <span class="type">char</span> *filename</code></em>,
<em class="parameter"><code><span class="type">double</span> sigma</code></em>,
<em class="parameter"><code><span class="type">double</span> min_ampl</code></em>);</pre>
<p>
<a class="link" href="libvips-mask.html#im-gauss-imask-sep" title="im_gauss_imask_sep ()"><code class="function">im_gauss_imask_sep()</code></a> works exactly as <a class="link" href="libvips-mask.html#im-gauss-imask" title="im_gauss_imask ()"><code class="function">im_gauss_imask()</code></a>, but returns only
the central line of the mask. This is useful with <a class="link" href="libvips-convolution.html#im-convsep" title="im_convsep ()"><code class="function">im_convsep()</code></a>.
</p>
<p>
See also: <a class="link" href="libvips-mask.html#im-gauss-dmask" title="im_gauss_dmask ()"><code class="function">im_gauss_dmask()</code></a>, <a class="link" href="libvips-convolution.html#im-convsep" title="im_convsep ()"><code class="function">im_convsep()</code></a>.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>filename</code></em> :</span></p></td>
<td>the returned mask has this set as the filename</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>sigma</code></em> :</span></p></td>
<td>standard deviation of mask</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>min_ampl</code></em> :</span></p></td>
<td>minimum amplitude</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td>the calculated mask on success, or NULL on error.</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="im-gauss-dmask"></a><h3>im_gauss_dmask ()</h3>
<pre class="programlisting"><a class="link" href="libvips-mask.html#DOUBLEMASK:CAPS" title="DOUBLEMASK"><span class="returnvalue">DOUBLEMASK</span></a> * im_gauss_dmask (<em class="parameter"><code>const <span class="type">char</span> *filename</code></em>,
<em class="parameter"><code><span class="type">double</span> sigma</code></em>,
<em class="parameter"><code><span class="type">double</span> min_ampl</code></em>);</pre>
<p>
<a class="link" href="libvips-mask.html#im-gauss-dmask" title="im_gauss_dmask ()"><code class="function">im_gauss_dmask()</code></a> creates a circularly symmetric Gaussian mask of radius
<em class="parameter"><code>sigma</code></em>. The size of the mask is determined by the variable <em class="parameter"><code>min_ampl</code></em>;
if for instance the value .1 is entered this means that the produced mask
is clipped at values less than 10 percent of the maximum amplitude.
</p>
<p>
The program uses the following equation:
</p>
<p>
H(r) = exp( -(r * r) / (2 * sigma * sigma) )
</p>
<p>
The generated mask has odd size and its maximum value is normalised to
1.0.
</p>
<p>
See also: <a class="link" href="libvips-mask.html#im-gauss-imask" title="im_gauss_imask ()"><code class="function">im_gauss_imask()</code></a>, <a class="link" href="libvips-mask.html#im-gauss-imask-sep" title="im_gauss_imask_sep ()"><code class="function">im_gauss_imask_sep()</code></a>, <a class="link" href="libvips-mask.html#im-log-dmask" title="im_log_dmask ()"><code class="function">im_log_dmask()</code></a>, <a class="link" href="libvips-convolution.html#im-conv" title="im_conv ()"><code class="function">im_conv()</code></a>.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>filename</code></em> :</span></p></td>
<td>the returned mask has this set as the filename</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>sigma</code></em> :</span></p></td>
<td>standard deviation of mask</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>min_ampl</code></em> :</span></p></td>
<td>minimum amplitude</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td>the calculated mask on success, or NULL on error.</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="im-gauss-dmask-sep"></a><h3>im_gauss_dmask_sep ()</h3>
<pre class="programlisting"><a class="link" href="libvips-mask.html#DOUBLEMASK:CAPS" title="DOUBLEMASK"><span class="returnvalue">DOUBLEMASK</span></a> * im_gauss_dmask_sep (<em class="parameter"><code>const <span class="type">char</span> *filename</code></em>,
<em class="parameter"><code><span class="type">double</span> sigma</code></em>,
<em class="parameter"><code><span class="type">double</span> min_ampl</code></em>);</pre>
<p>
<a class="link" href="libvips-mask.html#im-gauss-dmask-sep" title="im_gauss_dmask_sep ()"><code class="function">im_gauss_dmask_sep()</code></a> works exactly as <a class="link" href="libvips-mask.html#im-gauss-dmask" title="im_gauss_dmask ()"><code class="function">im_gauss_dmask()</code></a>, but returns only
the central line of the mask. This is useful with <code class="function">im_convsepf()</code>.
</p>
<p>
See also: <a class="link" href="libvips-mask.html#im-gauss-dmask" title="im_gauss_dmask ()"><code class="function">im_gauss_dmask()</code></a>, <code class="function">im_convsepf()</code>.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>filename</code></em> :</span></p></td>
<td>the returned mask has this set as the filename</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>sigma</code></em> :</span></p></td>
<td>standard deviation of mask</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>min_ampl</code></em> :</span></p></td>
<td>minimum amplitude</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td>the calculated mask on success, or NULL on error.</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="im-dup-imask"></a><h3>im_dup_imask ()</h3>
<pre class="programlisting"><a class="link" href="libvips-mask.html#INTMASK:CAPS" title="INTMASK"><span class="returnvalue">INTMASK</span></a> * im_dup_imask (<em class="parameter"><code><a class="link" href="libvips-mask.html#INTMASK:CAPS" title="INTMASK"><span class="type">INTMASK</span></a> *in</code></em>,
<em class="parameter"><code>const <span class="type">char</span> *filename</code></em>);</pre>
<p>
Duplicate an imask.
</p>
<p>
See also: <a class="link" href="libvips-mask.html#im-dup-dmask" title="im_dup_dmask ()"><code class="function">im_dup_dmask()</code></a>.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>in</code></em> :</span></p></td>
<td>mask to duplicate</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>filename</code></em> :</span></p></td>
<td>filename to set for the new mask</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td>the mask copy, or NULL on error.</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="im-dup-dmask"></a><h3>im_dup_dmask ()</h3>
<pre class="programlisting"><a class="link" href="libvips-mask.html#DOUBLEMASK:CAPS" title="DOUBLEMASK"><span class="returnvalue">DOUBLEMASK</span></a> * im_dup_dmask (<em class="parameter"><code><a class="link" href="libvips-mask.html#DOUBLEMASK:CAPS" title="DOUBLEMASK"><span class="type">DOUBLEMASK</span></a> *in</code></em>,
<em class="parameter"><code>const <span class="type">char</span> *filename</code></em>);</pre>
<p>
Duplicate a dmask.
</p>
<p>
See also: <a class="link" href="libvips-mask.html#im-dup-imask" title="im_dup_imask ()"><code class="function">im_dup_imask()</code></a>.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>in</code></em> :</span></p></td>
<td>mask to duplicate</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>filename</code></em> :</span></p></td>
<td>filename to set for the new mask</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td>the mask copy, or NULL on error.</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="im-scale-dmask"></a><h3>im_scale_dmask ()</h3>
<pre class="programlisting"><a class="link" href="libvips-mask.html#INTMASK:CAPS" title="INTMASK"><span class="returnvalue">INTMASK</span></a> * im_scale_dmask (<em class="parameter"><code><a class="link" href="libvips-mask.html#DOUBLEMASK:CAPS" title="DOUBLEMASK"><span class="type">DOUBLEMASK</span></a> *in</code></em>,
<em class="parameter"><code>const <span class="type">char</span> *filename</code></em>);</pre>
<p>
Scale the dmask to make an imask with a maximum value of 20.
</p>
<p>
See also: <a class="link" href="libvips-mask.html#im-norm-dmask" title="im_norm_dmask ()"><code class="function">im_norm_dmask()</code></a>.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>in</code></em> :</span></p></td>
<td>mask to scale</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>filename</code></em> :</span></p></td>
<td>filename for returned mask</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td>the converted mask, or NULL on error.</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="im-norm-dmask"></a><h3>im_norm_dmask ()</h3>
<pre class="programlisting"><span class="returnvalue">void</span> im_norm_dmask (<em class="parameter"><code><a class="link" href="libvips-mask.html#DOUBLEMASK:CAPS" title="DOUBLEMASK"><span class="type">DOUBLEMASK</span></a> *mask</code></em>);</pre>
<p>
Normalise the dmask. Apply the scale and offset to each element to make
a mask with scale 1, offset zero.
</p>
<p>
See also: <a class="link" href="libvips-mask.html#im-scale-dmask" title="im_scale_dmask ()"><code class="function">im_scale_dmask()</code></a>.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>mask</code></em> :</span></p></td>
<td>mask to scale</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td>0 on success, or -1 on error.</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="im-imask2dmask"></a><h3>im_imask2dmask ()</h3>
<pre class="programlisting"><a class="link" href="libvips-mask.html#DOUBLEMASK:CAPS" title="DOUBLEMASK"><span class="returnvalue">DOUBLEMASK</span></a> * im_imask2dmask (<em class="parameter"><code><a class="link" href="libvips-mask.html#INTMASK:CAPS" title="INTMASK"><span class="type">INTMASK</span></a> *in</code></em>,
<em class="parameter"><code>const <span class="type">char</span> *filename</code></em>);</pre>
<p>
Make a dmask from the imask.
</p>
<p>
See also: <a class="link" href="libvips-mask.html#im-dmask2imask" title="im_dmask2imask ()"><code class="function">im_dmask2imask()</code></a>.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>in</code></em> :</span></p></td>
<td>mask to convert</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>filename</code></em> :</span></p></td>
<td>filename for returned mask</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td>the converted mask, or NULL on error.</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="im-dmask2imask"></a><h3>im_dmask2imask ()</h3>
<pre class="programlisting"><a class="link" href="libvips-mask.html#INTMASK:CAPS" title="INTMASK"><span class="returnvalue">INTMASK</span></a> * im_dmask2imask (<em class="parameter"><code><a class="link" href="libvips-mask.html#DOUBLEMASK:CAPS" title="DOUBLEMASK"><span class="type">DOUBLEMASK</span></a> *in</code></em>,
<em class="parameter"><code>const <span class="type">char</span> *filename</code></em>);</pre>
<p>
Make an imask from the dmask, rounding to nearest.
</p>
<p>
See also: <a class="link" href="libvips-mask.html#im-scale-dmask" title="im_scale_dmask ()"><code class="function">im_scale_dmask()</code></a>.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>in</code></em> :</span></p></td>
<td>mask to convert</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>filename</code></em> :</span></p></td>
<td>filename for returned mask</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td>the converted mask, or NULL on error.</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="im-rotate-imask90"></a><h3>im_rotate_imask90 ()</h3>
<pre class="programlisting"><a class="link" href="libvips-mask.html#INTMASK:CAPS" title="INTMASK"><span class="returnvalue">INTMASK</span></a> * im_rotate_imask90 (<em class="parameter"><code><a class="link" href="libvips-mask.html#INTMASK:CAPS" title="INTMASK"><span class="type">INTMASK</span></a> *in</code></em>,
<em class="parameter"><code>const <span class="type">char</span> *filename</code></em>);</pre>
<p>
Returns a mask which is the argument mask rotated by 90 degrees.
Pass the filename to set for the output.
</p>
<p>
See also: <a class="link" href="libvips-mask.html#im-rotate-imask45" title="im_rotate_imask45 ()"><code class="function">im_rotate_imask45()</code></a>.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>in</code></em> :</span></p></td>
<td>input matrix</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>filename</code></em> :</span></p></td>
<td>name for output matrix</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td>the result matrix on success, or <code class="literal">NULL</code> on error.</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="im-rotate-imask45"></a><h3>im_rotate_imask45 ()</h3>
<pre class="programlisting"><a class="link" href="libvips-mask.html#INTMASK:CAPS" title="INTMASK"><span class="returnvalue">INTMASK</span></a> * im_rotate_imask45 (<em class="parameter"><code><a class="link" href="libvips-mask.html#INTMASK:CAPS" title="INTMASK"><span class="type">INTMASK</span></a> *in</code></em>,
<em class="parameter"><code>const <span class="type">char</span> *filename</code></em>);</pre>
<p>
Returns a mask which is the argument mask rotated by 45 degrees.
Pass the filename to set for the output.
</p>
<p>
See also: <a class="link" href="libvips-mask.html#im-rotate-imask90" title="im_rotate_imask90 ()"><code class="function">im_rotate_imask90()</code></a>.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>in</code></em> :</span></p></td>
<td>input matrix</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>filename</code></em> :</span></p></td>
<td>name for output matrix</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td>the result matrix on success, or <code class="literal">NULL</code> on error.</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="im-rotate-dmask90"></a><h3>im_rotate_dmask90 ()</h3>
<pre class="programlisting"><a class="link" href="libvips-mask.html#DOUBLEMASK:CAPS" title="DOUBLEMASK"><span class="returnvalue">DOUBLEMASK</span></a> * im_rotate_dmask90 (<em class="parameter"><code><a class="link" href="libvips-mask.html#DOUBLEMASK:CAPS" title="DOUBLEMASK"><span class="type">DOUBLEMASK</span></a> *in</code></em>,
<em class="parameter"><code>const <span class="type">char</span> *filename</code></em>);</pre>
<p>
Returns a mask which is the argument mask rotated by 90 degrees.
Pass the filename to set for the output.
</p>
<p>
See also: <a class="link" href="libvips-mask.html#im-rotate-dmask45" title="im_rotate_dmask45 ()"><code class="function">im_rotate_dmask45()</code></a>.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>in</code></em> :</span></p></td>
<td>input matrix</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>filename</code></em> :</span></p></td>
<td>name for output matrix</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td>the result matrix on success, or <code class="literal">NULL</code> on error.</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="im-rotate-dmask45"></a><h3>im_rotate_dmask45 ()</h3>
<pre class="programlisting"><a class="link" href="libvips-mask.html#DOUBLEMASK:CAPS" title="DOUBLEMASK"><span class="returnvalue">DOUBLEMASK</span></a> * im_rotate_dmask45 (<em class="parameter"><code><a class="link" href="libvips-mask.html#DOUBLEMASK:CAPS" title="DOUBLEMASK"><span class="type">DOUBLEMASK</span></a> *in</code></em>,
<em class="parameter"><code>const <span class="type">char</span> *filename</code></em>);</pre>
<p>
Returns a mask which is the argument mask rotated by 45 degrees.
Pass the filename to set for the output.
</p>
<p>
See also: <a class="link" href="libvips-mask.html#im-rotate-dmask90" title="im_rotate_dmask90 ()"><code class="function">im_rotate_dmask90()</code></a>.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>in</code></em> :</span></p></td>
<td>input matrix</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>filename</code></em> :</span></p></td>
<td>name for output matrix</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td>the result matrix on success, or <code class="literal">NULL</code> on error.</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="im-mattrn"></a><h3>im_mattrn ()</h3>
<pre class="programlisting"><a class="link" href="libvips-mask.html#DOUBLEMASK:CAPS" title="DOUBLEMASK"><span class="returnvalue">DOUBLEMASK</span></a> * im_mattrn (<em class="parameter"><code><a class="link" href="libvips-mask.html#DOUBLEMASK:CAPS" title="DOUBLEMASK"><span class="type">DOUBLEMASK</span></a> *in</code></em>,
<em class="parameter"><code>const <span class="type">char</span> *filename</code></em>);</pre>
<p>
Transposes the input matrix.
Pass the filename to set for the output.
</p>
<p>
See also: <a class="link" href="libvips-mask.html#im-matmul" title="im_matmul ()"><code class="function">im_matmul()</code></a>, <a class="link" href="libvips-mask.html#im-matinv" title="im_matinv ()"><code class="function">im_matinv()</code></a>.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>in</code></em> :</span></p></td>
<td>input matrix</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>filename</code></em> :</span></p></td>
<td>name for output matrix</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td>the result matrix on success, or <code class="literal">NULL</code> on error.</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="im-matcat"></a><h3>im_matcat ()</h3>
<pre class="programlisting"><a class="link" href="libvips-mask.html#DOUBLEMASK:CAPS" title="DOUBLEMASK"><span class="returnvalue">DOUBLEMASK</span></a> * im_matcat (<em class="parameter"><code><a class="link" href="libvips-mask.html#DOUBLEMASK:CAPS" title="DOUBLEMASK"><span class="type">DOUBLEMASK</span></a> *top</code></em>,
<em class="parameter"><code><a class="link" href="libvips-mask.html#DOUBLEMASK:CAPS" title="DOUBLEMASK"><span class="type">DOUBLEMASK</span></a> *bottom</code></em>,
<em class="parameter"><code>const <span class="type">char</span> *filename</code></em>);</pre>
<p>
Matrix catenations. Returns a new matrix which is the two source matrices
joined together top-bottom. They must be the same width.
</p>
<p>
See also: <a class="link" href="libvips-mask.html#im-mattrn" title="im_mattrn ()"><code class="function">im_mattrn()</code></a>, <a class="link" href="libvips-mask.html#im-matmul" title="im_matmul ()"><code class="function">im_matmul()</code></a>, <a class="link" href="libvips-mask.html#im-matinv" title="im_matinv ()"><code class="function">im_matinv()</code></a>.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>top</code></em> :</span></p></td>
<td>input matrix</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>bottom</code></em> :</span></p></td>
<td>input matrix</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>filename</code></em> :</span></p></td>
<td>filename for output</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td>the joined mask on success, or NULL on error.</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="im-matmul"></a><h3>im_matmul ()</h3>
<pre class="programlisting"><a class="link" href="libvips-mask.html#DOUBLEMASK:CAPS" title="DOUBLEMASK"><span class="returnvalue">DOUBLEMASK</span></a> * im_matmul (<em class="parameter"><code><a class="link" href="libvips-mask.html#DOUBLEMASK:CAPS" title="DOUBLEMASK"><span class="type">DOUBLEMASK</span></a> *in1</code></em>,
<em class="parameter"><code><a class="link" href="libvips-mask.html#DOUBLEMASK:CAPS" title="DOUBLEMASK"><span class="type">DOUBLEMASK</span></a> *in2</code></em>,
<em class="parameter"><code>const <span class="type">char</span> *filename</code></em>);</pre>
<p>
Multiplies two DOUBLEMASKs. Result matrix is made and returned.
Pass the filename to set for the output.
</p>
<p>
The scale and offset members of <em class="parameter"><code>in1</code></em> and <em class="parameter"><code>in2</code></em> are ignored.
</p>
<p>
See also: <a class="link" href="libvips-mask.html#im-mattrn" title="im_mattrn ()"><code class="function">im_mattrn()</code></a>, <a class="link" href="libvips-mask.html#im-matinv" title="im_matinv ()"><code class="function">im_matinv()</code></a>.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>in1</code></em> :</span></p></td>
<td>input matrix</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>in2</code></em> :</span></p></td>
<td>input matrix</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>filename</code></em> :</span></p></td>
<td>name for output matrix</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td>the result matrix on success, or <code class="literal">NULL</code> on error.</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="im-lu-decomp"></a><h3>im_lu_decomp ()</h3>
<pre class="programlisting"><a class="link" href="libvips-mask.html#DOUBLEMASK:CAPS" title="DOUBLEMASK"><span class="returnvalue">DOUBLEMASK</span></a> * im_lu_decomp (<em class="parameter"><code>const <a class="link" href="libvips-mask.html#DOUBLEMASK:CAPS" title="DOUBLEMASK"><span class="type">DOUBLEMASK</span></a> *mat</code></em>,
<em class="parameter"><code>const <span class="type">char</span> *filename</code></em>);</pre>
<p>
This function takes any square NxN <a class="link" href="libvips-mask.html#DOUBLEMASK:CAPS" title="DOUBLEMASK"><span class="type">DOUBLEMASK</span></a>.
It returns a <a class="link" href="libvips-mask.html#DOUBLEMASK:CAPS" title="DOUBLEMASK"><span class="type">DOUBLEMASK</span></a> which is (N+1)xN.
</p>
<p>
It calculates the PLU decomposition, storing the upper and diagonal parts
of U, together with the lower parts of L, as an NxN matrix in the first
N rows of the new matrix. The diagonal parts of L are all set to unity
and are not stored.
</p>
<p>
The final row of the new <a class="link" href="libvips-mask.html#DOUBLEMASK:CAPS" title="DOUBLEMASK"><span class="type">DOUBLEMASK</span></a> has only integer entries, which
represent the row-wise permutations made by the permuatation matrix P.
</p>
<p>
The scale and offset members of the input <a class="link" href="libvips-mask.html#DOUBLEMASK:CAPS" title="DOUBLEMASK"><span class="type">DOUBLEMASK</span></a> are ignored.
</p>
<p>
See:
</p>
<p>
PRESS, W. et al, 1992. Numerical Recipies in C; The Art of Scientific
Computing, 2nd ed. Cambridge: Cambridge University Press, pp. 43-50.
</p>
<p>
See also: <a class="link" href="libvips-mask.html#im-mattrn" title="im_mattrn ()"><code class="function">im_mattrn()</code></a>, <a class="link" href="libvips-mask.html#im-matinv" title="im_matinv ()"><code class="function">im_matinv()</code></a>.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>mat</code></em> :</span></p></td>
<td>matrix to decompose</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>filename</code></em> :</span></p></td>
<td>name for output matrix</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td>the decomposed matrix on success, or NULL on error.</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="im-lu-solve"></a><h3>im_lu_solve ()</h3>
<pre class="programlisting"><span class="returnvalue">int</span> im_lu_solve (<em class="parameter"><code>const <a class="link" href="libvips-mask.html#DOUBLEMASK:CAPS" title="DOUBLEMASK"><span class="type">DOUBLEMASK</span></a> *lu</code></em>,
<em class="parameter"><code><span class="type">double</span> *vec</code></em>);</pre>
<p>
Solve the system of linear equations Ax=b, where matrix A has already
been decomposed into LU form in DOUBLEMASK *lu. Input vector b is in
vec and is overwritten with vector x.
</p>
<p>
See:
</p>
<p>
PRESS, W. et al, 1992. Numerical Recipies in C; The Art of Scientific
Computing, 2nd ed. Cambridge: Cambridge University Press, pp. 43-50.
</p>
<p>
See also: <a class="link" href="libvips-mask.html#im-mattrn" title="im_mattrn ()"><code class="function">im_mattrn()</code></a>, <a class="link" href="libvips-mask.html#im-matinv" title="im_matinv ()"><code class="function">im_matinv()</code></a>.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>lu</code></em> :</span></p></td>
<td>matrix to solve</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>vec</code></em> :</span></p></td>
<td>name for output matrix</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td>the decomposed matrix on success, or NULL on error.</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="im-matinv"></a><h3>im_matinv ()</h3>
<pre class="programlisting"><a class="link" href="libvips-mask.html#DOUBLEMASK:CAPS" title="DOUBLEMASK"><span class="returnvalue">DOUBLEMASK</span></a> * im_matinv (<em class="parameter"><code>const <a class="link" href="libvips-mask.html#DOUBLEMASK:CAPS" title="DOUBLEMASK"><span class="type">DOUBLEMASK</span></a> *mat</code></em>,
<em class="parameter"><code>const <span class="type">char</span> *filename</code></em>);</pre>
<p>
Allocate, and return a pointer to, a DOUBLEMASK representing the
inverse of the matrix represented in <em class="parameter"><code>mat</code></em>. Give it the filename
member <em class="parameter"><code>filename</code></em>. Returns NULL on error. Scale and offset are ignored.
</p>
<p>
See also: <a class="link" href="libvips-mask.html#im-mattrn" title="im_mattrn ()"><code class="function">im_mattrn()</code></a>.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>mat</code></em> :</span></p></td>
<td>matrix to invert</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>filename</code></em> :</span></p></td>
<td>name for output matrix</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td>the inverted matrix on success, or <code class="literal">NULL</code> on error.</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="im-matinv-inplace"></a><h3>im_matinv_inplace ()</h3>
<pre class="programlisting"><span class="returnvalue">int</span> im_matinv_inplace (<em class="parameter"><code><a class="link" href="libvips-mask.html#DOUBLEMASK:CAPS" title="DOUBLEMASK"><span class="type">DOUBLEMASK</span></a> *mat</code></em>);</pre>
<p>
Invert the matrix represented by the DOUBLEMASK <em class="parameter"><code>mat</code></em>, and store
it in the place of <em class="parameter"><code>mat</code></em>. Scale and offset
are ignored.
</p>
<p>
See also: <a class="link" href="libvips-mask.html#im-mattrn" title="im_mattrn ()"><code class="function">im_mattrn()</code></a>.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>mat</code></em> :</span></p></td>
<td>matrix to invert</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td>0 on success, or -1 on error.</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="im-local-dmask"></a><h3>im_local_dmask ()</h3>
<pre class="programlisting"><a class="link" href="libvips-mask.html#DOUBLEMASK:CAPS" title="DOUBLEMASK"><span class="returnvalue">DOUBLEMASK</span></a> * im_local_dmask (<em class="parameter"><code><span class="type">struct _VipsImage</span> *out</code></em>,
<em class="parameter"><code><a class="link" href="libvips-mask.html#DOUBLEMASK:CAPS" title="DOUBLEMASK"><span class="type">DOUBLEMASK</span></a> *mask</code></em>);</pre>
<p>
<em class="parameter"><code>out</code></em> takes ownership of <em class="parameter"><code>mask</code></em>: when <em class="parameter"><code>out</code></em> is closed, <em class="parameter"><code>mask</code></em> will be closed
for you. If <a class="link" href="libvips-mask.html#im-local-dmask" title="im_local_dmask ()"><code class="function">im_local_dmask()</code></a> itself fails, the mask is also freed.
</p>
<p>
See also: <a class="link" href="libvips-mask.html#im-local-imask" title="im_local_imask ()"><code class="function">im_local_imask()</code></a>.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>out</code></em> :</span></p></td>
<td>image to make the mask local to</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>mask</code></em> :</span></p></td>
<td>mask to local-ize</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td>the mask, or NULL on error.</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="im-local-imask"></a><h3>im_local_imask ()</h3>
<pre class="programlisting"><a class="link" href="libvips-mask.html#INTMASK:CAPS" title="INTMASK"><span class="returnvalue">INTMASK</span></a> * im_local_imask (<em class="parameter"><code><span class="type">struct _VipsImage</span> *out</code></em>,
<em class="parameter"><code><a class="link" href="libvips-mask.html#INTMASK:CAPS" title="INTMASK"><span class="type">INTMASK</span></a> *mask</code></em>);</pre>
<p>
<em class="parameter"><code>out</code></em> takes ownership of <em class="parameter"><code>mask</code></em>: when <em class="parameter"><code>out</code></em> is closed, <em class="parameter"><code>mask</code></em> will be closed
for you. If <a class="link" href="libvips-mask.html#im-local-imask" title="im_local_imask ()"><code class="function">im_local_imask()</code></a> itself fails, the mask is also freed.
</p>
<p>
See also: <a class="link" href="libvips-mask.html#im-local-dmask" title="im_local_dmask ()"><code class="function">im_local_dmask()</code></a>.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>out</code></em> :</span></p></td>
<td>image to make the mask local to</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>mask</code></em> :</span></p></td>
<td>mask to local-ize</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td>the mask, or NULL on error.</td>
</tr>
</tbody>
</table></div>
</div>
</div>
</div>
<div class="footer">
<hr>
Generated by GTK-Doc V1.17</div>
</body>
</html>
|