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 1525 1526 1527 1528 1529 1530 1531 1532 1533 1534 1535 1536 1537 1538 1539 1540 1541 1542 1543 1544 1545 1546 1547 1548 1549 1550 1551 1552 1553 1554 1555 1556 1557 1558 1559 1560 1561 1562 1563 1564 1565 1566 1567 1568 1569 1570 1571 1572 1573 1574 1575 1576 1577 1578 1579 1580 1581 1582 1583 1584 1585 1586 1587 1588 1589 1590 1591 1592 1593 1594 1595 1596 1597 1598 1599 1600 1601 1602 1603 1604 1605 1606 1607 1608 1609 1610 1611 1612 1613 1614 1615 1616 1617 1618 1619 1620 1621 1622 1623 1624 1625 1626 1627 1628 1629 1630 1631 1632 1633 1634 1635 1636 1637 1638 1639 1640 1641 1642 1643 1644 1645 1646 1647 1648 1649 1650 1651 1652 1653 1654 1655 1656 1657 1658 1659 1660 1661 1662 1663 1664 1665 1666 1667 1668 1669 1670 1671 1672 1673 1674 1675 1676 1677 1678 1679 1680 1681 1682 1683 1684 1685 1686 1687 1688 1689 1690 1691 1692 1693 1694 1695 1696 1697 1698 1699 1700 1701 1702 1703 1704 1705 1706 1707 1708 1709 1710 1711 1712 1713 1714 1715 1716 1717 1718 1719 1720 1721 1722 1723 1724 1725 1726 1727 1728 1729 1730 1731 1732 1733 1734 1735 1736 1737 1738 1739 1740 1741 1742 1743 1744 1745 1746 1747 1748 1749 1750 1751 1752 1753 1754 1755 1756 1757 1758 1759 1760 1761 1762 1763 1764 1765 1766 1767 1768 1769 1770 1771 1772 1773 1774 1775 1776 1777 1778 1779 1780 1781 1782 1783 1784 1785 1786 1787 1788 1789 1790 1791 1792 1793 1794 1795 1796 1797 1798 1799 1800 1801 1802 1803 1804 1805 1806 1807 1808 1809 1810 1811 1812 1813 1814 1815 1816 1817 1818 1819 1820 1821 1822 1823 1824 1825 1826 1827 1828 1829 1830 1831 1832 1833 1834 1835 1836 1837 1838 1839 1840 1841 1842 1843 1844 1845 1846 1847 1848 1849 1850 1851 1852 1853 1854 1855 1856 1857 1858 1859 1860 1861 1862 1863 1864 1865 1866 1867 1868 1869 1870 1871 1872 1873 1874 1875 1876 1877 1878 1879 1880 1881 1882 1883 1884 1885 1886 1887 1888 1889 1890 1891 1892 1893 1894 1895 1896 1897 1898 1899 1900 1901 1902 1903 1904 1905 1906 1907 1908 1909 1910 1911 1912 1913 1914 1915 1916 1917 1918 1919 1920 1921 1922 1923 1924 1925 1926 1927 1928 1929 1930 1931 1932 1933 1934 1935 1936 1937 1938 1939 1940 1941 1942 1943 1944 1945 1946 1947 1948 1949 1950 1951 1952 1953 1954 1955 1956 1957 1958 1959 1960 1961 1962 1963 1964 1965 1966 1967 1968 1969 1970 1971 1972 1973 1974 1975 1976 1977 1978 1979 1980 1981 1982 1983 1984 1985 1986 1987 1988 1989 1990 1991 1992 1993 1994 1995 1996 1997 1998 1999 2000 2001 2002 2003 2004 2005 2006 2007 2008 2009 2010 2011 2012 2013 2014 2015 2016 2017 2018 2019 2020 2021 2022 2023 2024 2025 2026 2027 2028 2029 2030 2031 2032 2033 2034 2035 2036 2037 2038 2039 2040 2041 2042 2043 2044 2045 2046 2047 2048 2049 2050 2051 2052 2053 2054 2055 2056 2057 2058 2059 2060 2061 2062 2063 2064 2065 2066 2067 2068 2069 2070 2071 2072 2073 2074 2075 2076 2077 2078 2079 2080 2081 2082 2083 2084 2085 2086 2087 2088 2089 2090 2091 2092 2093 2094 2095 2096 2097 2098 2099 2100 2101 2102 2103 2104 2105 2106 2107 2108 2109 2110 2111 2112 2113 2114 2115 2116 2117 2118 2119 2120 2121 2122 2123 2124 2125 2126 2127 2128 2129 2130 2131 2132 2133 2134 2135 2136 2137 2138 2139 2140 2141 2142 2143 2144 2145 2146 2147 2148 2149 2150 2151 2152 2153 2154 2155 2156 2157 2158 2159 2160 2161 2162 2163 2164 2165 2166 2167 2168 2169 2170 2171 2172 2173 2174 2175 2176 2177 2178 2179 2180 2181 2182 2183 2184 2185 2186 2187 2188 2189 2190 2191 2192 2193 2194 2195 2196 2197 2198 2199 2200 2201 2202 2203 2204 2205 2206 2207 2208 2209 2210 2211 2212 2213 2214 2215 2216 2217 2218 2219 2220 2221 2222 2223 2224 2225 2226 2227 2228 2229 2230 2231 2232 2233 2234 2235 2236 2237 2238 2239 2240 2241 2242 2243 2244 2245 2246 2247 2248 2249 2250 2251 2252 2253 2254 2255 2256 2257 2258 2259 2260 2261 2262 2263 2264 2265 2266 2267 2268 2269 2270 2271 2272 2273 2274 2275 2276 2277 2278 2279 2280 2281 2282 2283 2284 2285 2286 2287 2288 2289 2290 2291 2292 2293 2294 2295 2296 2297 2298 2299 2300 2301 2302 2303 2304 2305 2306 2307 2308 2309 2310 2311 2312 2313 2314 2315 2316 2317 2318 2319 2320 2321 2322 2323 2324 2325 2326 2327 2328 2329 2330 2331 2332 2333 2334 2335 2336 2337 2338 2339 2340 2341 2342 2343 2344 2345 2346 2347 2348 2349 2350 2351 2352 2353 2354 2355 2356 2357 2358 2359 2360 2361 2362 2363 2364 2365 2366 2367 2368 2369 2370 2371 2372 2373 2374 2375 2376 2377 2378 2379 2380 2381 2382 2383 2384 2385 2386 2387 2388 2389 2390 2391 2392 2393 2394 2395 2396 2397 2398 2399 2400 2401 2402 2403 2404 2405 2406 2407 2408 2409 2410 2411 2412 2413 2414 2415 2416 2417 2418 2419 2420 2421 2422 2423 2424 2425 2426 2427 2428 2429 2430 2431 2432 2433 2434 2435 2436 2437 2438 2439 2440 2441 2442 2443 2444 2445 2446 2447 2448 2449 2450 2451 2452 2453 2454 2455 2456 2457 2458 2459 2460 2461 2462 2463 2464 2465 2466 2467 2468 2469 2470 2471 2472 2473 2474 2475 2476 2477 2478 2479 2480 2481 2482 2483 2484 2485 2486 2487 2488 2489 2490 2491 2492 2493 2494 2495 2496 2497 2498 2499 2500 2501 2502 2503 2504 2505 2506 2507 2508 2509 2510 2511 2512 2513 2514 2515 2516 2517 2518 2519 2520 2521 2522 2523 2524 2525 2526 2527 2528 2529 2530 2531 2532 2533 2534 2535 2536 2537 2538 2539 2540 2541 2542 2543 2544 2545 2546 2547 2548 2549 2550 2551 2552 2553 2554 2555 2556 2557 2558 2559 2560 2561 2562 2563 2564 2565 2566 2567 2568 2569 2570 2571 2572 2573 2574 2575 2576 2577 2578 2579 2580 2581 2582 2583 2584 2585 2586 2587 2588 2589 2590 2591 2592 2593 2594 2595 2596 2597 2598 2599 2600 2601 2602 2603 2604 2605 2606 2607 2608 2609 2610 2611 2612 2613 2614 2615 2616 2617 2618 2619 2620 2621 2622 2623 2624 2625 2626 2627 2628 2629 2630 2631 2632 2633 2634 2635 2636 2637 2638 2639 2640 2641 2642 2643 2644 2645 2646 2647 2648 2649 2650 2651 2652 2653 2654 2655 2656 2657 2658 2659 2660 2661 2662 2663 2664 2665 2666 2667 2668 2669 2670 2671 2672 2673 2674 2675 2676 2677 2678 2679 2680 2681 2682 2683 2684 2685 2686 2687 2688 2689 2690 2691 2692 2693 2694 2695 2696 2697 2698 2699 2700 2701 2702 2703 2704 2705 2706 2707 2708 2709 2710 2711 2712 2713 2714 2715 2716 2717 2718 2719 2720 2721 2722 2723 2724 2725 2726 2727 2728 2729 2730 2731 2732 2733 2734 2735 2736 2737 2738 2739 2740 2741 2742 2743 2744 2745 2746 2747 2748 2749 2750 2751 2752 2753 2754 2755 2756 2757 2758 2759 2760 2761 2762 2763 2764 2765 2766 2767 2768 2769 2770 2771 2772 2773 2774 2775 2776 2777 2778 2779 2780 2781 2782 2783 2784 2785 2786 2787 2788 2789 2790 2791 2792 2793 2794 2795 2796 2797 2798 2799 2800 2801 2802 2803 2804 2805 2806 2807 2808 2809 2810 2811 2812 2813 2814 2815 2816 2817 2818 2819 2820 2821 2822 2823 2824 2825 2826 2827 2828 2829 2830 2831 2832 2833 2834 2835 2836 2837 2838 2839 2840 2841 2842 2843 2844 2845 2846 2847 2848 2849 2850 2851 2852 2853 2854 2855 2856 2857 2858 2859 2860 2861 2862 2863 2864 2865 2866 2867 2868 2869 2870 2871 2872 2873 2874 2875 2876 2877 2878 2879 2880 2881
|
module Vips
class Image
# @!method self.system(cmd_format, **opts)
# Run an external command.
# @param cmd_format [String] Command to run
# @param opts [Hash] Set of options
# @option opts [Array<Image>] :im Array of input images
# @option opts [String] :out_format Format for output filename
# @option opts [String] :in_format Format for input filename
# @option opts [Vips::Image] :out Output Output image
# @option opts [String] :log Output Command log
# @return [nil, Hash<Symbol => Object>] Hash of optional output items
# @!method add(right, **opts)
# Add two images.
# @param right [Vips::Image] Right-hand image argument
# @param opts [Hash] Set of options
# @return [Vips::Image] Output image
# @!method subtract(right, **opts)
# Subtract two images.
# @param right [Vips::Image] Right-hand image argument
# @param opts [Hash] Set of options
# @return [Vips::Image] Output image
# @!method multiply(right, **opts)
# Multiply two images.
# @param right [Vips::Image] Right-hand image argument
# @param opts [Hash] Set of options
# @return [Vips::Image] Output image
# @!method divide(right, **opts)
# Divide two images.
# @param right [Vips::Image] Right-hand image argument
# @param opts [Hash] Set of options
# @return [Vips::Image] Output image
# @!method relational(right, relational, **opts)
# Relational operation on two images.
# @param right [Vips::Image] Right-hand image argument
# @param relational [Vips::OperationRelational] relational to perform
# @param opts [Hash] Set of options
# @return [Vips::Image] Output image
# @!method remainder(right, **opts)
# Remainder after integer division of two images.
# @param right [Vips::Image] Right-hand image argument
# @param opts [Hash] Set of options
# @return [Vips::Image] Output image
# @!method boolean(right, boolean, **opts)
# Boolean operation on two images.
# @param right [Vips::Image] Right-hand image argument
# @param boolean [Vips::OperationBoolean] boolean to perform
# @param opts [Hash] Set of options
# @return [Vips::Image] Output image
# @!method math2(right, math2, **opts)
# Binary math operations.
# @param right [Vips::Image] Right-hand image argument
# @param math2 [Vips::OperationMath2] math to perform
# @param opts [Hash] Set of options
# @return [Vips::Image] Output image
# @!method complex2(right, cmplx, **opts)
# Complex binary operations on two images.
# @param right [Vips::Image] Right-hand image argument
# @param cmplx [Vips::OperationComplex2] binary complex operation to perform
# @param opts [Hash] Set of options
# @return [Vips::Image] Output image
# @!method complexform(right, **opts)
# Form a complex image from two real images.
# @param right [Vips::Image] Right-hand image argument
# @param opts [Hash] Set of options
# @return [Vips::Image] Output image
# @!method self.sum(im, **opts)
# Sum an array of images.
# @param im [Array<Image>] Array of input images
# @param opts [Hash] Set of options
# @return [Vips::Image] Output image
# @!method invert(**opts)
# Invert an image.
# @param opts [Hash] Set of options
# @return [Vips::Image] Output image
# @!method linear(a, b, **opts)
# Calculate (a * in + b).
# @param a [Array<Double>] Multiply by this
# @param b [Array<Double>] Add this
# @param opts [Hash] Set of options
# @option opts [Boolean] :uchar Output should be uchar
# @return [Vips::Image] Output image
# @!method math(math, **opts)
# Apply a math operation to an image.
# @param math [Vips::OperationMath] math to perform
# @param opts [Hash] Set of options
# @return [Vips::Image] Output image
# @!method abs(**opts)
# Absolute value of an image.
# @param opts [Hash] Set of options
# @return [Vips::Image] Output image
# @!method sign(**opts)
# Unit vector of pixel.
# @param opts [Hash] Set of options
# @return [Vips::Image] Output image
# @!method round(round, **opts)
# Perform a round function on an image.
# @param round [Vips::OperationRound] rounding operation to perform
# @param opts [Hash] Set of options
# @return [Vips::Image] Output image
# @!method relational_const(relational, c, **opts)
# Relational operations against a constant.
# @param relational [Vips::OperationRelational] relational to perform
# @param c [Array<Double>] Array of constants
# @param opts [Hash] Set of options
# @return [Vips::Image] Output image
# @!method remainder_const(c, **opts)
# Remainder after integer division of an image and a constant.
# @param c [Array<Double>] Array of constants
# @param opts [Hash] Set of options
# @return [Vips::Image] Output image
# @!method boolean_const(boolean, c, **opts)
# Boolean operations against a constant.
# @param boolean [Vips::OperationBoolean] boolean to perform
# @param c [Array<Double>] Array of constants
# @param opts [Hash] Set of options
# @return [Vips::Image] Output image
# @!method math2_const(math2, c, **opts)
# Binary math operations with a constant.
# @param math2 [Vips::OperationMath2] math to perform
# @param c [Array<Double>] Array of constants
# @param opts [Hash] Set of options
# @return [Vips::Image] Output image
# @!method complex(cmplx, **opts)
# Perform a complex operation on an image.
# @param cmplx [Vips::OperationComplex] complex to perform
# @param opts [Hash] Set of options
# @return [Vips::Image] Output image
# @!method complexget(get, **opts)
# Get a component from a complex image.
# @param get [Vips::OperationComplexget] complex to perform
# @param opts [Hash] Set of options
# @return [Vips::Image] Output image
# @!method avg(**opts)
# Find image average.
# @param opts [Hash] Set of options
# @return [Float] Output value
# @!method min(**opts)
# Find image minimum.
# @param opts [Hash] Set of options
# @option opts [Integer] :size Number of minimum values to find
# @option opts [Integer] :x Output Horizontal position of minimum
# @option opts [Integer] :y Output Vertical position of minimum
# @option opts [Array<Double>] :out_array Output Array of output values
# @option opts [Array<Integer>] :x_array Output Array of horizontal positions
# @option opts [Array<Integer>] :y_array Output Array of vertical positions
# @return [Float, Hash<Symbol => Object>] Output value, Hash of optional output items
# @!method max(**opts)
# Find image maximum.
# @param opts [Hash] Set of options
# @option opts [Integer] :size Number of maximum values to find
# @option opts [Integer] :x Output Horizontal position of maximum
# @option opts [Integer] :y Output Vertical position of maximum
# @option opts [Array<Double>] :out_array Output Array of output values
# @option opts [Array<Integer>] :x_array Output Array of horizontal positions
# @option opts [Array<Integer>] :y_array Output Array of vertical positions
# @return [Float, Hash<Symbol => Object>] Output value, Hash of optional output items
# @!method deviate(**opts)
# Find image standard deviation.
# @param opts [Hash] Set of options
# @return [Float] Output value
# @!method stats(**opts)
# Find many image stats.
# @param opts [Hash] Set of options
# @return [Vips::Image] Output array of statistics
# @!method hist_find(**opts)
# Find image histogram.
# @param opts [Hash] Set of options
# @option opts [Integer] :band Find histogram of band
# @return [Vips::Image] Output histogram
# @!method hist_find_ndim(**opts)
# Find n-dimensional image histogram.
# @param opts [Hash] Set of options
# @option opts [Integer] :bins Number of bins in each dimension
# @return [Vips::Image] Output histogram
# @!method hist_find_indexed(index, **opts)
# Find indexed image histogram.
# @param index [Vips::Image] Index image
# @param opts [Hash] Set of options
# @option opts [Vips::Combine] :combine Combine bins like this
# @return [Vips::Image] Output histogram
# @!method hough_line(**opts)
# Find hough line transform.
# @param opts [Hash] Set of options
# @option opts [Integer] :width horizontal size of parameter space
# @option opts [Integer] :height Vertical size of parameter space
# @return [Vips::Image] Output image
# @!method hough_circle(**opts)
# Find hough circle transform.
# @param opts [Hash] Set of options
# @option opts [Integer] :scale Scale down dimensions by this factor
# @option opts [Integer] :min_radius Smallest radius to search for
# @option opts [Integer] :max_radius Largest radius to search for
# @return [Vips::Image] Output image
# @!method project(**opts)
# Find image projections.
# @param opts [Hash] Set of options
# @return [Array<Vips::Image, Vips::Image>] Sums of columns, Sums of rows
# @!method profile(**opts)
# Find image profiles.
# @param opts [Hash] Set of options
# @return [Array<Vips::Image, Vips::Image>] First non-zero pixel in column, First non-zero pixel in row
# @!method measure(h, v, **opts)
# Measure a set of patches on a color chart.
# @param h [Integer] Number of patches across chart
# @param v [Integer] Number of patches down chart
# @param opts [Hash] Set of options
# @option opts [Integer] :left Left edge of extract area
# @option opts [Integer] :top Top edge of extract area
# @option opts [Integer] :width Width of extract area
# @option opts [Integer] :height Height of extract area
# @return [Vips::Image] Output array of statistics
# @!method getpoint(x, y, **opts)
# Read a point from an image.
# @param x [Integer] Point to read
# @param y [Integer] Point to read
# @param opts [Hash] Set of options
# @return [Array<Double>] Array of output values
# @!method find_trim(**opts)
# Search an image for non-edge areas.
# @param opts [Hash] Set of options
# @option opts [Float] :threshold Object threshold
# @option opts [Array<Double>] :background Color for background pixels
# @return [Array<Integer, Integer, Integer, Integer>] Left edge of image, Top edge of extract area, Width of extract area, Height of extract area
# @!method copy(**opts)
# Copy an image.
# @param opts [Hash] Set of options
# @option opts [Integer] :width Image width in pixels
# @option opts [Integer] :height Image height in pixels
# @option opts [Integer] :bands Number of bands in image
# @option opts [Vips::BandFormat] :format Pixel format in image
# @option opts [Vips::Coding] :coding Pixel coding
# @option opts [Vips::Interpretation] :interpretation Pixel interpretation
# @option opts [Float] :xres Horizontal resolution in pixels/mm
# @option opts [Float] :yres Vertical resolution in pixels/mm
# @option opts [Integer] :xoffset Horizontal offset of origin
# @option opts [Integer] :yoffset Vertical offset of origin
# @return [Vips::Image] Output image
# @!method tilecache(**opts)
# Cache an image as a set of tiles.
# @param opts [Hash] Set of options
# @option opts [Integer] :tile_width Tile width in pixels
# @option opts [Integer] :tile_height Tile height in pixels
# @option opts [Integer] :max_tiles Maximum number of tiles to cache
# @option opts [Vips::Access] :access Expected access pattern
# @option opts [Boolean] :threaded Allow threaded access
# @option opts [Boolean] :persistent Keep cache between evaluations
# @return [Vips::Image] Output image
# @!method linecache(**opts)
# Cache an image as a set of lines.
# @param opts [Hash] Set of options
# @option opts [Integer] :tile_height Tile height in pixels
# @option opts [Vips::Access] :access Expected access pattern
# @option opts [Boolean] :threaded Allow threaded access
# @option opts [Boolean] :persistent Keep cache between evaluations
# @return [Vips::Image] Output image
# @!method sequential(**opts)
# Check sequential access.
# @param opts [Hash] Set of options
# @option opts [Integer] :tile_height Tile height in pixels
# @return [Vips::Image] Output image
# @!method cache(**opts)
# Cache an image.
# @param opts [Hash] Set of options
# @option opts [Integer] :max_tiles Maximum number of tiles to cache
# @option opts [Integer] :tile_height Tile height in pixels
# @option opts [Integer] :tile_width Tile width in pixels
# @return [Vips::Image] Output image
# @!method embed(x, y, width, height, **opts)
# Embed an image in a larger image.
# @param x [Integer] Left edge of input in output
# @param y [Integer] Top edge of input in output
# @param width [Integer] Image width in pixels
# @param height [Integer] Image height in pixels
# @param opts [Hash] Set of options
# @option opts [Vips::Extend] :extend How to generate the extra pixels
# @option opts [Array<Double>] :background Color for background pixels
# @return [Vips::Image] Output image
# @!method gravity(direction, width, height, **opts)
# Place an image within a larger image with a certain gravity.
# @param direction [Vips::CompassDirection] direction to place image within width/height
# @param width [Integer] Image width in pixels
# @param height [Integer] Image height in pixels
# @param opts [Hash] Set of options
# @option opts [Vips::Extend] :extend How to generate the extra pixels
# @option opts [Array<Double>] :background Color for background pixels
# @return [Vips::Image] Output image
# @!method flip(direction, **opts)
# Flip an image.
# @param direction [Vips::Direction] Direction to flip image
# @param opts [Hash] Set of options
# @return [Vips::Image] Output image
# @!method insert(sub, x, y, **opts)
# Insert image @sub into @main at @x, @y.
# @param sub [Vips::Image] Sub-image to insert into main image
# @param x [Integer] Left edge of sub in main
# @param y [Integer] Top edge of sub in main
# @param opts [Hash] Set of options
# @option opts [Boolean] :expand Expand output to hold all of both inputs
# @option opts [Array<Double>] :background Color for new pixels
# @return [Vips::Image] Output image
# @!method join(in2, direction, **opts)
# Join a pair of images.
# @param in2 [Vips::Image] Second input image
# @param direction [Vips::Direction] Join left-right or up-down
# @param opts [Hash] Set of options
# @option opts [Boolean] :expand Expand output to hold all of both inputs
# @option opts [Integer] :shim Pixels between images
# @option opts [Array<Double>] :background Colour for new pixels
# @option opts [Vips::Align] :align Align on the low, centre or high coordinate edge
# @return [Vips::Image] Output image
# @!method self.arrayjoin(im, **opts)
# Join an array of images.
# @param im [Array<Image>] Array of input images
# @param opts [Hash] Set of options
# @option opts [Integer] :across Number of images across grid
# @option opts [Integer] :shim Pixels between images
# @option opts [Array<Double>] :background Colour for new pixels
# @option opts [Vips::Align] :halign Align on the left, centre or right
# @option opts [Vips::Align] :valign Align on the top, centre or bottom
# @option opts [Integer] :hspacing Horizontal spacing between images
# @option opts [Integer] :vspacing Vertical spacing between images
# @return [Vips::Image] Output image
# @!method extract_area(left, top, width, height, **opts)
# Extract an area from an image.
# @param left [Integer] Left edge of extract area
# @param top [Integer] Top edge of extract area
# @param width [Integer] Width of extract area
# @param height [Integer] Height of extract area
# @param opts [Hash] Set of options
# @return [Vips::Image] Output image
# @!method crop(left, top, width, height, **opts)
# Extract an area from an image.
# @param left [Integer] Left edge of extract area
# @param top [Integer] Top edge of extract area
# @param width [Integer] Width of extract area
# @param height [Integer] Height of extract area
# @param opts [Hash] Set of options
# @return [Vips::Image] Output image
# @!method smartcrop(width, height, **opts)
# Extract an area from an image.
# @param width [Integer] Width of extract area
# @param height [Integer] Height of extract area
# @param opts [Hash] Set of options
# @option opts [Vips::Interesting] :interesting How to measure interestingness
# @return [Vips::Image] Output image
# @!method extract_band(band, **opts)
# Extract band from an image.
# @param band [Integer] Band to extract
# @param opts [Hash] Set of options
# @option opts [Integer] :n Number of bands to extract
# @return [Vips::Image] Output image
# @!method bandjoin_const(c, **opts)
# Append a constant band to an image.
# @param c [Array<Double>] Array of constants to add
# @param opts [Hash] Set of options
# @return [Vips::Image] Output image
# @!method self.bandrank(im, **opts)
# Band-wise rank of a set of images.
# @param im [Array<Image>] Array of input images
# @param opts [Hash] Set of options
# @option opts [Integer] :index Select this band element from sorted list
# @return [Vips::Image] Output image
# @!method bandmean(**opts)
# Band-wise average.
# @param opts [Hash] Set of options
# @return [Vips::Image] Output image
# @!method bandbool(boolean, **opts)
# Boolean operation across image bands.
# @param boolean [Vips::OperationBoolean] boolean to perform
# @param opts [Hash] Set of options
# @return [Vips::Image] Output image
# @!method replicate(across, down, **opts)
# Replicate an image.
# @param across [Integer] Repeat this many times horizontally
# @param down [Integer] Repeat this many times vertically
# @param opts [Hash] Set of options
# @return [Vips::Image] Output image
# @!method cast(format, **opts)
# Cast an image.
# @param format [Vips::BandFormat] Format to cast to
# @param opts [Hash] Set of options
# @option opts [Boolean] :shift Shift integer values up and down
# @return [Vips::Image] Output image
# @!method rot(angle, **opts)
# Rotate an image.
# @param angle [Vips::Angle] Angle to rotate image
# @param opts [Hash] Set of options
# @return [Vips::Image] Output image
# @!method rot45(**opts)
# Rotate an image.
# @param opts [Hash] Set of options
# @option opts [Vips::Angle45] :angle Angle to rotate image
# @return [Vips::Image] Output image
# @!method autorot(**opts)
# Autorotate image by exif tag.
# @param opts [Hash] Set of options
# @option opts [Vips::Angle] :angle Output Angle image was rotated by
# @option opts [Boolean] :flip Output Whether the image was flipped or not
# @return [Vips::Image, Hash<Symbol => Object>] Output image, Hash of optional output items
# @!method recomb(m, **opts)
# Linear recombination with matrix.
# @param m [Vips::Image] matrix of coefficients
# @param opts [Hash] Set of options
# @return [Vips::Image] Output image
# @!method bandfold(**opts)
# Fold up x axis into bands.
# @param opts [Hash] Set of options
# @option opts [Integer] :factor Fold by this factor
# @return [Vips::Image] Output image
# @!method bandunfold(**opts)
# Unfold image bands into x axis.
# @param opts [Hash] Set of options
# @option opts [Integer] :factor Unfold by this factor
# @return [Vips::Image] Output image
# @!method flatten(**opts)
# Flatten alpha out of an image.
# @param opts [Hash] Set of options
# @option opts [Array<Double>] :background Background value
# @option opts [Float] :max_alpha Maximum value of alpha channel
# @return [Vips::Image] Output image
# @!method premultiply(**opts)
# Premultiply image alpha.
# @param opts [Hash] Set of options
# @option opts [Float] :max_alpha Maximum value of alpha channel
# @return [Vips::Image] Output image
# @!method unpremultiply(**opts)
# Unpremultiply image alpha.
# @param opts [Hash] Set of options
# @option opts [Float] :max_alpha Maximum value of alpha channel
# @option opts [Integer] :alpha_band Unpremultiply with this alpha
# @return [Vips::Image] Output image
# @!method grid(tile_height, across, down, **opts)
# Grid an image.
# @param tile_height [Integer] chop into tiles this high
# @param across [Integer] number of tiles across
# @param down [Integer] number of tiles down
# @param opts [Hash] Set of options
# @return [Vips::Image] Output image
# @!method transpose3d(**opts)
# Transpose3d an image.
# @param opts [Hash] Set of options
# @option opts [Integer] :page_height Height of each input page
# @return [Vips::Image] Output image
# @!method wrap(**opts)
# Wrap image origin.
# @param opts [Hash] Set of options
# @option opts [Integer] :x Left edge of input in output
# @option opts [Integer] :y Top edge of input in output
# @return [Vips::Image] Output image
# @!method zoom(xfac, yfac, **opts)
# Zoom an image.
# @param xfac [Integer] Horizontal zoom factor
# @param yfac [Integer] Vertical zoom factor
# @param opts [Hash] Set of options
# @return [Vips::Image] Output image
# @!method subsample(xfac, yfac, **opts)
# Subsample an image.
# @param xfac [Integer] Horizontal subsample factor
# @param yfac [Integer] Vertical subsample factor
# @param opts [Hash] Set of options
# @option opts [Boolean] :point Point sample
# @return [Vips::Image] Output image
# @!method msb(**opts)
# Pick most-significant byte from an image.
# @param opts [Hash] Set of options
# @option opts [Integer] :band Band to msb
# @return [Vips::Image] Output image
# @!method byteswap(**opts)
# Byteswap an image.
# @param opts [Hash] Set of options
# @return [Vips::Image] Output image
# @!method falsecolour(**opts)
# False-color an image.
# @param opts [Hash] Set of options
# @return [Vips::Image] Output image
# @!method gamma(**opts)
# Gamma an image.
# @param opts [Hash] Set of options
# @option opts [Float] :exponent Gamma factor
# @return [Vips::Image] Output image
# @!method composite2(overlay, mode, **opts)
# Blend a pair of images with a blend mode.
# @param overlay [Vips::Image] Overlay image
# @param mode [Vips::BlendMode] VipsBlendMode to join with
# @param opts [Hash] Set of options
# @option opts [Integer] :x x position of overlay
# @option opts [Integer] :y y position of overlay
# @option opts [Vips::Interpretation] :compositing_space Composite images in this colour space
# @option opts [Boolean] :premultiplied Images have premultiplied alpha
# @return [Vips::Image] Output image
# @!method self.black(width, height, **opts)
# Make a black image.
# @param width [Integer] Image width in pixels
# @param height [Integer] Image height in pixels
# @param opts [Hash] Set of options
# @option opts [Integer] :bands Number of bands in image
# @return [Vips::Image] Output image
# @!method self.gaussnoise(width, height, **opts)
# Make a gaussnoise image.
# @param width [Integer] Image width in pixels
# @param height [Integer] Image height in pixels
# @param opts [Hash] Set of options
# @option opts [Float] :sigma Standard deviation of pixels in generated image
# @option opts [Float] :mean Mean of pixels in generated image
# @option opts [Integer] :seed Random number seed
# @return [Vips::Image] Output image
# @!method self.xyz(width, height, **opts)
# Make an image where pixel values are coordinates.
# @param width [Integer] Image width in pixels
# @param height [Integer] Image height in pixels
# @param opts [Hash] Set of options
# @option opts [Integer] :csize Size of third dimension
# @option opts [Integer] :dsize Size of fourth dimension
# @option opts [Integer] :esize Size of fifth dimension
# @return [Vips::Image] Output image
# @!method self.gaussmat(sigma, min_ampl, **opts)
# Make a gaussian image.
# @param sigma [Float] Sigma of Gaussian
# @param min_ampl [Float] Minimum amplitude of Gaussian
# @param opts [Hash] Set of options
# @option opts [Boolean] :separable Generate separable Gaussian
# @option opts [Vips::Precision] :precision Generate with this precision
# @return [Vips::Image] Output image
# @!method self.logmat(sigma, min_ampl, **opts)
# Make a laplacian of gaussian image.
# @param sigma [Float] Radius of Logmatian
# @param min_ampl [Float] Minimum amplitude of Logmatian
# @param opts [Hash] Set of options
# @option opts [Boolean] :separable Generate separable Logmatian
# @option opts [Vips::Precision] :precision Generate with this precision
# @return [Vips::Image] Output image
# @!method self.text(text, **opts)
# Make a text image.
# @param text [String] Text to render
# @param opts [Hash] Set of options
# @option opts [String] :font Font to render with
# @option opts [Integer] :width Maximum image width in pixels
# @option opts [Integer] :height Maximum image height in pixels
# @option opts [Vips::Align] :align Align on the low, centre or high edge
# @option opts [Boolean] :rgba Enable RGBA output
# @option opts [Integer] :dpi DPI to render at
# @option opts [Boolean] :justify Justify lines
# @option opts [Integer] :spacing Line spacing
# @option opts [String] :fontfile Load this font file
# @option opts [Integer] :autofit_dpi Output DPI selected by autofit
# @return [Vips::Image, Hash<Symbol => Object>] Output image, Hash of optional output items
# @!method self.eye(width, height, **opts)
# Make an image showing the eye's spatial response.
# @param width [Integer] Image width in pixels
# @param height [Integer] Image height in pixels
# @param opts [Hash] Set of options
# @option opts [Boolean] :uchar Output an unsigned char image
# @option opts [Float] :factor Maximum spatial frequency
# @return [Vips::Image] Output image
# @!method self.grey(width, height, **opts)
# Make a grey ramp image.
# @param width [Integer] Image width in pixels
# @param height [Integer] Image height in pixels
# @param opts [Hash] Set of options
# @option opts [Boolean] :uchar Output an unsigned char image
# @return [Vips::Image] Output image
# @!method self.zone(width, height, **opts)
# Make a zone plate.
# @param width [Integer] Image width in pixels
# @param height [Integer] Image height in pixels
# @param opts [Hash] Set of options
# @option opts [Boolean] :uchar Output an unsigned char image
# @return [Vips::Image] Output image
# @!method self.sines(width, height, **opts)
# Make a 2d sine wave.
# @param width [Integer] Image width in pixels
# @param height [Integer] Image height in pixels
# @param opts [Hash] Set of options
# @option opts [Boolean] :uchar Output an unsigned char image
# @option opts [Float] :hfreq Horizontal spatial frequency
# @option opts [Float] :vfreq Vertical spatial frequency
# @return [Vips::Image] Output image
# @!method self.mask_ideal(width, height, frequency_cutoff, **opts)
# Make an ideal filter.
# @param width [Integer] Image width in pixels
# @param height [Integer] Image height in pixels
# @param frequency_cutoff [Float] Frequency cutoff
# @param opts [Hash] Set of options
# @option opts [Boolean] :uchar Output an unsigned char image
# @option opts [Boolean] :nodc Remove DC component
# @option opts [Boolean] :reject Invert the sense of the filter
# @option opts [Boolean] :optical Rotate quadrants to optical space
# @return [Vips::Image] Output image
# @!method self.mask_ideal_ring(width, height, frequency_cutoff, ringwidth, **opts)
# Make an ideal ring filter.
# @param width [Integer] Image width in pixels
# @param height [Integer] Image height in pixels
# @param frequency_cutoff [Float] Frequency cutoff
# @param ringwidth [Float] Ringwidth
# @param opts [Hash] Set of options
# @option opts [Boolean] :uchar Output an unsigned char image
# @option opts [Boolean] :nodc Remove DC component
# @option opts [Boolean] :reject Invert the sense of the filter
# @option opts [Boolean] :optical Rotate quadrants to optical space
# @return [Vips::Image] Output image
# @!method self.mask_ideal_band(width, height, frequency_cutoff_x, frequency_cutoff_y, radius, **opts)
# Make an ideal band filter.
# @param width [Integer] Image width in pixels
# @param height [Integer] Image height in pixels
# @param frequency_cutoff_x [Float] Frequency cutoff x
# @param frequency_cutoff_y [Float] Frequency cutoff y
# @param radius [Float] radius of circle
# @param opts [Hash] Set of options
# @option opts [Boolean] :uchar Output an unsigned char image
# @option opts [Boolean] :nodc Remove DC component
# @option opts [Boolean] :reject Invert the sense of the filter
# @option opts [Boolean] :optical Rotate quadrants to optical space
# @return [Vips::Image] Output image
# @!method self.mask_butterworth(width, height, order, frequency_cutoff, amplitude_cutoff, **opts)
# Make a butterworth filter.
# @param width [Integer] Image width in pixels
# @param height [Integer] Image height in pixels
# @param order [Float] Filter order
# @param frequency_cutoff [Float] Frequency cutoff
# @param amplitude_cutoff [Float] Amplitude cutoff
# @param opts [Hash] Set of options
# @option opts [Boolean] :uchar Output an unsigned char image
# @option opts [Boolean] :nodc Remove DC component
# @option opts [Boolean] :reject Invert the sense of the filter
# @option opts [Boolean] :optical Rotate quadrants to optical space
# @return [Vips::Image] Output image
# @!method self.mask_butterworth_ring(width, height, order, frequency_cutoff, amplitude_cutoff, ringwidth, **opts)
# Make a butterworth ring filter.
# @param width [Integer] Image width in pixels
# @param height [Integer] Image height in pixels
# @param order [Float] Filter order
# @param frequency_cutoff [Float] Frequency cutoff
# @param amplitude_cutoff [Float] Amplitude cutoff
# @param ringwidth [Float] Ringwidth
# @param opts [Hash] Set of options
# @option opts [Boolean] :uchar Output an unsigned char image
# @option opts [Boolean] :nodc Remove DC component
# @option opts [Boolean] :reject Invert the sense of the filter
# @option opts [Boolean] :optical Rotate quadrants to optical space
# @return [Vips::Image] Output image
# @!method self.mask_butterworth_band(width, height, order, frequency_cutoff_x, frequency_cutoff_y, radius, amplitude_cutoff, **opts)
# Make a butterworth_band filter.
# @param width [Integer] Image width in pixels
# @param height [Integer] Image height in pixels
# @param order [Float] Filter order
# @param frequency_cutoff_x [Float] Frequency cutoff x
# @param frequency_cutoff_y [Float] Frequency cutoff y
# @param radius [Float] radius of circle
# @param amplitude_cutoff [Float] Amplitude cutoff
# @param opts [Hash] Set of options
# @option opts [Boolean] :uchar Output an unsigned char image
# @option opts [Boolean] :nodc Remove DC component
# @option opts [Boolean] :reject Invert the sense of the filter
# @option opts [Boolean] :optical Rotate quadrants to optical space
# @return [Vips::Image] Output image
# @!method self.mask_gaussian(width, height, frequency_cutoff, amplitude_cutoff, **opts)
# Make a gaussian filter.
# @param width [Integer] Image width in pixels
# @param height [Integer] Image height in pixels
# @param frequency_cutoff [Float] Frequency cutoff
# @param amplitude_cutoff [Float] Amplitude cutoff
# @param opts [Hash] Set of options
# @option opts [Boolean] :uchar Output an unsigned char image
# @option opts [Boolean] :nodc Remove DC component
# @option opts [Boolean] :reject Invert the sense of the filter
# @option opts [Boolean] :optical Rotate quadrants to optical space
# @return [Vips::Image] Output image
# @!method self.mask_gaussian_ring(width, height, frequency_cutoff, amplitude_cutoff, ringwidth, **opts)
# Make a gaussian ring filter.
# @param width [Integer] Image width in pixels
# @param height [Integer] Image height in pixels
# @param frequency_cutoff [Float] Frequency cutoff
# @param amplitude_cutoff [Float] Amplitude cutoff
# @param ringwidth [Float] Ringwidth
# @param opts [Hash] Set of options
# @option opts [Boolean] :uchar Output an unsigned char image
# @option opts [Boolean] :nodc Remove DC component
# @option opts [Boolean] :reject Invert the sense of the filter
# @option opts [Boolean] :optical Rotate quadrants to optical space
# @return [Vips::Image] Output image
# @!method self.mask_gaussian_band(width, height, frequency_cutoff_x, frequency_cutoff_y, radius, amplitude_cutoff, **opts)
# Make a gaussian filter.
# @param width [Integer] Image width in pixels
# @param height [Integer] Image height in pixels
# @param frequency_cutoff_x [Float] Frequency cutoff x
# @param frequency_cutoff_y [Float] Frequency cutoff y
# @param radius [Float] radius of circle
# @param amplitude_cutoff [Float] Amplitude cutoff
# @param opts [Hash] Set of options
# @option opts [Boolean] :uchar Output an unsigned char image
# @option opts [Boolean] :nodc Remove DC component
# @option opts [Boolean] :reject Invert the sense of the filter
# @option opts [Boolean] :optical Rotate quadrants to optical space
# @return [Vips::Image] Output image
# @!method self.mask_fractal(width, height, fractal_dimension, **opts)
# Make fractal filter.
# @param width [Integer] Image width in pixels
# @param height [Integer] Image height in pixels
# @param fractal_dimension [Float] Fractal dimension
# @param opts [Hash] Set of options
# @option opts [Boolean] :uchar Output an unsigned char image
# @option opts [Boolean] :nodc Remove DC component
# @option opts [Boolean] :reject Invert the sense of the filter
# @option opts [Boolean] :optical Rotate quadrants to optical space
# @return [Vips::Image] Output image
# @!method buildlut(**opts)
# Build a look-up table.
# @param opts [Hash] Set of options
# @return [Vips::Image] Output image
# @!method invertlut(**opts)
# Build an inverted look-up table.
# @param opts [Hash] Set of options
# @option opts [Integer] :size LUT size to generate
# @return [Vips::Image] Output image
# @!method self.tonelut(**opts)
# Build a look-up table.
# @param opts [Hash] Set of options
# @option opts [Integer] :in_max Size of LUT to build
# @option opts [Integer] :out_max Maximum value in output LUT
# @option opts [Float] :Lb Lowest value in output
# @option opts [Float] :Lw Highest value in output
# @option opts [Float] :Ps Position of shadow
# @option opts [Float] :Pm Position of mid-tones
# @option opts [Float] :Ph Position of highlights
# @option opts [Float] :S Adjust shadows by this much
# @option opts [Float] :M Adjust mid-tones by this much
# @option opts [Float] :H Adjust highlights by this much
# @return [Vips::Image] Output image
# @!method self.identity(**opts)
# Make a 1d image where pixel values are indexes.
# @param opts [Hash] Set of options
# @option opts [Integer] :bands Number of bands in LUT
# @option opts [Boolean] :ushort Create a 16-bit LUT
# @option opts [Integer] :size Size of 16-bit LUT
# @return [Vips::Image] Output image
# @!method self.fractsurf(width, height, fractal_dimension, **opts)
# Make a fractal surface.
# @param width [Integer] Image width in pixels
# @param height [Integer] Image height in pixels
# @param fractal_dimension [Float] Fractal dimension
# @param opts [Hash] Set of options
# @return [Vips::Image] Output image
# @!method self.worley(width, height, **opts)
# Make a worley noise image.
# @param width [Integer] Image width in pixels
# @param height [Integer] Image height in pixels
# @param opts [Hash] Set of options
# @option opts [Integer] :cell_size Size of Worley cells
# @option opts [Integer] :seed Random number seed
# @return [Vips::Image] Output image
# @!method self.perlin(width, height, **opts)
# Make a perlin noise image.
# @param width [Integer] Image width in pixels
# @param height [Integer] Image height in pixels
# @param opts [Hash] Set of options
# @option opts [Integer] :cell_size Size of Perlin cells
# @option opts [Boolean] :uchar Output an unsigned char image
# @option opts [Integer] :seed Random number seed
# @return [Vips::Image] Output image
# @!method self.switch(tests, **opts)
# Find the index of the first non-zero pixel in tests.
# @param tests [Array<Image>] Table of images to test
# @param opts [Hash] Set of options
# @return [Vips::Image] Output image
# @!method self.csvload(filename, **opts)
# Load csv.
# @param filename [String] Filename to load from
# @param opts [Hash] Set of options
# @option opts [Integer] :skip Skip this many lines at the start of the file
# @option opts [Integer] :lines Read this many lines from the file
# @option opts [String] :whitespace Set of whitespace characters
# @option opts [String] :separator Set of separator characters
# @option opts [Boolean] :memory Force open via memory
# @option opts [Vips::Access] :access Required access pattern for this file
# @option opts [Vips::FailOn] :fail_on Error level to fail on
# @option opts [Vips::ForeignFlags] :flags Output Flags for this file
# @return [Vips::Image, Hash<Symbol => Object>] Output image, Hash of optional output items
# @!method self.csvload_source(source, **opts)
# Load csv.
# @param source [Vips::Source] Source to load from
# @param opts [Hash] Set of options
# @option opts [Integer] :skip Skip this many lines at the start of the file
# @option opts [Integer] :lines Read this many lines from the file
# @option opts [String] :whitespace Set of whitespace characters
# @option opts [String] :separator Set of separator characters
# @option opts [Boolean] :memory Force open via memory
# @option opts [Vips::Access] :access Required access pattern for this file
# @option opts [Vips::FailOn] :fail_on Error level to fail on
# @option opts [Vips::ForeignFlags] :flags Output Flags for this file
# @return [Vips::Image, Hash<Symbol => Object>] Output image, Hash of optional output items
# @!method self.matrixload(filename, **opts)
# Load matrix.
# @param filename [String] Filename to load from
# @param opts [Hash] Set of options
# @option opts [Boolean] :memory Force open via memory
# @option opts [Vips::Access] :access Required access pattern for this file
# @option opts [Vips::FailOn] :fail_on Error level to fail on
# @option opts [Vips::ForeignFlags] :flags Output Flags for this file
# @return [Vips::Image, Hash<Symbol => Object>] Output image, Hash of optional output items
# @!method self.matrixload_source(source, **opts)
# Load matrix.
# @param source [Vips::Source] Source to load from
# @param opts [Hash] Set of options
# @option opts [Boolean] :memory Force open via memory
# @option opts [Vips::Access] :access Required access pattern for this file
# @option opts [Vips::FailOn] :fail_on Error level to fail on
# @option opts [Vips::ForeignFlags] :flags Output Flags for this file
# @return [Vips::Image, Hash<Symbol => Object>] Output image, Hash of optional output items
# @!method self.rawload(filename, width, height, bands, **opts)
# Load raw data from a file.
# @param filename [String] Filename to load from
# @param width [Integer] Image width in pixels
# @param height [Integer] Image height in pixels
# @param bands [Integer] Number of bands in image
# @param opts [Hash] Set of options
# @option opts [guint64] :offset Offset in bytes from start of file
# @option opts [Vips::BandFormat] :format Pixel format in image
# @option opts [Vips::Interpretation] :interpretation Pixel interpretation
# @option opts [Boolean] :memory Force open via memory
# @option opts [Vips::Access] :access Required access pattern for this file
# @option opts [Vips::FailOn] :fail_on Error level to fail on
# @option opts [Vips::ForeignFlags] :flags Output Flags for this file
# @return [Vips::Image, Hash<Symbol => Object>] Output image, Hash of optional output items
# @!method self.vipsload(filename, **opts)
# Load vips from file.
# @param filename [String] Filename to load from
# @param opts [Hash] Set of options
# @option opts [Boolean] :memory Force open via memory
# @option opts [Vips::Access] :access Required access pattern for this file
# @option opts [Vips::FailOn] :fail_on Error level to fail on
# @option opts [Vips::ForeignFlags] :flags Output Flags for this file
# @return [Vips::Image, Hash<Symbol => Object>] Output image, Hash of optional output items
# @!method self.vipsload_source(source, **opts)
# Load vips from source.
# @param source [Vips::Source] Source to load from
# @param opts [Hash] Set of options
# @option opts [Boolean] :memory Force open via memory
# @option opts [Vips::Access] :access Required access pattern for this file
# @option opts [Vips::FailOn] :fail_on Error level to fail on
# @option opts [Vips::ForeignFlags] :flags Output Flags for this file
# @return [Vips::Image, Hash<Symbol => Object>] Output image, Hash of optional output items
# @!method self.analyzeload(filename, **opts)
# Load an analyze6 image.
# @param filename [String] Filename to load from
# @param opts [Hash] Set of options
# @option opts [Boolean] :memory Force open via memory
# @option opts [Vips::Access] :access Required access pattern for this file
# @option opts [Vips::FailOn] :fail_on Error level to fail on
# @option opts [Vips::ForeignFlags] :flags Output Flags for this file
# @return [Vips::Image, Hash<Symbol => Object>] Output image, Hash of optional output items
# @!method self.ppmload(filename, **opts)
# Load ppm from file.
# @param filename [String] Filename to load from
# @param opts [Hash] Set of options
# @option opts [Boolean] :memory Force open via memory
# @option opts [Vips::Access] :access Required access pattern for this file
# @option opts [Vips::FailOn] :fail_on Error level to fail on
# @option opts [Vips::ForeignFlags] :flags Output Flags for this file
# @return [Vips::Image, Hash<Symbol => Object>] Output image, Hash of optional output items
# @!method self.ppmload_source(source, **opts)
# Load ppm base class.
# @param source [Vips::Source] Source to load from
# @param opts [Hash] Set of options
# @option opts [Boolean] :memory Force open via memory
# @option opts [Vips::Access] :access Required access pattern for this file
# @option opts [Vips::FailOn] :fail_on Error level to fail on
# @option opts [Vips::ForeignFlags] :flags Output Flags for this file
# @return [Vips::Image, Hash<Symbol => Object>] Output image, Hash of optional output items
# @!method self.radload(filename, **opts)
# Load a radiance image from a file.
# @param filename [String] Filename to load from
# @param opts [Hash] Set of options
# @option opts [Boolean] :memory Force open via memory
# @option opts [Vips::Access] :access Required access pattern for this file
# @option opts [Vips::FailOn] :fail_on Error level to fail on
# @option opts [Vips::ForeignFlags] :flags Output Flags for this file
# @return [Vips::Image, Hash<Symbol => Object>] Output image, Hash of optional output items
# @!method self.radload_buffer(buffer, **opts)
# Load rad from buffer.
# @param buffer [VipsBlob] Buffer to load from
# @param opts [Hash] Set of options
# @option opts [Boolean] :memory Force open via memory
# @option opts [Vips::Access] :access Required access pattern for this file
# @option opts [Vips::FailOn] :fail_on Error level to fail on
# @option opts [Vips::ForeignFlags] :flags Output Flags for this file
# @return [Vips::Image, Hash<Symbol => Object>] Output image, Hash of optional output items
# @!method self.radload_source(source, **opts)
# Load rad from source.
# @param source [Vips::Source] Source to load from
# @param opts [Hash] Set of options
# @option opts [Boolean] :memory Force open via memory
# @option opts [Vips::Access] :access Required access pattern for this file
# @option opts [Vips::FailOn] :fail_on Error level to fail on
# @option opts [Vips::ForeignFlags] :flags Output Flags for this file
# @return [Vips::Image, Hash<Symbol => Object>] Output image, Hash of optional output items
# @!method self.pdfload(filename, **opts)
# Load pdf from file.
# @param filename [String] Filename to load from
# @param opts [Hash] Set of options
# @option opts [Integer] :page Load this page from the file
# @option opts [Integer] :n Load this many pages
# @option opts [Float] :dpi Render at this DPI
# @option opts [Float] :scale Scale output by this factor
# @option opts [Array<Double>] :background Background value
# @option opts [Boolean] :memory Force open via memory
# @option opts [Vips::Access] :access Required access pattern for this file
# @option opts [Vips::FailOn] :fail_on Error level to fail on
# @option opts [Vips::ForeignFlags] :flags Output Flags for this file
# @return [Vips::Image, Hash<Symbol => Object>] Output image, Hash of optional output items
# @!method self.pdfload_buffer(buffer, **opts)
# Load pdf from buffer.
# @param buffer [VipsBlob] Buffer to load from
# @param opts [Hash] Set of options
# @option opts [Integer] :page Load this page from the file
# @option opts [Integer] :n Load this many pages
# @option opts [Float] :dpi Render at this DPI
# @option opts [Float] :scale Scale output by this factor
# @option opts [Array<Double>] :background Background value
# @option opts [Boolean] :memory Force open via memory
# @option opts [Vips::Access] :access Required access pattern for this file
# @option opts [Vips::FailOn] :fail_on Error level to fail on
# @option opts [Vips::ForeignFlags] :flags Output Flags for this file
# @return [Vips::Image, Hash<Symbol => Object>] Output image, Hash of optional output items
# @!method self.pdfload_source(source, **opts)
# Load pdf from source.
# @param source [Vips::Source] Source to load from
# @param opts [Hash] Set of options
# @option opts [Integer] :page Load this page from the file
# @option opts [Integer] :n Load this many pages
# @option opts [Float] :dpi Render at this DPI
# @option opts [Float] :scale Scale output by this factor
# @option opts [Array<Double>] :background Background value
# @option opts [Boolean] :memory Force open via memory
# @option opts [Vips::Access] :access Required access pattern for this file
# @option opts [Vips::FailOn] :fail_on Error level to fail on
# @option opts [Vips::ForeignFlags] :flags Output Flags for this file
# @return [Vips::Image, Hash<Symbol => Object>] Output image, Hash of optional output items
# @!method self.svgload(filename, **opts)
# Load svg with rsvg.
# @param filename [String] Filename to load from
# @param opts [Hash] Set of options
# @option opts [Float] :dpi Render at this DPI
# @option opts [Float] :scale Scale output by this factor
# @option opts [Boolean] :unlimited Allow SVG of any size
# @option opts [Boolean] :memory Force open via memory
# @option opts [Vips::Access] :access Required access pattern for this file
# @option opts [Vips::FailOn] :fail_on Error level to fail on
# @option opts [Vips::ForeignFlags] :flags Output Flags for this file
# @return [Vips::Image, Hash<Symbol => Object>] Output image, Hash of optional output items
# @!method self.svgload_buffer(buffer, **opts)
# Load svg with rsvg.
# @param buffer [VipsBlob] Buffer to load from
# @param opts [Hash] Set of options
# @option opts [Float] :dpi Render at this DPI
# @option opts [Float] :scale Scale output by this factor
# @option opts [Boolean] :unlimited Allow SVG of any size
# @option opts [Boolean] :memory Force open via memory
# @option opts [Vips::Access] :access Required access pattern for this file
# @option opts [Vips::FailOn] :fail_on Error level to fail on
# @option opts [Vips::ForeignFlags] :flags Output Flags for this file
# @return [Vips::Image, Hash<Symbol => Object>] Output image, Hash of optional output items
# @!method self.svgload_source(source, **opts)
# Load svg from source.
# @param source [Vips::Source] Source to load from
# @param opts [Hash] Set of options
# @option opts [Float] :dpi Render at this DPI
# @option opts [Float] :scale Scale output by this factor
# @option opts [Boolean] :unlimited Allow SVG of any size
# @option opts [Boolean] :memory Force open via memory
# @option opts [Vips::Access] :access Required access pattern for this file
# @option opts [Vips::FailOn] :fail_on Error level to fail on
# @option opts [Vips::ForeignFlags] :flags Output Flags for this file
# @return [Vips::Image, Hash<Symbol => Object>] Output image, Hash of optional output items
# @!method self.jxlload(filename, **opts)
# Load jpeg-xl image.
# @param filename [String] Filename to load from
# @param opts [Hash] Set of options
# @option opts [Boolean] :memory Force open via memory
# @option opts [Vips::Access] :access Required access pattern for this file
# @option opts [Vips::FailOn] :fail_on Error level to fail on
# @option opts [Vips::ForeignFlags] :flags Output Flags for this file
# @return [Vips::Image, Hash<Symbol => Object>] Output image, Hash of optional output items
# @!method self.jxlload_buffer(buffer, **opts)
# Load jpeg-xl image.
# @param buffer [VipsBlob] Buffer to load from
# @param opts [Hash] Set of options
# @option opts [Boolean] :memory Force open via memory
# @option opts [Vips::Access] :access Required access pattern for this file
# @option opts [Vips::FailOn] :fail_on Error level to fail on
# @option opts [Vips::ForeignFlags] :flags Output Flags for this file
# @return [Vips::Image, Hash<Symbol => Object>] Output image, Hash of optional output items
# @!method self.jxlload_source(source, **opts)
# Load jpeg-xl image.
# @param source [Vips::Source] Source to load from
# @param opts [Hash] Set of options
# @option opts [Boolean] :memory Force open via memory
# @option opts [Vips::Access] :access Required access pattern for this file
# @option opts [Vips::FailOn] :fail_on Error level to fail on
# @option opts [Vips::ForeignFlags] :flags Output Flags for this file
# @return [Vips::Image, Hash<Symbol => Object>] Output image, Hash of optional output items
# @!method self.jp2kload(filename, **opts)
# Load jpeg2000 image.
# @param filename [String] Filename to load from
# @param opts [Hash] Set of options
# @option opts [Integer] :page Load this page from the image
# @option opts [Boolean] :memory Force open via memory
# @option opts [Vips::Access] :access Required access pattern for this file
# @option opts [Vips::FailOn] :fail_on Error level to fail on
# @option opts [Vips::ForeignFlags] :flags Output Flags for this file
# @return [Vips::Image, Hash<Symbol => Object>] Output image, Hash of optional output items
# @!method self.jp2kload_buffer(buffer, **opts)
# Load jpeg2000 image.
# @param buffer [VipsBlob] Buffer to load from
# @param opts [Hash] Set of options
# @option opts [Integer] :page Load this page from the image
# @option opts [Boolean] :memory Force open via memory
# @option opts [Vips::Access] :access Required access pattern for this file
# @option opts [Vips::FailOn] :fail_on Error level to fail on
# @option opts [Vips::ForeignFlags] :flags Output Flags for this file
# @return [Vips::Image, Hash<Symbol => Object>] Output image, Hash of optional output items
# @!method self.jp2kload_source(source, **opts)
# Load jpeg2000 image.
# @param source [Vips::Source] Source to load from
# @param opts [Hash] Set of options
# @option opts [Integer] :page Load this page from the image
# @option opts [Boolean] :memory Force open via memory
# @option opts [Vips::Access] :access Required access pattern for this file
# @option opts [Vips::FailOn] :fail_on Error level to fail on
# @option opts [Vips::ForeignFlags] :flags Output Flags for this file
# @return [Vips::Image, Hash<Symbol => Object>] Output image, Hash of optional output items
# @!method self.gifload(filename, **opts)
# Load gif with libnsgif.
# @param filename [String] Filename to load from
# @param opts [Hash] Set of options
# @option opts [Integer] :n Load this many pages
# @option opts [Integer] :page Load this page from the file
# @option opts [Boolean] :memory Force open via memory
# @option opts [Vips::Access] :access Required access pattern for this file
# @option opts [Vips::FailOn] :fail_on Error level to fail on
# @option opts [Vips::ForeignFlags] :flags Output Flags for this file
# @return [Vips::Image, Hash<Symbol => Object>] Output image, Hash of optional output items
# @!method self.gifload_buffer(buffer, **opts)
# Load gif with libnsgif.
# @param buffer [VipsBlob] Buffer to load from
# @param opts [Hash] Set of options
# @option opts [Integer] :n Load this many pages
# @option opts [Integer] :page Load this page from the file
# @option opts [Boolean] :memory Force open via memory
# @option opts [Vips::Access] :access Required access pattern for this file
# @option opts [Vips::FailOn] :fail_on Error level to fail on
# @option opts [Vips::ForeignFlags] :flags Output Flags for this file
# @return [Vips::Image, Hash<Symbol => Object>] Output image, Hash of optional output items
# @!method self.gifload_source(source, **opts)
# Load gif from source.
# @param source [Vips::Source] Source to load from
# @param opts [Hash] Set of options
# @option opts [Integer] :n Load this many pages
# @option opts [Integer] :page Load this page from the file
# @option opts [Boolean] :memory Force open via memory
# @option opts [Vips::Access] :access Required access pattern for this file
# @option opts [Vips::FailOn] :fail_on Error level to fail on
# @option opts [Vips::ForeignFlags] :flags Output Flags for this file
# @return [Vips::Image, Hash<Symbol => Object>] Output image, Hash of optional output items
# @!method self.pngload(filename, **opts)
# Load png from file.
# @param filename [String] Filename to load from
# @param opts [Hash] Set of options
# @option opts [Boolean] :unlimited Remove all denial of service limits
# @option opts [Boolean] :memory Force open via memory
# @option opts [Vips::Access] :access Required access pattern for this file
# @option opts [Vips::FailOn] :fail_on Error level to fail on
# @option opts [Vips::ForeignFlags] :flags Output Flags for this file
# @return [Vips::Image, Hash<Symbol => Object>] Output image, Hash of optional output items
# @!method self.pngload_buffer(buffer, **opts)
# Load png from buffer.
# @param buffer [VipsBlob] Buffer to load from
# @param opts [Hash] Set of options
# @option opts [Boolean] :unlimited Remove all denial of service limits
# @option opts [Boolean] :memory Force open via memory
# @option opts [Vips::Access] :access Required access pattern for this file
# @option opts [Vips::FailOn] :fail_on Error level to fail on
# @option opts [Vips::ForeignFlags] :flags Output Flags for this file
# @return [Vips::Image, Hash<Symbol => Object>] Output image, Hash of optional output items
# @!method self.pngload_source(source, **opts)
# Load png from source.
# @param source [Vips::Source] Source to load from
# @param opts [Hash] Set of options
# @option opts [Boolean] :unlimited Remove all denial of service limits
# @option opts [Boolean] :memory Force open via memory
# @option opts [Vips::Access] :access Required access pattern for this file
# @option opts [Vips::FailOn] :fail_on Error level to fail on
# @option opts [Vips::ForeignFlags] :flags Output Flags for this file
# @return [Vips::Image, Hash<Symbol => Object>] Output image, Hash of optional output items
# @!method self.matload(filename, **opts)
# Load mat from file.
# @param filename [String] Filename to load from
# @param opts [Hash] Set of options
# @option opts [Boolean] :memory Force open via memory
# @option opts [Vips::Access] :access Required access pattern for this file
# @option opts [Vips::FailOn] :fail_on Error level to fail on
# @option opts [Vips::ForeignFlags] :flags Output Flags for this file
# @return [Vips::Image, Hash<Symbol => Object>] Output image, Hash of optional output items
# @!method self.jpegload(filename, **opts)
# Load jpeg from file.
# @param filename [String] Filename to load from
# @param opts [Hash] Set of options
# @option opts [Integer] :shrink Shrink factor on load
# @option opts [Boolean] :autorotate Rotate image using exif orientation
# @option opts [Boolean] :memory Force open via memory
# @option opts [Vips::Access] :access Required access pattern for this file
# @option opts [Vips::FailOn] :fail_on Error level to fail on
# @option opts [Vips::ForeignFlags] :flags Output Flags for this file
# @return [Vips::Image, Hash<Symbol => Object>] Output image, Hash of optional output items
# @!method self.jpegload_buffer(buffer, **opts)
# Load jpeg from buffer.
# @param buffer [VipsBlob] Buffer to load from
# @param opts [Hash] Set of options
# @option opts [Integer] :shrink Shrink factor on load
# @option opts [Boolean] :autorotate Rotate image using exif orientation
# @option opts [Boolean] :memory Force open via memory
# @option opts [Vips::Access] :access Required access pattern for this file
# @option opts [Vips::FailOn] :fail_on Error level to fail on
# @option opts [Vips::ForeignFlags] :flags Output Flags for this file
# @return [Vips::Image, Hash<Symbol => Object>] Output image, Hash of optional output items
# @!method self.jpegload_source(source, **opts)
# Load image from jpeg source.
# @param source [Vips::Source] Source to load from
# @param opts [Hash] Set of options
# @option opts [Integer] :shrink Shrink factor on load
# @option opts [Boolean] :autorotate Rotate image using exif orientation
# @option opts [Boolean] :memory Force open via memory
# @option opts [Vips::Access] :access Required access pattern for this file
# @option opts [Vips::FailOn] :fail_on Error level to fail on
# @option opts [Vips::ForeignFlags] :flags Output Flags for this file
# @return [Vips::Image, Hash<Symbol => Object>] Output image, Hash of optional output items
# @!method self.webpload(filename, **opts)
# Load webp from file.
# @param filename [String] Filename to load from
# @param opts [Hash] Set of options
# @option opts [Integer] :page Load this page from the file
# @option opts [Integer] :n Load this many pages
# @option opts [Float] :scale Scale factor on load
# @option opts [Boolean] :memory Force open via memory
# @option opts [Vips::Access] :access Required access pattern for this file
# @option opts [Vips::FailOn] :fail_on Error level to fail on
# @option opts [Vips::ForeignFlags] :flags Output Flags for this file
# @return [Vips::Image, Hash<Symbol => Object>] Output image, Hash of optional output items
# @!method self.webpload_buffer(buffer, **opts)
# Load webp from buffer.
# @param buffer [VipsBlob] Buffer to load from
# @param opts [Hash] Set of options
# @option opts [Integer] :page Load this page from the file
# @option opts [Integer] :n Load this many pages
# @option opts [Float] :scale Scale factor on load
# @option opts [Boolean] :memory Force open via memory
# @option opts [Vips::Access] :access Required access pattern for this file
# @option opts [Vips::FailOn] :fail_on Error level to fail on
# @option opts [Vips::ForeignFlags] :flags Output Flags for this file
# @return [Vips::Image, Hash<Symbol => Object>] Output image, Hash of optional output items
# @!method self.webpload_source(source, **opts)
# Load webp from source.
# @param source [Vips::Source] Source to load from
# @param opts [Hash] Set of options
# @option opts [Integer] :page Load this page from the file
# @option opts [Integer] :n Load this many pages
# @option opts [Float] :scale Scale factor on load
# @option opts [Boolean] :memory Force open via memory
# @option opts [Vips::Access] :access Required access pattern for this file
# @option opts [Vips::FailOn] :fail_on Error level to fail on
# @option opts [Vips::ForeignFlags] :flags Output Flags for this file
# @return [Vips::Image, Hash<Symbol => Object>] Output image, Hash of optional output items
# @!method self.tiffload(filename, **opts)
# Load tiff from file.
# @param filename [String] Filename to load from
# @param opts [Hash] Set of options
# @option opts [Integer] :page Load this page from the image
# @option opts [Integer] :subifd Select subifd index
# @option opts [Integer] :n Load this many pages
# @option opts [Boolean] :autorotate Rotate image using orientation tag
# @option opts [Boolean] :memory Force open via memory
# @option opts [Vips::Access] :access Required access pattern for this file
# @option opts [Vips::FailOn] :fail_on Error level to fail on
# @option opts [Vips::ForeignFlags] :flags Output Flags for this file
# @return [Vips::Image, Hash<Symbol => Object>] Output image, Hash of optional output items
# @!method self.tiffload_buffer(buffer, **opts)
# Load tiff from buffer.
# @param buffer [VipsBlob] Buffer to load from
# @param opts [Hash] Set of options
# @option opts [Integer] :page Load this page from the image
# @option opts [Integer] :subifd Select subifd index
# @option opts [Integer] :n Load this many pages
# @option opts [Boolean] :autorotate Rotate image using orientation tag
# @option opts [Boolean] :memory Force open via memory
# @option opts [Vips::Access] :access Required access pattern for this file
# @option opts [Vips::FailOn] :fail_on Error level to fail on
# @option opts [Vips::ForeignFlags] :flags Output Flags for this file
# @return [Vips::Image, Hash<Symbol => Object>] Output image, Hash of optional output items
# @!method self.tiffload_source(source, **opts)
# Load tiff from source.
# @param source [Vips::Source] Source to load from
# @param opts [Hash] Set of options
# @option opts [Integer] :page Load this page from the image
# @option opts [Integer] :subifd Select subifd index
# @option opts [Integer] :n Load this many pages
# @option opts [Boolean] :autorotate Rotate image using orientation tag
# @option opts [Boolean] :memory Force open via memory
# @option opts [Vips::Access] :access Required access pattern for this file
# @option opts [Vips::FailOn] :fail_on Error level to fail on
# @option opts [Vips::ForeignFlags] :flags Output Flags for this file
# @return [Vips::Image, Hash<Symbol => Object>] Output image, Hash of optional output items
# @!method self.openslideload(filename, **opts)
# Load file with openslide.
# @param filename [String] Filename to load from
# @param opts [Hash] Set of options
# @option opts [Boolean] :attach_associated Attach all associated images
# @option opts [Integer] :level Load this level from the file
# @option opts [Boolean] :autocrop Crop to image bounds
# @option opts [String] :associated Load this associated image
# @option opts [Boolean] :memory Force open via memory
# @option opts [Vips::Access] :access Required access pattern for this file
# @option opts [Vips::FailOn] :fail_on Error level to fail on
# @option opts [Vips::ForeignFlags] :flags Output Flags for this file
# @return [Vips::Image, Hash<Symbol => Object>] Output image, Hash of optional output items
# @!method self.openslideload_source(source, **opts)
# Load source with openslide.
# @param source [Vips::Source] Source to load from
# @param opts [Hash] Set of options
# @option opts [Boolean] :attach_associated Attach all associated images
# @option opts [Integer] :level Load this level from the file
# @option opts [Boolean] :autocrop Crop to image bounds
# @option opts [String] :associated Load this associated image
# @option opts [Boolean] :memory Force open via memory
# @option opts [Vips::Access] :access Required access pattern for this file
# @option opts [Vips::FailOn] :fail_on Error level to fail on
# @option opts [Vips::ForeignFlags] :flags Output Flags for this file
# @return [Vips::Image, Hash<Symbol => Object>] Output image, Hash of optional output items
# @!method self.magickload(filename, **opts)
# Load file with imagemagick.
# @param filename [String] Filename to load from
# @param opts [Hash] Set of options
# @option opts [String] :density Canvas resolution for rendering vector formats like SVG
# @option opts [Integer] :page Load this page from the file
# @option opts [Integer] :n Load this many pages
# @option opts [Boolean] :memory Force open via memory
# @option opts [Vips::Access] :access Required access pattern for this file
# @option opts [Vips::FailOn] :fail_on Error level to fail on
# @option opts [Vips::ForeignFlags] :flags Output Flags for this file
# @return [Vips::Image, Hash<Symbol => Object>] Output image, Hash of optional output items
# @!method self.magickload_buffer(buffer, **opts)
# Load buffer with imagemagick.
# @param buffer [VipsBlob] Buffer to load from
# @param opts [Hash] Set of options
# @option opts [String] :density Canvas resolution for rendering vector formats like SVG
# @option opts [Integer] :page Load this page from the file
# @option opts [Integer] :n Load this many pages
# @option opts [Boolean] :memory Force open via memory
# @option opts [Vips::Access] :access Required access pattern for this file
# @option opts [Vips::FailOn] :fail_on Error level to fail on
# @option opts [Vips::ForeignFlags] :flags Output Flags for this file
# @return [Vips::Image, Hash<Symbol => Object>] Output image, Hash of optional output items
# @!method self.fitsload(filename, **opts)
# Load a fits image.
# @param filename [String] Filename to load from
# @param opts [Hash] Set of options
# @option opts [Boolean] :memory Force open via memory
# @option opts [Vips::Access] :access Required access pattern for this file
# @option opts [Vips::FailOn] :fail_on Error level to fail on
# @option opts [Vips::ForeignFlags] :flags Output Flags for this file
# @return [Vips::Image, Hash<Symbol => Object>] Output image, Hash of optional output items
# @!method self.fitsload_source(source, **opts)
# Load fits from a source.
# @param source [Vips::Source] Source to load from
# @param opts [Hash] Set of options
# @option opts [Boolean] :memory Force open via memory
# @option opts [Vips::Access] :access Required access pattern for this file
# @option opts [Vips::FailOn] :fail_on Error level to fail on
# @option opts [Vips::ForeignFlags] :flags Output Flags for this file
# @return [Vips::Image, Hash<Symbol => Object>] Output image, Hash of optional output items
# @!method self.openexrload(filename, **opts)
# Load an openexr image.
# @param filename [String] Filename to load from
# @param opts [Hash] Set of options
# @option opts [Boolean] :memory Force open via memory
# @option opts [Vips::Access] :access Required access pattern for this file
# @option opts [Vips::FailOn] :fail_on Error level to fail on
# @option opts [Vips::ForeignFlags] :flags Output Flags for this file
# @return [Vips::Image, Hash<Symbol => Object>] Output image, Hash of optional output items
# @!method self.niftiload(filename, **opts)
# Load nifti volume.
# @param filename [String] Filename to load from
# @param opts [Hash] Set of options
# @option opts [Boolean] :memory Force open via memory
# @option opts [Vips::Access] :access Required access pattern for this file
# @option opts [Vips::FailOn] :fail_on Error level to fail on
# @option opts [Vips::ForeignFlags] :flags Output Flags for this file
# @return [Vips::Image, Hash<Symbol => Object>] Output image, Hash of optional output items
# @!method self.niftiload_source(source, **opts)
# Load nifti volumes.
# @param source [Vips::Source] Source to load from
# @param opts [Hash] Set of options
# @option opts [Boolean] :memory Force open via memory
# @option opts [Vips::Access] :access Required access pattern for this file
# @option opts [Vips::FailOn] :fail_on Error level to fail on
# @option opts [Vips::ForeignFlags] :flags Output Flags for this file
# @return [Vips::Image, Hash<Symbol => Object>] Output image, Hash of optional output items
# @!method self.heifload(filename, **opts)
# Load a heif image.
# @param filename [String] Filename to load from
# @param opts [Hash] Set of options
# @option opts [Integer] :page Load this page from the file
# @option opts [Integer] :n Load this many pages
# @option opts [Boolean] :thumbnail Fetch thumbnail image
# @option opts [Boolean] :memory Force open via memory
# @option opts [Vips::Access] :access Required access pattern for this file
# @option opts [Vips::FailOn] :fail_on Error level to fail on
# @option opts [Vips::ForeignFlags] :flags Output Flags for this file
# @return [Vips::Image, Hash<Symbol => Object>] Output image, Hash of optional output items
# @!method self.heifload_buffer(buffer, **opts)
# Load a heif image.
# @param buffer [VipsBlob] Buffer to load from
# @param opts [Hash] Set of options
# @option opts [Integer] :page Load this page from the file
# @option opts [Integer] :n Load this many pages
# @option opts [Boolean] :thumbnail Fetch thumbnail image
# @option opts [Boolean] :memory Force open via memory
# @option opts [Vips::Access] :access Required access pattern for this file
# @option opts [Vips::FailOn] :fail_on Error level to fail on
# @option opts [Vips::ForeignFlags] :flags Output Flags for this file
# @return [Vips::Image, Hash<Symbol => Object>] Output image, Hash of optional output items
# @!method self.heifload_source(source, **opts)
# Load a heif image.
# @param source [Vips::Source] Source to load from
# @param opts [Hash] Set of options
# @option opts [Integer] :page Load this page from the file
# @option opts [Integer] :n Load this many pages
# @option opts [Boolean] :thumbnail Fetch thumbnail image
# @option opts [Boolean] :memory Force open via memory
# @option opts [Vips::Access] :access Required access pattern for this file
# @option opts [Vips::FailOn] :fail_on Error level to fail on
# @option opts [Vips::ForeignFlags] :flags Output Flags for this file
# @return [Vips::Image, Hash<Symbol => Object>] Output image, Hash of optional output items
# @!method csvsave(filename, **opts)
# Save image to csv.
# @param filename [String] Filename to save to
# @param opts [Hash] Set of options
# @option opts [String] :separator Separator characters
# @option opts [Boolean] :strip Strip all metadata from image
# @option opts [Array<Double>] :background Background value
# @option opts [Integer] :page_height Set page height for multipage save
# @return [nil]
# @!method csvsave_target(target, **opts)
# Save image to csv.
# @param target [Vips::Target] Target to save to
# @param opts [Hash] Set of options
# @option opts [String] :separator Separator characters
# @option opts [Boolean] :strip Strip all metadata from image
# @option opts [Array<Double>] :background Background value
# @option opts [Integer] :page_height Set page height for multipage save
# @return [nil]
# @!method matrixsave(filename, **opts)
# Save image to matrix.
# @param filename [String] Filename to save to
# @param opts [Hash] Set of options
# @option opts [Boolean] :strip Strip all metadata from image
# @option opts [Array<Double>] :background Background value
# @option opts [Integer] :page_height Set page height for multipage save
# @return [nil]
# @!method matrixsave_target(target, **opts)
# Save image to matrix.
# @param target [Vips::Target] Target to save to
# @param opts [Hash] Set of options
# @option opts [Boolean] :strip Strip all metadata from image
# @option opts [Array<Double>] :background Background value
# @option opts [Integer] :page_height Set page height for multipage save
# @return [nil]
# @!method matrixprint(**opts)
# Print matrix.
# @param opts [Hash] Set of options
# @option opts [Boolean] :strip Strip all metadata from image
# @option opts [Array<Double>] :background Background value
# @option opts [Integer] :page_height Set page height for multipage save
# @return [nil]
# @!method rawsave(filename, **opts)
# Save image to raw file.
# @param filename [String] Filename to save to
# @param opts [Hash] Set of options
# @option opts [Boolean] :strip Strip all metadata from image
# @option opts [Array<Double>] :background Background value
# @option opts [Integer] :page_height Set page height for multipage save
# @return [nil]
# @!method rawsave_fd(fd, **opts)
# Write raw image to file descriptor.
# @param fd [Integer] File descriptor to write to
# @param opts [Hash] Set of options
# @option opts [Boolean] :strip Strip all metadata from image
# @option opts [Array<Double>] :background Background value
# @option opts [Integer] :page_height Set page height for multipage save
# @return [nil]
# @!method vipssave(filename, **opts)
# Save image to file in vips format.
# @param filename [String] Filename to save to
# @param opts [Hash] Set of options
# @option opts [Boolean] :strip Strip all metadata from image
# @option opts [Array<Double>] :background Background value
# @option opts [Integer] :page_height Set page height for multipage save
# @return [nil]
# @!method vipssave_target(target, **opts)
# Save image to target in vips format.
# @param target [Vips::Target] Target to save to
# @param opts [Hash] Set of options
# @option opts [Boolean] :strip Strip all metadata from image
# @option opts [Array<Double>] :background Background value
# @option opts [Integer] :page_height Set page height for multipage save
# @return [nil]
# @!method ppmsave(filename, **opts)
# Save image to ppm file.
# @param filename [String] Filename to save to
# @param opts [Hash] Set of options
# @option opts [Vips::ForeignPpmFormat] :format Format to save in
# @option opts [Boolean] :ascii save as ascii
# @option opts [Integer] :bitdepth set to 1 to write as a 1 bit image
# @option opts [Boolean] :strip Strip all metadata from image
# @option opts [Array<Double>] :background Background value
# @option opts [Integer] :page_height Set page height for multipage save
# @return [nil]
# @!method ppmsave_target(target, **opts)
# Save to ppm.
# @param target [Vips::Target] Target to save to
# @param opts [Hash] Set of options
# @option opts [Vips::ForeignPpmFormat] :format Format to save in
# @option opts [Boolean] :ascii save as ascii
# @option opts [Integer] :bitdepth set to 1 to write as a 1 bit image
# @option opts [Boolean] :strip Strip all metadata from image
# @option opts [Array<Double>] :background Background value
# @option opts [Integer] :page_height Set page height for multipage save
# @return [nil]
# @!method radsave(filename, **opts)
# Save image to radiance file.
# @param filename [String] Filename to save to
# @param opts [Hash] Set of options
# @option opts [Boolean] :strip Strip all metadata from image
# @option opts [Array<Double>] :background Background value
# @option opts [Integer] :page_height Set page height for multipage save
# @return [nil]
# @!method radsave_buffer(**opts)
# Save image to radiance buffer.
# @param opts [Hash] Set of options
# @option opts [Boolean] :strip Strip all metadata from image
# @option opts [Array<Double>] :background Background value
# @option opts [Integer] :page_height Set page height for multipage save
# @return [VipsBlob] Buffer to save to
# @!method radsave_target(target, **opts)
# Save image to radiance target.
# @param target [Vips::Target] Target to save to
# @param opts [Hash] Set of options
# @option opts [Boolean] :strip Strip all metadata from image
# @option opts [Array<Double>] :background Background value
# @option opts [Integer] :page_height Set page height for multipage save
# @return [nil]
# @!method jxlsave(filename, **opts)
# Save image in jpeg-xl format.
# @param filename [String] Filename to load from
# @param opts [Hash] Set of options
# @option opts [Integer] :tier Decode speed tier
# @option opts [Float] :distance Target butteraugli distance
# @option opts [Integer] :effort Encoding effort
# @option opts [Boolean] :lossless Enable lossless compression
# @option opts [Integer] :Q Quality factor
# @option opts [Boolean] :strip Strip all metadata from image
# @option opts [Array<Double>] :background Background value
# @option opts [Integer] :page_height Set page height for multipage save
# @return [nil]
# @!method jxlsave_buffer(**opts)
# Save image in jpeg-xl format.
# @param opts [Hash] Set of options
# @option opts [Integer] :tier Decode speed tier
# @option opts [Float] :distance Target butteraugli distance
# @option opts [Integer] :effort Encoding effort
# @option opts [Boolean] :lossless Enable lossless compression
# @option opts [Integer] :Q Quality factor
# @option opts [Boolean] :strip Strip all metadata from image
# @option opts [Array<Double>] :background Background value
# @option opts [Integer] :page_height Set page height for multipage save
# @return [VipsBlob] Buffer to save to
# @!method jxlsave_target(target, **opts)
# Save image in jpeg-xl format.
# @param target [Vips::Target] Target to save to
# @param opts [Hash] Set of options
# @option opts [Integer] :tier Decode speed tier
# @option opts [Float] :distance Target butteraugli distance
# @option opts [Integer] :effort Encoding effort
# @option opts [Boolean] :lossless Enable lossless compression
# @option opts [Integer] :Q Quality factor
# @option opts [Boolean] :strip Strip all metadata from image
# @option opts [Array<Double>] :background Background value
# @option opts [Integer] :page_height Set page height for multipage save
# @return [nil]
# @!method jp2ksave(filename, **opts)
# Save image in jpeg2000 format.
# @param filename [String] Filename to load from
# @param opts [Hash] Set of options
# @option opts [Integer] :tile_width Tile width in pixels
# @option opts [Integer] :tile_height Tile height in pixels
# @option opts [Boolean] :lossless Enable lossless compression
# @option opts [Integer] :Q Q factor
# @option opts [Vips::ForeignSubsample] :subsample_mode Select chroma subsample operation mode
# @option opts [Boolean] :strip Strip all metadata from image
# @option opts [Array<Double>] :background Background value
# @option opts [Integer] :page_height Set page height for multipage save
# @return [nil]
# @!method jp2ksave_buffer(**opts)
# Save image in jpeg2000 format.
# @param opts [Hash] Set of options
# @option opts [Integer] :tile_width Tile width in pixels
# @option opts [Integer] :tile_height Tile height in pixels
# @option opts [Boolean] :lossless Enable lossless compression
# @option opts [Integer] :Q Q factor
# @option opts [Vips::ForeignSubsample] :subsample_mode Select chroma subsample operation mode
# @option opts [Boolean] :strip Strip all metadata from image
# @option opts [Array<Double>] :background Background value
# @option opts [Integer] :page_height Set page height for multipage save
# @return [VipsBlob] Buffer to save to
# @!method jp2ksave_target(target, **opts)
# Save image in jpeg2000 format.
# @param target [Vips::Target] Target to save to
# @param opts [Hash] Set of options
# @option opts [Integer] :tile_width Tile width in pixels
# @option opts [Integer] :tile_height Tile height in pixels
# @option opts [Boolean] :lossless Enable lossless compression
# @option opts [Integer] :Q Q factor
# @option opts [Vips::ForeignSubsample] :subsample_mode Select chroma subsample operation mode
# @option opts [Boolean] :strip Strip all metadata from image
# @option opts [Array<Double>] :background Background value
# @option opts [Integer] :page_height Set page height for multipage save
# @return [nil]
# @!method gifsave(filename, **opts)
# Save as gif.
# @param filename [String] Filename to save to
# @param opts [Hash] Set of options
# @option opts [Float] :dither Amount of dithering
# @option opts [Integer] :effort Quantisation effort
# @option opts [Integer] :bitdepth Number of bits per pixel
# @option opts [Boolean] :strip Strip all metadata from image
# @option opts [Array<Double>] :background Background value
# @option opts [Integer] :page_height Set page height for multipage save
# @return [nil]
# @!method gifsave_buffer(**opts)
# Save as gif.
# @param opts [Hash] Set of options
# @option opts [Float] :dither Amount of dithering
# @option opts [Integer] :effort Quantisation effort
# @option opts [Integer] :bitdepth Number of bits per pixel
# @option opts [Boolean] :strip Strip all metadata from image
# @option opts [Array<Double>] :background Background value
# @option opts [Integer] :page_height Set page height for multipage save
# @return [VipsBlob] Buffer to save to
# @!method gifsave_target(target, **opts)
# Save as gif.
# @param target [Vips::Target] Target to save to
# @param opts [Hash] Set of options
# @option opts [Float] :dither Amount of dithering
# @option opts [Integer] :effort Quantisation effort
# @option opts [Integer] :bitdepth Number of bits per pixel
# @option opts [Boolean] :strip Strip all metadata from image
# @option opts [Array<Double>] :background Background value
# @option opts [Integer] :page_height Set page height for multipage save
# @return [nil]
# @!method dzsave(filename, **opts)
# Save image to deepzoom file.
# @param filename [String] Filename to save to
# @param opts [Hash] Set of options
# @option opts [String] :basename Base name to save to
# @option opts [Vips::ForeignDzLayout] :layout Directory layout
# @option opts [String] :suffix Filename suffix for tiles
# @option opts [Integer] :overlap Tile overlap in pixels
# @option opts [Integer] :tile_size Tile size in pixels
# @option opts [Boolean] :centre Center image in tile
# @option opts [Vips::ForeignDzDepth] :depth Pyramid depth
# @option opts [Vips::Angle] :angle Rotate image during save
# @option opts [Vips::ForeignDzContainer] :container Pyramid container type
# @option opts [Boolean] :properties Write a properties file to the output directory
# @option opts [Integer] :compression ZIP deflate compression level
# @option opts [Vips::RegionShrink] :region_shrink Method to shrink regions
# @option opts [Integer] :skip_blanks Skip tiles which are nearly equal to the background
# @option opts [Boolean] :no_strip Don't strip tile metadata
# @option opts [String] :id Resource ID
# @option opts [Boolean] :strip Strip all metadata from image
# @option opts [Array<Double>] :background Background value
# @option opts [Integer] :page_height Set page height for multipage save
# @return [nil]
# @!method dzsave_buffer(**opts)
# Save image to dz buffer.
# @param opts [Hash] Set of options
# @option opts [String] :basename Base name to save to
# @option opts [Vips::ForeignDzLayout] :layout Directory layout
# @option opts [String] :suffix Filename suffix for tiles
# @option opts [Integer] :overlap Tile overlap in pixels
# @option opts [Integer] :tile_size Tile size in pixels
# @option opts [Boolean] :centre Center image in tile
# @option opts [Vips::ForeignDzDepth] :depth Pyramid depth
# @option opts [Vips::Angle] :angle Rotate image during save
# @option opts [Vips::ForeignDzContainer] :container Pyramid container type
# @option opts [Boolean] :properties Write a properties file to the output directory
# @option opts [Integer] :compression ZIP deflate compression level
# @option opts [Vips::RegionShrink] :region_shrink Method to shrink regions
# @option opts [Integer] :skip_blanks Skip tiles which are nearly equal to the background
# @option opts [Boolean] :no_strip Don't strip tile metadata
# @option opts [String] :id Resource ID
# @option opts [Boolean] :strip Strip all metadata from image
# @option opts [Array<Double>] :background Background value
# @option opts [Integer] :page_height Set page height for multipage save
# @return [VipsBlob] Buffer to save to
# @!method pngsave(filename, **opts)
# Save image to png file.
# @param filename [String] Filename to save to
# @param opts [Hash] Set of options
# @option opts [Integer] :compression Compression factor
# @option opts [Boolean] :interlace Interlace image
# @option opts [String] :profile ICC profile to embed
# @option opts [Vips::ForeignPngFilter] :filter libpng row filter flag(s)
# @option opts [Boolean] :palette Quantise to 8bpp palette
# @option opts [Integer] :Q Quantisation quality
# @option opts [Float] :dither Amount of dithering
# @option opts [Integer] :bitdepth Write as a 1, 2, 4 or 8 bit image
# @option opts [Integer] :effort Quantisation CPU effort
# @option opts [Boolean] :strip Strip all metadata from image
# @option opts [Array<Double>] :background Background value
# @option opts [Integer] :page_height Set page height for multipage save
# @return [nil]
# @!method pngsave_buffer(**opts)
# Save image to png buffer.
# @param opts [Hash] Set of options
# @option opts [Integer] :compression Compression factor
# @option opts [Boolean] :interlace Interlace image
# @option opts [String] :profile ICC profile to embed
# @option opts [Vips::ForeignPngFilter] :filter libpng row filter flag(s)
# @option opts [Boolean] :palette Quantise to 8bpp palette
# @option opts [Integer] :Q Quantisation quality
# @option opts [Float] :dither Amount of dithering
# @option opts [Integer] :bitdepth Write as a 1, 2, 4 or 8 bit image
# @option opts [Integer] :effort Quantisation CPU effort
# @option opts [Boolean] :strip Strip all metadata from image
# @option opts [Array<Double>] :background Background value
# @option opts [Integer] :page_height Set page height for multipage save
# @return [VipsBlob] Buffer to save to
# @!method pngsave_target(target, **opts)
# Save image to target as png.
# @param target [Vips::Target] Target to save to
# @param opts [Hash] Set of options
# @option opts [Integer] :compression Compression factor
# @option opts [Boolean] :interlace Interlace image
# @option opts [String] :profile ICC profile to embed
# @option opts [Vips::ForeignPngFilter] :filter libpng row filter flag(s)
# @option opts [Boolean] :palette Quantise to 8bpp palette
# @option opts [Integer] :Q Quantisation quality
# @option opts [Float] :dither Amount of dithering
# @option opts [Integer] :bitdepth Write as a 1, 2, 4 or 8 bit image
# @option opts [Integer] :effort Quantisation CPU effort
# @option opts [Boolean] :strip Strip all metadata from image
# @option opts [Array<Double>] :background Background value
# @option opts [Integer] :page_height Set page height for multipage save
# @return [nil]
# @!method jpegsave(filename, **opts)
# Save image to jpeg file.
# @param filename [String] Filename to save to
# @param opts [Hash] Set of options
# @option opts [Integer] :Q Q factor
# @option opts [String] :profile ICC profile to embed
# @option opts [Boolean] :optimize_coding Compute optimal Huffman coding tables
# @option opts [Boolean] :interlace Generate an interlaced (progressive) jpeg
# @option opts [Boolean] :trellis_quant Apply trellis quantisation to each 8x8 block
# @option opts [Boolean] :overshoot_deringing Apply overshooting to samples with extreme values
# @option opts [Boolean] :optimize_scans Split spectrum of DCT coefficients into separate scans
# @option opts [Integer] :quant_table Use predefined quantization table with given index
# @option opts [Vips::ForeignSubsample] :subsample_mode Select chroma subsample operation mode
# @option opts [Integer] :restart_interval Add restart markers every specified number of mcu
# @option opts [Boolean] :strip Strip all metadata from image
# @option opts [Array<Double>] :background Background value
# @option opts [Integer] :page_height Set page height for multipage save
# @return [nil]
# @!method jpegsave_buffer(**opts)
# Save image to jpeg buffer.
# @param opts [Hash] Set of options
# @option opts [Integer] :Q Q factor
# @option opts [String] :profile ICC profile to embed
# @option opts [Boolean] :optimize_coding Compute optimal Huffman coding tables
# @option opts [Boolean] :interlace Generate an interlaced (progressive) jpeg
# @option opts [Boolean] :trellis_quant Apply trellis quantisation to each 8x8 block
# @option opts [Boolean] :overshoot_deringing Apply overshooting to samples with extreme values
# @option opts [Boolean] :optimize_scans Split spectrum of DCT coefficients into separate scans
# @option opts [Integer] :quant_table Use predefined quantization table with given index
# @option opts [Vips::ForeignSubsample] :subsample_mode Select chroma subsample operation mode
# @option opts [Integer] :restart_interval Add restart markers every specified number of mcu
# @option opts [Boolean] :strip Strip all metadata from image
# @option opts [Array<Double>] :background Background value
# @option opts [Integer] :page_height Set page height for multipage save
# @return [VipsBlob] Buffer to save to
# @!method jpegsave_target(target, **opts)
# Save image to jpeg target.
# @param target [Vips::Target] Target to save to
# @param opts [Hash] Set of options
# @option opts [Integer] :Q Q factor
# @option opts [String] :profile ICC profile to embed
# @option opts [Boolean] :optimize_coding Compute optimal Huffman coding tables
# @option opts [Boolean] :interlace Generate an interlaced (progressive) jpeg
# @option opts [Boolean] :trellis_quant Apply trellis quantisation to each 8x8 block
# @option opts [Boolean] :overshoot_deringing Apply overshooting to samples with extreme values
# @option opts [Boolean] :optimize_scans Split spectrum of DCT coefficients into separate scans
# @option opts [Integer] :quant_table Use predefined quantization table with given index
# @option opts [Vips::ForeignSubsample] :subsample_mode Select chroma subsample operation mode
# @option opts [Integer] :restart_interval Add restart markers every specified number of mcu
# @option opts [Boolean] :strip Strip all metadata from image
# @option opts [Array<Double>] :background Background value
# @option opts [Integer] :page_height Set page height for multipage save
# @return [nil]
# @!method jpegsave_mime(**opts)
# Save image to jpeg mime.
# @param opts [Hash] Set of options
# @option opts [Integer] :Q Q factor
# @option opts [String] :profile ICC profile to embed
# @option opts [Boolean] :optimize_coding Compute optimal Huffman coding tables
# @option opts [Boolean] :interlace Generate an interlaced (progressive) jpeg
# @option opts [Boolean] :trellis_quant Apply trellis quantisation to each 8x8 block
# @option opts [Boolean] :overshoot_deringing Apply overshooting to samples with extreme values
# @option opts [Boolean] :optimize_scans Split spectrum of DCT coefficients into separate scans
# @option opts [Integer] :quant_table Use predefined quantization table with given index
# @option opts [Vips::ForeignSubsample] :subsample_mode Select chroma subsample operation mode
# @option opts [Integer] :restart_interval Add restart markers every specified number of mcu
# @option opts [Boolean] :strip Strip all metadata from image
# @option opts [Array<Double>] :background Background value
# @option opts [Integer] :page_height Set page height for multipage save
# @return [nil]
# @!method webpsave(filename, **opts)
# Save image to webp file.
# @param filename [String] Filename to save to
# @param opts [Hash] Set of options
# @option opts [Integer] :Q Q factor
# @option opts [Boolean] :lossless enable lossless compression
# @option opts [Vips::ForeignWebpPreset] :preset Preset for lossy compression
# @option opts [Boolean] :smart_subsample Enable high quality chroma subsampling
# @option opts [Boolean] :near_lossless Enable preprocessing in lossless mode (uses Q)
# @option opts [Integer] :alpha_q Change alpha plane fidelity for lossy compression
# @option opts [Boolean] :min_size Optimise for minium size
# @option opts [Integer] :kmin Minimum number of frames between key frames
# @option opts [Integer] :kmax Maximum number of frames between key frames
# @option opts [Integer] :effort Level of CPU effort to reduce file size
# @option opts [String] :profile ICC profile to embed
# @option opts [Boolean] :strip Strip all metadata from image
# @option opts [Array<Double>] :background Background value
# @option opts [Integer] :page_height Set page height for multipage save
# @return [nil]
# @!method webpsave_buffer(**opts)
# Save image to webp buffer.
# @param opts [Hash] Set of options
# @option opts [Integer] :Q Q factor
# @option opts [Boolean] :lossless enable lossless compression
# @option opts [Vips::ForeignWebpPreset] :preset Preset for lossy compression
# @option opts [Boolean] :smart_subsample Enable high quality chroma subsampling
# @option opts [Boolean] :near_lossless Enable preprocessing in lossless mode (uses Q)
# @option opts [Integer] :alpha_q Change alpha plane fidelity for lossy compression
# @option opts [Boolean] :min_size Optimise for minium size
# @option opts [Integer] :kmin Minimum number of frames between key frames
# @option opts [Integer] :kmax Maximum number of frames between key frames
# @option opts [Integer] :effort Level of CPU effort to reduce file size
# @option opts [String] :profile ICC profile to embed
# @option opts [Boolean] :strip Strip all metadata from image
# @option opts [Array<Double>] :background Background value
# @option opts [Integer] :page_height Set page height for multipage save
# @return [VipsBlob] Buffer to save to
# @!method webpsave_target(target, **opts)
# Save image to webp target.
# @param target [Vips::Target] Target to save to
# @param opts [Hash] Set of options
# @option opts [Integer] :Q Q factor
# @option opts [Boolean] :lossless enable lossless compression
# @option opts [Vips::ForeignWebpPreset] :preset Preset for lossy compression
# @option opts [Boolean] :smart_subsample Enable high quality chroma subsampling
# @option opts [Boolean] :near_lossless Enable preprocessing in lossless mode (uses Q)
# @option opts [Integer] :alpha_q Change alpha plane fidelity for lossy compression
# @option opts [Boolean] :min_size Optimise for minium size
# @option opts [Integer] :kmin Minimum number of frames between key frames
# @option opts [Integer] :kmax Maximum number of frames between key frames
# @option opts [Integer] :effort Level of CPU effort to reduce file size
# @option opts [String] :profile ICC profile to embed
# @option opts [Boolean] :strip Strip all metadata from image
# @option opts [Array<Double>] :background Background value
# @option opts [Integer] :page_height Set page height for multipage save
# @return [nil]
# @!method tiffsave(filename, **opts)
# Save image to tiff file.
# @param filename [String] Filename to save to
# @param opts [Hash] Set of options
# @option opts [Vips::ForeignTiffCompression] :compression Compression for this file
# @option opts [Integer] :Q Q factor
# @option opts [Vips::ForeignTiffPredictor] :predictor Compression prediction
# @option opts [String] :profile ICC profile to embed
# @option opts [Boolean] :tile Write a tiled tiff
# @option opts [Integer] :tile_width Tile width in pixels
# @option opts [Integer] :tile_height Tile height in pixels
# @option opts [Boolean] :pyramid Write a pyramidal tiff
# @option opts [Boolean] :miniswhite Use 0 for white in 1-bit images
# @option opts [Integer] :bitdepth Write as a 1, 2, 4 or 8 bit image
# @option opts [Vips::ForeignTiffResunit] :resunit Resolution unit
# @option opts [Float] :xres Horizontal resolution in pixels/mm
# @option opts [Float] :yres Vertical resolution in pixels/mm
# @option opts [Boolean] :bigtiff Write a bigtiff image
# @option opts [Boolean] :properties Write a properties document to IMAGEDESCRIPTION
# @option opts [Vips::RegionShrink] :region_shrink Method to shrink regions
# @option opts [Integer] :level ZSTD compression level
# @option opts [Boolean] :lossless Enable WEBP lossless mode
# @option opts [Vips::ForeignDzDepth] :depth Pyramid depth
# @option opts [Boolean] :subifd Save pyr layers as sub-IFDs
# @option opts [Boolean] :premultiply Save with premultiplied alpha
# @option opts [Boolean] :strip Strip all metadata from image
# @option opts [Array<Double>] :background Background value
# @option opts [Integer] :page_height Set page height for multipage save
# @return [nil]
# @!method tiffsave_buffer(**opts)
# Save image to tiff buffer.
# @param opts [Hash] Set of options
# @option opts [Vips::ForeignTiffCompression] :compression Compression for this file
# @option opts [Integer] :Q Q factor
# @option opts [Vips::ForeignTiffPredictor] :predictor Compression prediction
# @option opts [String] :profile ICC profile to embed
# @option opts [Boolean] :tile Write a tiled tiff
# @option opts [Integer] :tile_width Tile width in pixels
# @option opts [Integer] :tile_height Tile height in pixels
# @option opts [Boolean] :pyramid Write a pyramidal tiff
# @option opts [Boolean] :miniswhite Use 0 for white in 1-bit images
# @option opts [Integer] :bitdepth Write as a 1, 2, 4 or 8 bit image
# @option opts [Vips::ForeignTiffResunit] :resunit Resolution unit
# @option opts [Float] :xres Horizontal resolution in pixels/mm
# @option opts [Float] :yres Vertical resolution in pixels/mm
# @option opts [Boolean] :bigtiff Write a bigtiff image
# @option opts [Boolean] :properties Write a properties document to IMAGEDESCRIPTION
# @option opts [Vips::RegionShrink] :region_shrink Method to shrink regions
# @option opts [Integer] :level ZSTD compression level
# @option opts [Boolean] :lossless Enable WEBP lossless mode
# @option opts [Vips::ForeignDzDepth] :depth Pyramid depth
# @option opts [Boolean] :subifd Save pyr layers as sub-IFDs
# @option opts [Boolean] :premultiply Save with premultiplied alpha
# @option opts [Boolean] :strip Strip all metadata from image
# @option opts [Array<Double>] :background Background value
# @option opts [Integer] :page_height Set page height for multipage save
# @return [VipsBlob] Buffer to save to
# @!method magicksave(filename, **opts)
# Save file with imagemagick.
# @param filename [String] Filename to save to
# @param opts [Hash] Set of options
# @option opts [String] :format Format to save in
# @option opts [Integer] :quality Quality to use
# @option opts [Boolean] :optimize_gif_frames Apply GIF frames optimization
# @option opts [Boolean] :optimize_gif_transparency Apply GIF transparency optimization
# @option opts [Boolean] :strip Strip all metadata from image
# @option opts [Array<Double>] :background Background value
# @option opts [Integer] :page_height Set page height for multipage save
# @return [nil]
# @!method magicksave_buffer(**opts)
# Save image to magick buffer.
# @param opts [Hash] Set of options
# @option opts [String] :format Format to save in
# @option opts [Integer] :quality Quality to use
# @option opts [Boolean] :optimize_gif_frames Apply GIF frames optimization
# @option opts [Boolean] :optimize_gif_transparency Apply GIF transparency optimization
# @option opts [Boolean] :strip Strip all metadata from image
# @option opts [Array<Double>] :background Background value
# @option opts [Integer] :page_height Set page height for multipage save
# @return [VipsBlob] Buffer to save to
# @!method fitssave(filename, **opts)
# Save image to fits file.
# @param filename [String] Filename to save to
# @param opts [Hash] Set of options
# @option opts [Boolean] :strip Strip all metadata from image
# @option opts [Array<Double>] :background Background value
# @option opts [Integer] :page_height Set page height for multipage save
# @return [nil]
# @!method niftisave(filename, **opts)
# Save image to nifti file.
# @param filename [String] Filename to save to
# @param opts [Hash] Set of options
# @option opts [Boolean] :strip Strip all metadata from image
# @option opts [Array<Double>] :background Background value
# @option opts [Integer] :page_height Set page height for multipage save
# @return [nil]
# @!method heifsave(filename, **opts)
# Save image in heif format.
# @param filename [String] Filename to save to
# @param opts [Hash] Set of options
# @option opts [Integer] :Q Q factor
# @option opts [Boolean] :lossless Enable lossless compression
# @option opts [Vips::ForeignHeifCompression] :compression Compression format
# @option opts [Integer] :effort CPU effort
# @option opts [Vips::ForeignSubsample] :subsample_mode Select chroma subsample operation mode
# @option opts [Boolean] :strip Strip all metadata from image
# @option opts [Array<Double>] :background Background value
# @option opts [Integer] :page_height Set page height for multipage save
# @return [nil]
# @!method heifsave_buffer(**opts)
# Save image in heif format.
# @param opts [Hash] Set of options
# @option opts [Integer] :Q Q factor
# @option opts [Boolean] :lossless Enable lossless compression
# @option opts [Vips::ForeignHeifCompression] :compression Compression format
# @option opts [Integer] :effort CPU effort
# @option opts [Vips::ForeignSubsample] :subsample_mode Select chroma subsample operation mode
# @option opts [Boolean] :strip Strip all metadata from image
# @option opts [Array<Double>] :background Background value
# @option opts [Integer] :page_height Set page height for multipage save
# @return [VipsBlob] Buffer to save to
# @!method heifsave_target(target, **opts)
# Save image in heif format.
# @param target [Vips::Target] Target to save to
# @param opts [Hash] Set of options
# @option opts [Integer] :Q Q factor
# @option opts [Boolean] :lossless Enable lossless compression
# @option opts [Vips::ForeignHeifCompression] :compression Compression format
# @option opts [Integer] :effort CPU effort
# @option opts [Vips::ForeignSubsample] :subsample_mode Select chroma subsample operation mode
# @option opts [Boolean] :strip Strip all metadata from image
# @option opts [Array<Double>] :background Background value
# @option opts [Integer] :page_height Set page height for multipage save
# @return [nil]
# @!method self.thumbnail(filename, width, **opts)
# Generate thumbnail from file.
# @param filename [String] Filename to read from
# @param width [Integer] Size to this width
# @param opts [Hash] Set of options
# @option opts [Integer] :height Size to this height
# @option opts [Vips::Size] :size Only upsize, only downsize, or both
# @option opts [Boolean] :no_rotate Don't use orientation tags to rotate image upright
# @option opts [Vips::Interesting] :crop Reduce to fill target rectangle, then crop
# @option opts [Boolean] :linear Reduce in linear light
# @option opts [String] :import_profile Fallback import profile
# @option opts [String] :export_profile Fallback export profile
# @option opts [Vips::Intent] :intent Rendering intent
# @return [Vips::Image] Output image
# @!method self.thumbnail_buffer(buffer, width, **opts)
# Generate thumbnail from buffer.
# @param buffer [VipsBlob] Buffer to load from
# @param width [Integer] Size to this width
# @param opts [Hash] Set of options
# @option opts [String] :option_string Options that are passed on to the underlying loader
# @option opts [Integer] :height Size to this height
# @option opts [Vips::Size] :size Only upsize, only downsize, or both
# @option opts [Boolean] :no_rotate Don't use orientation tags to rotate image upright
# @option opts [Vips::Interesting] :crop Reduce to fill target rectangle, then crop
# @option opts [Boolean] :linear Reduce in linear light
# @option opts [String] :import_profile Fallback import profile
# @option opts [String] :export_profile Fallback export profile
# @option opts [Vips::Intent] :intent Rendering intent
# @return [Vips::Image] Output image
# @!method thumbnail_image(width, **opts)
# Generate thumbnail from image.
# @param width [Integer] Size to this width
# @param opts [Hash] Set of options
# @option opts [Integer] :height Size to this height
# @option opts [Vips::Size] :size Only upsize, only downsize, or both
# @option opts [Boolean] :no_rotate Don't use orientation tags to rotate image upright
# @option opts [Vips::Interesting] :crop Reduce to fill target rectangle, then crop
# @option opts [Boolean] :linear Reduce in linear light
# @option opts [String] :import_profile Fallback import profile
# @option opts [String] :export_profile Fallback export profile
# @option opts [Vips::Intent] :intent Rendering intent
# @return [Vips::Image] Output image
# @!method self.thumbnail_source(source, width, **opts)
# Generate thumbnail from source.
# @param source [Vips::Source] Source to load from
# @param width [Integer] Size to this width
# @param opts [Hash] Set of options
# @option opts [String] :option_string Options that are passed on to the underlying loader
# @option opts [Integer] :height Size to this height
# @option opts [Vips::Size] :size Only upsize, only downsize, or both
# @option opts [Boolean] :no_rotate Don't use orientation tags to rotate image upright
# @option opts [Vips::Interesting] :crop Reduce to fill target rectangle, then crop
# @option opts [Boolean] :linear Reduce in linear light
# @option opts [String] :import_profile Fallback import profile
# @option opts [String] :export_profile Fallback export profile
# @option opts [Vips::Intent] :intent Rendering intent
# @return [Vips::Image] Output image
# @!method mapim(index, **opts)
# Resample with a map image.
# @param index [Vips::Image] Index pixels with this
# @param opts [Hash] Set of options
# @option opts [Vips::Interpolate] :interpolate Interpolate pixels with this
# @return [Vips::Image] Output image
# @!method shrink(hshrink, vshrink, **opts)
# Shrink an image.
# @param hshrink [Float] Horizontal shrink factor
# @param vshrink [Float] Vertical shrink factor
# @param opts [Hash] Set of options
# @return [Vips::Image] Output image
# @!method shrinkh(hshrink, **opts)
# Shrink an image horizontally.
# @param hshrink [Integer] Horizontal shrink factor
# @param opts [Hash] Set of options
# @return [Vips::Image] Output image
# @!method shrinkv(vshrink, **opts)
# Shrink an image vertically.
# @param vshrink [Integer] Vertical shrink factor
# @param opts [Hash] Set of options
# @return [Vips::Image] Output image
# @!method reduceh(hshrink, **opts)
# Shrink an image horizontally.
# @param hshrink [Float] Horizontal shrink factor
# @param opts [Hash] Set of options
# @option opts [Vips::Kernel] :kernel Resampling kernel
# @return [Vips::Image] Output image
# @!method reducev(vshrink, **opts)
# Shrink an image vertically.
# @param vshrink [Float] Vertical shrink factor
# @param opts [Hash] Set of options
# @option opts [Vips::Kernel] :kernel Resampling kernel
# @return [Vips::Image] Output image
# @!method reduce(hshrink, vshrink, **opts)
# Reduce an image.
# @param hshrink [Float] Horizontal shrink factor
# @param vshrink [Float] Vertical shrink factor
# @param opts [Hash] Set of options
# @option opts [Vips::Kernel] :kernel Resampling kernel
# @return [Vips::Image] Output image
# @!method quadratic(coeff, **opts)
# Resample an image with a quadratic transform.
# @param coeff [Vips::Image] Coefficient matrix
# @param opts [Hash] Set of options
# @option opts [Vips::Interpolate] :interpolate Interpolate values with this
# @return [Vips::Image] Output image
# @!method affine(matrix, **opts)
# Affine transform of an image.
# @param matrix [Array<Double>] Transformation matrix
# @param opts [Hash] Set of options
# @option opts [Vips::Interpolate] :interpolate Interpolate pixels with this
# @option opts [Array<Integer>] :oarea Area of output to generate
# @option opts [Float] :odx Horizontal output displacement
# @option opts [Float] :ody Vertical output displacement
# @option opts [Float] :idx Horizontal input displacement
# @option opts [Float] :idy Vertical input displacement
# @option opts [Array<Double>] :background Background value
# @option opts [Boolean] :premultiplied Images have premultiplied alpha
# @option opts [Vips::Extend] :extend How to generate the extra pixels
# @return [Vips::Image] Output image
# @!method similarity(**opts)
# Similarity transform of an image.
# @param opts [Hash] Set of options
# @option opts [Float] :scale Scale by this factor
# @option opts [Float] :angle Rotate anticlockwise by this many degrees
# @option opts [Vips::Interpolate] :interpolate Interpolate pixels with this
# @option opts [Array<Double>] :background Background value
# @option opts [Float] :odx Horizontal output displacement
# @option opts [Float] :ody Vertical output displacement
# @option opts [Float] :idx Horizontal input displacement
# @option opts [Float] :idy Vertical input displacement
# @return [Vips::Image] Output image
# @!method rotate(angle, **opts)
# Rotate an image by a number of degrees.
# @param angle [Float] Rotate anticlockwise by this many degrees
# @param opts [Hash] Set of options
# @option opts [Vips::Interpolate] :interpolate Interpolate pixels with this
# @option opts [Array<Double>] :background Background value
# @option opts [Float] :odx Horizontal output displacement
# @option opts [Float] :ody Vertical output displacement
# @option opts [Float] :idx Horizontal input displacement
# @option opts [Float] :idy Vertical input displacement
# @return [Vips::Image] Output image
# @!method resize(scale, **opts)
# Resize an image.
# @param scale [Float] Scale image by this factor
# @param opts [Hash] Set of options
# @option opts [Vips::Kernel] :kernel Resampling kernel
# @option opts [Float] :vscale Vertical scale image by this factor
# @return [Vips::Image] Output image
# @!method colourspace(space, **opts)
# Convert to a new colorspace.
# @param space [Vips::Interpretation] Destination color space
# @param opts [Hash] Set of options
# @option opts [Vips::Interpretation] :source_space Source color space
# @return [Vips::Image] Output image
# @!method Lab2XYZ(**opts)
# Transform cielab to xyz.
# @param opts [Hash] Set of options
# @option opts [Array<Double>] :temp Color temperature
# @return [Vips::Image] Output image
# @!method XYZ2Lab(**opts)
# Transform xyz to lab.
# @param opts [Hash] Set of options
# @option opts [Array<Double>] :temp Colour temperature
# @return [Vips::Image] Output image
# @!method Lab2LCh(**opts)
# Transform lab to lch.
# @param opts [Hash] Set of options
# @return [Vips::Image] Output image
# @!method LCh2Lab(**opts)
# Transform lch to lab.
# @param opts [Hash] Set of options
# @return [Vips::Image] Output image
# @!method LCh2CMC(**opts)
# Transform lch to cmc.
# @param opts [Hash] Set of options
# @return [Vips::Image] Output image
# @!method CMC2LCh(**opts)
# Transform lch to cmc.
# @param opts [Hash] Set of options
# @return [Vips::Image] Output image
# @!method XYZ2Yxy(**opts)
# Transform xyz to yxy.
# @param opts [Hash] Set of options
# @return [Vips::Image] Output image
# @!method Yxy2XYZ(**opts)
# Transform yxy to xyz.
# @param opts [Hash] Set of options
# @return [Vips::Image] Output image
# @!method scRGB2XYZ(**opts)
# Transform scrgb to xyz.
# @param opts [Hash] Set of options
# @return [Vips::Image] Output image
# @!method XYZ2scRGB(**opts)
# Transform xyz to scrgb.
# @param opts [Hash] Set of options
# @return [Vips::Image] Output image
# @!method LabQ2Lab(**opts)
# Unpack a labq image to float lab.
# @param opts [Hash] Set of options
# @return [Vips::Image] Output image
# @!method Lab2LabQ(**opts)
# Transform float lab to labq coding.
# @param opts [Hash] Set of options
# @return [Vips::Image] Output image
# @!method LabQ2LabS(**opts)
# Unpack a labq image to short lab.
# @param opts [Hash] Set of options
# @return [Vips::Image] Output image
# @!method LabS2LabQ(**opts)
# Transform short lab to labq coding.
# @param opts [Hash] Set of options
# @return [Vips::Image] Output image
# @!method LabS2Lab(**opts)
# Transform signed short lab to float.
# @param opts [Hash] Set of options
# @return [Vips::Image] Output image
# @!method Lab2LabS(**opts)
# Transform float lab to signed short.
# @param opts [Hash] Set of options
# @return [Vips::Image] Output image
# @!method rad2float(**opts)
# Unpack radiance coding to float rgb.
# @param opts [Hash] Set of options
# @return [Vips::Image] Output image
# @!method float2rad(**opts)
# Transform float rgb to radiance coding.
# @param opts [Hash] Set of options
# @return [Vips::Image] Output image
# @!method LabQ2sRGB(**opts)
# Convert a labq image to srgb.
# @param opts [Hash] Set of options
# @return [Vips::Image] Output image
# @!method sRGB2HSV(**opts)
# Transform srgb to hsv.
# @param opts [Hash] Set of options
# @return [Vips::Image] Output image
# @!method HSV2sRGB(**opts)
# Transform hsv to srgb.
# @param opts [Hash] Set of options
# @return [Vips::Image] Output image
# @!method icc_import(**opts)
# Import from device with icc profile.
# @param opts [Hash] Set of options
# @option opts [Vips::PCS] :pcs Set Profile Connection Space
# @option opts [Vips::Intent] :intent Rendering intent
# @option opts [Boolean] :black_point_compensation Enable black point compensation
# @option opts [Boolean] :embedded Use embedded input profile, if available
# @option opts [String] :input_profile Filename to load input profile from
# @return [Vips::Image] Output image
# @!method icc_export(**opts)
# Output to device with icc profile.
# @param opts [Hash] Set of options
# @option opts [Vips::PCS] :pcs Set Profile Connection Space
# @option opts [Vips::Intent] :intent Rendering intent
# @option opts [Boolean] :black_point_compensation Enable black point compensation
# @option opts [String] :output_profile Filename to load output profile from
# @option opts [Integer] :depth Output device space depth in bits
# @return [Vips::Image] Output image
# @!method icc_transform(output_profile, **opts)
# Transform between devices with icc profiles.
# @param output_profile [String] Filename to load output profile from
# @param opts [Hash] Set of options
# @option opts [Vips::PCS] :pcs Set Profile Connection Space
# @option opts [Vips::Intent] :intent Rendering intent
# @option opts [Boolean] :black_point_compensation Enable black point compensation
# @option opts [Boolean] :embedded Use embedded input profile, if available
# @option opts [String] :input_profile Filename to load input profile from
# @option opts [Integer] :depth Output device space depth in bits
# @return [Vips::Image] Output image
# @!method dE76(right, **opts)
# Calculate de76.
# @param right [Vips::Image] Right-hand input image
# @param opts [Hash] Set of options
# @return [Vips::Image] Output image
# @!method dE00(right, **opts)
# Calculate de00.
# @param right [Vips::Image] Right-hand input image
# @param opts [Hash] Set of options
# @return [Vips::Image] Output image
# @!method dECMC(right, **opts)
# Calculate decmc.
# @param right [Vips::Image] Right-hand input image
# @param opts [Hash] Set of options
# @return [Vips::Image] Output image
# @!method sRGB2scRGB(**opts)
# Convert an srgb image to scrgb.
# @param opts [Hash] Set of options
# @return [Vips::Image] Output image
# @!method scRGB2BW(**opts)
# Convert scrgb to bw.
# @param opts [Hash] Set of options
# @option opts [Integer] :depth Output device space depth in bits
# @return [Vips::Image] Output image
# @!method scRGB2sRGB(**opts)
# Convert an scrgb image to srgb.
# @param opts [Hash] Set of options
# @option opts [Integer] :depth Output device space depth in bits
# @return [Vips::Image] Output image
# @!method CMYK2XYZ(**opts)
# Transform cmyk to xyz.
# @param opts [Hash] Set of options
# @return [Vips::Image] Output image
# @!method XYZ2CMYK(**opts)
# Transform xyz to cmyk.
# @param opts [Hash] Set of options
# @return [Vips::Image] Output image
# @!method self.profile_load(name, **opts)
# Load named icc profile.
# @param name [String] Profile name
# @param opts [Hash] Set of options
# @return [VipsBlob] Loaded profile
# @!method maplut(lut, **opts)
# Map an image though a lut.
# @param lut [Vips::Image] Look-up table image
# @param opts [Hash] Set of options
# @option opts [Integer] :band apply one-band lut to this band of in
# @return [Vips::Image] Output image
# @!method case(cases, **opts)
# Use pixel values to pick cases from an array of images.
# @param cases [Array<Image>] Array of case images
# @param opts [Hash] Set of options
# @return [Vips::Image] Output image
# @!method percent(percent, **opts)
# Find threshold for percent of pixels.
# @param percent [Float] Percent of pixels
# @param opts [Hash] Set of options
# @return [Integer] Threshold above which lie percent of pixels
# @!method stdif(width, height, **opts)
# Statistical difference.
# @param width [Integer] Window width in pixels
# @param height [Integer] Window height in pixels
# @param opts [Hash] Set of options
# @option opts [Float] :s0 New deviation
# @option opts [Float] :b Weight of new deviation
# @option opts [Float] :m0 New mean
# @option opts [Float] :a Weight of new mean
# @return [Vips::Image] Output image
# @!method hist_cum(**opts)
# Form cumulative histogram.
# @param opts [Hash] Set of options
# @return [Vips::Image] Output image
# @!method hist_match(ref, **opts)
# Match two histograms.
# @param ref [Vips::Image] Reference histogram
# @param opts [Hash] Set of options
# @return [Vips::Image] Output image
# @!method hist_norm(**opts)
# Normalise histogram.
# @param opts [Hash] Set of options
# @return [Vips::Image] Output image
# @!method hist_equal(**opts)
# Histogram equalisation.
# @param opts [Hash] Set of options
# @option opts [Integer] :band Equalise with this band
# @return [Vips::Image] Output image
# @!method hist_plot(**opts)
# Plot histogram.
# @param opts [Hash] Set of options
# @return [Vips::Image] Output image
# @!method hist_local(width, height, **opts)
# Local histogram equalisation.
# @param width [Integer] Window width in pixels
# @param height [Integer] Window height in pixels
# @param opts [Hash] Set of options
# @option opts [Integer] :max_slope Maximum slope (CLAHE)
# @return [Vips::Image] Output image
# @!method hist_ismonotonic(**opts)
# Test for monotonicity.
# @param opts [Hash] Set of options
# @return [Boolean] true if in is monotonic
# @!method hist_entropy(**opts)
# Estimate image entropy.
# @param opts [Hash] Set of options
# @return [Float] Output value
# @!method conv(mask, **opts)
# Convolution operation.
# @param mask [Vips::Image] Input matrix image
# @param opts [Hash] Set of options
# @option opts [Vips::Precision] :precision Convolve with this precision
# @option opts [Integer] :layers Use this many layers in approximation
# @option opts [Integer] :cluster Cluster lines closer than this in approximation
# @return [Vips::Image] Output image
# @!method conva(mask, **opts)
# Approximate integer convolution.
# @param mask [Vips::Image] Input matrix image
# @param opts [Hash] Set of options
# @option opts [Integer] :layers Use this many layers in approximation
# @option opts [Integer] :cluster Cluster lines closer than this in approximation
# @return [Vips::Image] Output image
# @!method convf(mask, **opts)
# Float convolution operation.
# @param mask [Vips::Image] Input matrix image
# @param opts [Hash] Set of options
# @return [Vips::Image] Output image
# @!method convi(mask, **opts)
# Int convolution operation.
# @param mask [Vips::Image] Input matrix image
# @param opts [Hash] Set of options
# @return [Vips::Image] Output image
# @!method compass(mask, **opts)
# Convolve with rotating mask.
# @param mask [Vips::Image] Input matrix image
# @param opts [Hash] Set of options
# @option opts [Integer] :times Rotate and convolve this many times
# @option opts [Vips::Angle45] :angle Rotate mask by this much between convolutions
# @option opts [Vips::Combine] :combine Combine convolution results like this
# @option opts [Vips::Precision] :precision Convolve with this precision
# @option opts [Integer] :layers Use this many layers in approximation
# @option opts [Integer] :cluster Cluster lines closer than this in approximation
# @return [Vips::Image] Output image
# @!method convsep(mask, **opts)
# Seperable convolution operation.
# @param mask [Vips::Image] Input matrix image
# @param opts [Hash] Set of options
# @option opts [Vips::Precision] :precision Convolve with this precision
# @option opts [Integer] :layers Use this many layers in approximation
# @option opts [Integer] :cluster Cluster lines closer than this in approximation
# @return [Vips::Image] Output image
# @!method convasep(mask, **opts)
# Approximate separable integer convolution.
# @param mask [Vips::Image] Input matrix image
# @param opts [Hash] Set of options
# @option opts [Integer] :layers Use this many layers in approximation
# @return [Vips::Image] Output image
# @!method fastcor(ref, **opts)
# Fast correlation.
# @param ref [Vips::Image] Input reference image
# @param opts [Hash] Set of options
# @return [Vips::Image] Output image
# @!method spcor(ref, **opts)
# Spatial correlation.
# @param ref [Vips::Image] Input reference image
# @param opts [Hash] Set of options
# @return [Vips::Image] Output image
# @!method sharpen(**opts)
# Unsharp masking for print.
# @param opts [Hash] Set of options
# @option opts [Float] :sigma Sigma of Gaussian
# @option opts [Float] :x1 Flat/jaggy threshold
# @option opts [Float] :y2 Maximum brightening
# @option opts [Float] :y3 Maximum darkening
# @option opts [Float] :m1 Slope for flat areas
# @option opts [Float] :m2 Slope for jaggy areas
# @return [Vips::Image] Output image
# @!method gaussblur(sigma, **opts)
# Gaussian blur.
# @param sigma [Float] Sigma of Gaussian
# @param opts [Hash] Set of options
# @option opts [Float] :min_ampl Minimum amplitude of Gaussian
# @option opts [Vips::Precision] :precision Convolve with this precision
# @return [Vips::Image] Output image
# @!method canny(**opts)
# Canny edge detector.
# @param opts [Hash] Set of options
# @option opts [Float] :sigma Sigma of Gaussian
# @option opts [Vips::Precision] :precision Convolve with this precision
# @return [Vips::Image] Output image
# @!method sobel(**opts)
# Sobel edge detector.
# @param opts [Hash] Set of options
# @return [Vips::Image] Output image
# @!method fwfft(**opts)
# Forward fft.
# @param opts [Hash] Set of options
# @return [Vips::Image] Output image
# @!method invfft(**opts)
# Inverse fft.
# @param opts [Hash] Set of options
# @option opts [Boolean] :real Output only the real part of the transform
# @return [Vips::Image] Output image
# @!method freqmult(mask, **opts)
# Frequency-domain filtering.
# @param mask [Vips::Image] Input mask image
# @param opts [Hash] Set of options
# @return [Vips::Image] Output image
# @!method spectrum(**opts)
# Make displayable power spectrum.
# @param opts [Hash] Set of options
# @return [Vips::Image] Output image
# @!method phasecor(in2, **opts)
# Calculate phase correlation.
# @param in2 [Vips::Image] Second input image
# @param opts [Hash] Set of options
# @return [Vips::Image] Output image
# @!method morph(mask, morph, **opts)
# Morphology operation.
# @param mask [Vips::Image] Input matrix image
# @param morph [Vips::OperationMorphology] Morphological operation to perform
# @param opts [Hash] Set of options
# @return [Vips::Image] Output image
# @!method rank(width, height, index, **opts)
# Rank filter.
# @param width [Integer] Window width in pixels
# @param height [Integer] Window height in pixels
# @param index [Integer] Select pixel at index
# @param opts [Hash] Set of options
# @return [Vips::Image] Output image
# @!method countlines(direction, **opts)
# Count lines in an image.
# @param direction [Vips::Direction] Countlines left-right or up-down
# @param opts [Hash] Set of options
# @return [Float] Number of lines
# @!method labelregions(**opts)
# Label regions in an image.
# @param opts [Hash] Set of options
# @option opts [Integer] :segments Output Number of discrete contigious regions
# @return [Vips::Image, Hash<Symbol => Object>] Mask of region labels, Hash of optional output items
# @!method fill_nearest(**opts)
# Fill image zeros with nearest non-zero pixel.
# @param opts [Hash] Set of options
# @option opts [Vips::Image] :distance Output Distance to nearest non-zero pixel
# @return [Vips::Image, Hash<Symbol => Object>] Value of nearest non-zero pixel, Hash of optional output items
# @!method draw_rect(ink, left, top, width, height, **opts)
# Paint a rectangle on an image.
# @param ink [Array<Double>] Color for pixels
# @param left [Integer] Rect to fill
# @param top [Integer] Rect to fill
# @param width [Integer] Rect to fill
# @param height [Integer] Rect to fill
# @param opts [Hash] Set of options
# @option opts [Boolean] :fill Draw a solid object
# @return [Vips::Image] Image to draw on
# @!method draw_mask(ink, mask, x, y, **opts)
# Draw a mask on an image.
# @param ink [Array<Double>] Color for pixels
# @param mask [Vips::Image] Mask of pixels to draw
# @param x [Integer] Draw mask here
# @param y [Integer] Draw mask here
# @param opts [Hash] Set of options
# @return [Vips::Image] Image to draw on
# @!method draw_line(ink, x1, y1, x2, y2, **opts)
# Draw a line on an image.
# @param ink [Array<Double>] Color for pixels
# @param x1 [Integer] Start of draw_line
# @param y1 [Integer] Start of draw_line
# @param x2 [Integer] End of draw_line
# @param y2 [Integer] End of draw_line
# @param opts [Hash] Set of options
# @return [Vips::Image] Image to draw on
# @!method draw_circle(ink, cx, cy, radius, **opts)
# Draw a circle on an image.
# @param ink [Array<Double>] Color for pixels
# @param cx [Integer] Centre of draw_circle
# @param cy [Integer] Centre of draw_circle
# @param radius [Integer] Radius in pixels
# @param opts [Hash] Set of options
# @option opts [Boolean] :fill Draw a solid object
# @return [Vips::Image] Image to draw on
# @!method draw_flood(ink, x, y, **opts)
# Flood-fill an area.
# @param ink [Array<Double>] Color for pixels
# @param x [Integer] DrawFlood start point
# @param y [Integer] DrawFlood start point
# @param opts [Hash] Set of options
# @option opts [Vips::Image] :test Test pixels in this image
# @option opts [Boolean] :equal DrawFlood while equal to edge
# @option opts [Integer] :left Output Left edge of modified area
# @option opts [Integer] :top Output top edge of modified area
# @option opts [Integer] :width Output width of modified area
# @option opts [Integer] :height Output height of modified area
# @return [Vips::Image, Hash<Symbol => Object>] Image to draw on, Hash of optional output items
# @!method draw_image(sub, x, y, **opts)
# Paint an image into another image.
# @param sub [Vips::Image] Sub-image to insert into main image
# @param x [Integer] Draw image here
# @param y [Integer] Draw image here
# @param opts [Hash] Set of options
# @option opts [Vips::CombineMode] :mode Combining mode
# @return [Vips::Image] Image to draw on
# @!method draw_smudge(left, top, width, height, **opts)
# Blur a rectangle on an image.
# @param left [Integer] Rect to fill
# @param top [Integer] Rect to fill
# @param width [Integer] Rect to fill
# @param height [Integer] Rect to fill
# @param opts [Hash] Set of options
# @return [Vips::Image] Image to draw on
# @!method merge(sec, direction, dx, dy, **opts)
# Merge two images.
# @param sec [Vips::Image] Secondary image
# @param direction [Vips::Direction] Horizontal or vertical merge
# @param dx [Integer] Horizontal displacement from sec to ref
# @param dy [Integer] Vertical displacement from sec to ref
# @param opts [Hash] Set of options
# @option opts [Integer] :mblend Maximum blend size
# @return [Vips::Image] Output image
# @!method mosaic(sec, direction, xref, yref, xsec, ysec, **opts)
# Mosaic two images.
# @param sec [Vips::Image] Secondary image
# @param direction [Vips::Direction] Horizontal or vertical mosaic
# @param xref [Integer] Position of reference tie-point
# @param yref [Integer] Position of reference tie-point
# @param xsec [Integer] Position of secondary tie-point
# @param ysec [Integer] Position of secondary tie-point
# @param opts [Hash] Set of options
# @option opts [Integer] :hwindow Half window size
# @option opts [Integer] :harea Half area size
# @option opts [Integer] :mblend Maximum blend size
# @option opts [Integer] :bandno Band to search for features on
# @option opts [Integer] :dx0 Output Detected integer offset
# @option opts [Integer] :dy0 Output Detected integer offset
# @option opts [Float] :scale1 Output Detected scale
# @option opts [Float] :angle1 Output Detected rotation
# @option opts [Float] :dy1 Output Detected first-order displacement
# @option opts [Float] :dx1 Output Detected first-order displacement
# @return [Vips::Image, Hash<Symbol => Object>] Output image, Hash of optional output items
# @!method mosaic1(sec, direction, xr1, yr1, xs1, ys1, xr2, yr2, xs2, ys2, **opts)
# First-order mosaic of two images.
# @param sec [Vips::Image] Secondary image
# @param direction [Vips::Direction] Horizontal or vertical mosaic
# @param xr1 [Integer] Position of first reference tie-point
# @param yr1 [Integer] Position of first reference tie-point
# @param xs1 [Integer] Position of first secondary tie-point
# @param ys1 [Integer] Position of first secondary tie-point
# @param xr2 [Integer] Position of second reference tie-point
# @param yr2 [Integer] Position of second reference tie-point
# @param xs2 [Integer] Position of second secondary tie-point
# @param ys2 [Integer] Position of second secondary tie-point
# @param opts [Hash] Set of options
# @option opts [Integer] :hwindow Half window size
# @option opts [Integer] :harea Half area size
# @option opts [Boolean] :search Search to improve tie-points
# @option opts [Vips::Interpolate] :interpolate Interpolate pixels with this
# @option opts [Integer] :mblend Maximum blend size
# @option opts [Integer] :bandno Band to search for features on
# @return [Vips::Image] Output image
# @!method matrixinvert(**opts)
# Invert an matrix.
# @param opts [Hash] Set of options
# @return [Vips::Image] Output matrix
# @!method match(sec, xr1, yr1, xs1, ys1, xr2, yr2, xs2, ys2, **opts)
# First-order match of two images.
# @param sec [Vips::Image] Secondary image
# @param xr1 [Integer] Position of first reference tie-point
# @param yr1 [Integer] Position of first reference tie-point
# @param xs1 [Integer] Position of first secondary tie-point
# @param ys1 [Integer] Position of first secondary tie-point
# @param xr2 [Integer] Position of second reference tie-point
# @param yr2 [Integer] Position of second reference tie-point
# @param xs2 [Integer] Position of second secondary tie-point
# @param ys2 [Integer] Position of second secondary tie-point
# @param opts [Hash] Set of options
# @option opts [Integer] :hwindow Half window size
# @option opts [Integer] :harea Half area size
# @option opts [Boolean] :search Search to improve tie-points
# @option opts [Vips::Interpolate] :interpolate Interpolate pixels with this
# @return [Vips::Image] Output image
# @!method globalbalance(**opts)
# Global balance an image mosaic.
# @param opts [Hash] Set of options
# @option opts [Float] :gamma Image gamma
# @option opts [Boolean] :int_output Integer output
# @return [Vips::Image] Output image
end
end
|