/usr/share/doc/libcpl-dev/html/group__cpl__image.html is in libcpl-doc 7.1-3.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 534 535 536 537 538 539 540 541 542 543 544 545 546 547 548 549 550 551 552 553 554 555 556 557 558 559 560 561 562 563 564 565 566 567 568 569 570 571 572 573 574 575 576 577 578 579 580 581 582 583 584 585 586 587 588 589 590 591 592 593 594 595 596 597 598 599 600 601 602 603 604 605 606 607 608 609 610 611 612 613 614 615 616 617 618 619 620 621 622 623 624 625 626 627 628 629 630 631 632 633 634 635 636 637 638 639 640 641 642 643 644 645 646 647 648 649 650 651 652 653 654 655 656 657 658 659 660 661 662 663 664 665 666 667 668 669 670 671 672 673 674 675 676 677 678 679 680 681 682 683 684 685 686 687 688 689 690 691 692 693 694 695 696 697 698 699 700 701 702 703 704 705 706 707 708 709 710 711 712 713 714 715 716 717 718 719 720 721 722 723 724 725 726 727 728 729 730 731 732 733 734 735 736 737 738 739 740 741 742 743 744 745 746 747 748 749 750 751 752 753 754 755 756 757 758 759 760 761 762 763 764 765 766 767 768 769 770 771 772 773 774 775 776 777 778 779 780 781 782 783 784 785 786 787 788 789 790 791 792 793 794 795 796 797 798 799 800 801 802 803 804 805 806 807 808 809 810 811 812 813 814 815 816 817 818 819 820 821 822 823 824 825 826 827 828 829 830 831 832 833 834 835 836 837 838 839 840 841 842 843 844 845 846 847 848 849 850 851 852 853 854 855 856 857 858 859 860 861 862 863 864 865 866 867 868 869 870 871 872 873 874 875 876 877 878 879 880 881 882 883 884 885 886 887 888 889 890 891 892 893 894 895 896 897 898 899 900 901 902 903 904 905 906 907 908 909 910 911 912 913 914 915 916 917 918 919 920 921 922 923 924 925 926 927 928 929 930 931 932 933 934 935 936 937 938 939 940 941 942 943 944 945 946 947 948 949 950 951 952 953 954 955 956 957 958 959 960 961 962 963 964 965 966 967 968 969 970 971 972 973 974 975 976 977 978 979 980 981 982 983 984 985 986 987 988 989 990 991 992 993 994 995 996 997 998 999 1000 1001 1002 1003 1004 1005 1006 1007 1008 1009 1010 1011 1012 1013 1014 1015 1016 1017 1018 1019 1020 1021 1022 1023 1024 1025 1026 1027 1028 1029 1030 1031 1032 1033 1034 1035 1036 1037 1038 1039 1040 1041 1042 1043 1044 1045 1046 1047 1048 1049 1050 1051 1052 1053 1054 1055 1056 1057 1058 1059 1060 1061 1062 1063 1064 1065 1066 1067 1068 1069 1070 1071 1072 1073 1074 1075 1076 1077 1078 1079 1080 1081 1082 1083 1084 1085 1086 1087 1088 1089 1090 1091 1092 1093 1094 1095 1096 1097 1098 1099 1100 1101 1102 1103 1104 1105 1106 1107 1108 1109 1110 1111 1112 1113 1114 1115 1116 1117 1118 1119 1120 1121 1122 1123 1124 1125 1126 1127 1128 1129 1130 1131 1132 1133 1134 1135 1136 1137 1138 1139 1140 1141 1142 1143 1144 1145 1146 1147 1148 1149 1150 1151 1152 1153 1154 1155 1156 1157 1158 1159 1160 1161 1162 1163 1164 1165 1166 1167 1168 1169 1170 1171 1172 1173 1174 1175 1176 1177 1178 1179 1180 1181 1182 1183 1184 1185 1186 1187 1188 1189 1190 1191 1192 1193 1194 1195 1196 1197 1198 1199 1200 1201 1202 1203 1204 1205 1206 1207 1208 1209 1210 1211 1212 1213 1214 1215 1216 1217 1218 1219 1220 1221 1222 1223 1224 1225 1226 1227 1228 1229 1230 1231 1232 1233 1234 1235 1236 1237 1238 1239 1240 1241 1242 1243 1244 1245 1246 1247 1248 1249 1250 1251 1252 1253 1254 1255 1256 1257 1258 1259 1260 1261 1262 1263 1264 1265 1266 1267 1268 1269 1270 1271 1272 1273 1274 1275 1276 1277 1278 1279 1280 1281 1282 1283 1284 1285 1286 1287 1288 1289 1290 1291 1292 1293 1294 1295 1296 1297 1298 1299 1300 1301 1302 1303 1304 1305 1306 1307 1308 1309 1310 1311 1312 1313 1314 1315 1316 1317 1318 1319 1320 1321 1322 1323 1324 1325 1326 1327 1328 1329 1330 1331 1332 1333 1334 1335 1336 1337 1338 1339 1340 1341 1342 1343 1344 1345 1346 1347 1348 1349 1350 1351 1352 1353 1354 1355 1356 1357 1358 1359 1360 1361 1362 1363 1364 1365 1366 1367 1368 1369 1370 1371 1372 1373 1374 1375 1376 1377 1378 1379 1380 1381 1382 1383 1384 1385 1386 1387 1388 1389 1390 1391 1392 1393 1394 1395 1396 1397 1398 1399 1400 1401 1402 1403 1404 1405 1406 1407 1408 1409 1410 1411 1412 1413 1414 1415 1416 1417 1418 1419 1420 1421 1422 1423 1424 1425 1426 1427 1428 1429 1430 1431 1432 1433 1434 1435 1436 1437 1438 1439 1440 1441 1442 1443 1444 1445 1446 1447 1448 1449 1450 1451 1452 1453 1454 1455 1456 1457 1458 1459 1460 1461 1462 1463 1464 1465 1466 1467 1468 1469 1470 1471 1472 1473 1474 1475 1476 1477 1478 1479 1480 1481 1482 1483 1484 1485 1486 1487 1488 1489 1490 1491 1492 1493 1494 1495 1496 1497 1498 1499 1500 1501 1502 1503 1504 1505 1506 1507 1508 1509 1510 1511 1512 1513 1514 1515 1516 1517 1518 1519 1520 1521 1522 1523 1524 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 2882 2883 2884 2885 2886 2887 2888 2889 2890 2891 2892 2893 2894 2895 2896 2897 2898 2899 2900 2901 2902 2903 2904 2905 2906 2907 2908 2909 2910 2911 2912 2913 2914 2915 2916 2917 2918 2919 2920 2921 2922 2923 2924 2925 2926 2927 2928 2929 2930 2931 2932 2933 2934 2935 2936 2937 2938 2939 2940 2941 2942 2943 2944 2945 2946 2947 2948 2949 2950 2951 2952 2953 2954 2955 2956 2957 2958 2959 2960 2961 2962 2963 2964 2965 2966 2967 2968 2969 2970 2971 2972 2973 2974 2975 2976 2977 2978 2979 2980 2981 2982 2983 2984 2985 2986 2987 2988 2989 2990 2991 2992 2993 2994 2995 2996 2997 2998 2999 3000 3001 3002 3003 3004 3005 3006 3007 3008 3009 3010 3011 3012 3013 3014 3015 3016 3017 3018 3019 3020 3021 3022 3023 3024 3025 3026 3027 3028 3029 3030 3031 3032 3033 3034 3035 3036 3037 3038 3039 3040 3041 3042 3043 3044 3045 3046 3047 3048 3049 3050 3051 3052 3053 3054 3055 3056 3057 3058 3059 3060 3061 3062 3063 3064 3065 3066 3067 3068 3069 3070 3071 3072 3073 3074 3075 3076 3077 3078 3079 3080 3081 3082 3083 3084 3085 3086 3087 3088 3089 3090 3091 3092 3093 3094 3095 3096 3097 3098 3099 3100 3101 3102 3103 3104 3105 3106 3107 3108 3109 3110 3111 3112 3113 3114 3115 3116 3117 3118 3119 3120 3121 3122 3123 3124 3125 3126 3127 3128 3129 3130 3131 3132 3133 3134 3135 3136 3137 3138 3139 3140 3141 3142 3143 3144 3145 3146 3147 3148 3149 3150 3151 3152 3153 3154 3155 3156 3157 3158 3159 3160 3161 3162 3163 3164 3165 3166 3167 3168 3169 3170 3171 3172 3173 3174 3175 3176 3177 3178 3179 3180 3181 3182 3183 3184 3185 3186 3187 3188 3189 3190 3191 3192 3193 3194 3195 3196 3197 3198 3199 3200 3201 3202 3203 3204 3205 3206 3207 3208 3209 3210 3211 3212 3213 3214 3215 3216 3217 3218 3219 3220 3221 3222 3223 3224 3225 3226 3227 3228 3229 3230 3231 3232 3233 3234 3235 3236 3237 3238 3239 3240 3241 3242 3243 3244 3245 3246 3247 3248 3249 3250 3251 3252 3253 3254 3255 3256 3257 3258 3259 3260 3261 3262 3263 3264 3265 3266 3267 3268 3269 3270 3271 3272 3273 3274 3275 3276 3277 3278 3279 3280 3281 3282 3283 3284 3285 3286 3287 3288 3289 3290 3291 3292 3293 3294 3295 3296 3297 3298 3299 3300 3301 3302 3303 3304 3305 3306 3307 3308 3309 3310 3311 3312 3313 3314 3315 3316 3317 3318 3319 3320 3321 3322 3323 3324 3325 3326 3327 3328 3329 3330 3331 3332 3333 3334 3335 3336 3337 3338 3339 3340 3341 3342 3343 3344 3345 3346 3347 3348 3349 3350 3351 3352 3353 3354 3355 3356 3357 3358 3359 3360 3361 3362 3363 3364 3365 3366 3367 3368 3369 3370 3371 3372 3373 3374 3375 3376 3377 3378 3379 3380 3381 3382 3383 3384 3385 3386 3387 3388 3389 3390 3391 3392 3393 3394 3395 3396 3397 3398 3399 3400 3401 3402 3403 3404 3405 3406 3407 3408 3409 3410 3411 3412 3413 3414 3415 3416 3417 3418 3419 3420 3421 3422 3423 3424 3425 3426 3427 3428 3429 3430 3431 3432 3433 3434 3435 3436 3437 3438 3439 3440 3441 3442 3443 3444 3445 3446 3447 3448 3449 3450 3451 3452 3453 3454 3455 3456 3457 3458 3459 3460 3461 3462 3463 3464 3465 3466 3467 3468 3469 3470 3471 3472 3473 3474 3475 3476 3477 3478 3479 3480 3481 3482 3483 3484 3485 3486 3487 3488 3489 3490 3491 3492 3493 3494 3495 3496 3497 3498 3499 3500 3501 3502 3503 3504 3505 3506 3507 3508 3509 3510 3511 3512 3513 3514 3515 3516 3517 3518 3519 3520 3521 3522 3523 3524 3525 3526 3527 3528 3529 3530 3531 3532 3533 3534 3535 3536 3537 3538 3539 3540 3541 3542 3543 3544 3545 3546 3547 3548 3549 3550 3551 3552 3553 3554 3555 3556 3557 3558 3559 3560 3561 3562 3563 3564 3565 3566 3567 3568 3569 3570 3571 3572 3573 3574 3575 3576 3577 3578 3579 3580 3581 3582 3583 3584 3585 3586 3587 3588 3589 3590 3591 3592 3593 3594 3595 3596 3597 3598 3599 3600 3601 3602 3603 3604 3605 3606 3607 3608 3609 3610 3611 3612 3613 3614 3615 3616 3617 3618 3619 3620 3621 3622 3623 3624 3625 3626 3627 3628 3629 3630 3631 3632 3633 3634 3635 3636 3637 3638 3639 3640 3641 3642 3643 3644 3645 3646 3647 3648 3649 3650 3651 3652 3653 3654 3655 3656 3657 3658 3659 3660 3661 3662 3663 3664 3665 3666 3667 3668 3669 3670 3671 3672 3673 3674 3675 3676 3677 3678 3679 3680 3681 3682 3683 3684 3685 3686 3687 3688 3689 3690 3691 3692 3693 3694 3695 3696 3697 3698 3699 3700 3701 3702 3703 3704 3705 3706 3707 3708 3709 3710 3711 3712 3713 3714 3715 3716 3717 3718 3719 3720 3721 3722 3723 3724 3725 3726 3727 3728 3729 3730 3731 3732 3733 3734 3735 3736 3737 3738 3739 3740 3741 3742 3743 3744 3745 3746 3747 3748 3749 3750 3751 3752 3753 3754 3755 3756 3757 3758 3759 3760 3761 3762 3763 3764 3765 3766 3767 3768 3769 3770 3771 3772 3773 3774 3775 3776 3777 3778 3779 3780 3781 3782 3783 3784 3785 3786 3787 3788 3789 3790 3791 3792 3793 3794 3795 3796 3797 3798 3799 3800 3801 3802 3803 3804 3805 3806 3807 3808 3809 3810 3811 3812 3813 3814 3815 3816 3817 3818 3819 3820 3821 3822 3823 3824 3825 3826 3827 3828 3829 3830 3831 3832 3833 3834 3835 3836 3837 3838 3839 3840 3841 3842 3843 3844 3845 3846 3847 3848 3849 3850 3851 3852 3853 3854 3855 3856 3857 3858 3859 3860 3861 3862 3863 3864 3865 3866 3867 3868 3869 3870 3871 3872 3873 3874 3875 3876 3877 3878 3879 3880 3881 3882 3883 3884 3885 3886 3887 3888 3889 3890 3891 3892 3893 3894 3895 3896 3897 3898 3899 3900 3901 3902 3903 3904 3905 3906 3907 3908 3909 3910 3911 3912 3913 3914 3915 3916 3917 3918 3919 3920 3921 3922 3923 3924 3925 3926 3927 3928 3929 3930 3931 3932 3933 3934 3935 3936 3937 3938 3939 3940 3941 3942 3943 3944 3945 3946 3947 3948 3949 3950 3951 3952 3953 3954 3955 3956 3957 3958 3959 3960 3961 3962 3963 3964 3965 3966 3967 3968 3969 3970 3971 3972 3973 3974 3975 3976 3977 3978 3979 3980 3981 3982 3983 3984 3985 3986 3987 3988 3989 3990 3991 3992 3993 3994 3995 3996 3997 3998 3999 4000 4001 4002 4003 4004 4005 4006 4007 4008 4009 4010 4011 4012 4013 4014 4015 4016 4017 4018 4019 4020 4021 4022 4023 4024 4025 4026 4027 4028 4029 4030 4031 4032 4033 4034 4035 4036 4037 4038 4039 4040 4041 4042 4043 4044 4045 4046 4047 4048 4049 4050 4051 4052 4053 4054 4055 4056 4057 4058 4059 4060 4061 4062 4063 4064 4065 4066 4067 4068 4069 4070 4071 4072 4073 4074 4075 4076 4077 4078 4079 4080 4081 4082 4083 4084 4085 4086 4087 4088 4089 4090 4091 4092 4093 4094 4095 4096 4097 4098 4099 4100 4101 4102 4103 4104 4105 4106 4107 4108 4109 4110 4111 4112 4113 4114 4115 4116 4117 4118 4119 4120 4121 4122 4123 4124 4125 4126 4127 4128 4129 4130 4131 4132 4133 4134 4135 4136 4137 4138 4139 4140 4141 4142 4143 4144 4145 4146 4147 4148 4149 4150 4151 4152 4153 4154 4155 4156 4157 4158 4159 4160 4161 4162 4163 4164 4165 4166 4167 4168 4169 4170 4171 4172 4173 4174 4175 4176 4177 4178 4179 4180 4181 4182 4183 4184 4185 4186 4187 4188 4189 4190 4191 4192 4193 4194 4195 4196 4197 4198 4199 4200 4201 4202 4203 4204 4205 4206 4207 4208 4209 4210 4211 4212 4213 4214 4215 4216 4217 4218 4219 4220 4221 4222 4223 4224 4225 4226 4227 4228 4229 4230 4231 4232 4233 4234 4235 4236 4237 4238 4239 4240 4241 4242 4243 4244 4245 4246 4247 4248 4249 4250 4251 4252 4253 4254 4255 4256 4257 4258 4259 4260 4261 4262 4263 4264 4265 4266 4267 4268 4269 4270 4271 4272 4273 4274 4275 4276 4277 4278 4279 4280 4281 4282 4283 4284 4285 4286 4287 4288 4289 4290 4291 4292 4293 4294 4295 4296 4297 4298 4299 4300 4301 4302 4303 4304 4305 4306 4307 4308 4309 4310 4311 4312 4313 4314 4315 4316 4317 4318 4319 4320 4321 4322 4323 4324 4325 4326 4327 4328 4329 4330 4331 4332 4333 4334 4335 4336 4337 4338 4339 4340 4341 4342 4343 4344 4345 4346 4347 4348 4349 4350 4351 4352 4353 4354 4355 4356 4357 4358 4359 4360 4361 4362 4363 4364 4365 4366 4367 4368 4369 4370 4371 4372 4373 4374 4375 4376 4377 4378 4379 4380 4381 4382 4383 4384 4385 4386 4387 4388 4389 4390 4391 4392 4393 4394 4395 4396 4397 4398 4399 4400 4401 4402 4403 4404 4405 4406 4407 4408 4409 4410 4411 4412 4413 4414 4415 4416 4417 4418 4419 4420 4421 4422 4423 4424 4425 4426 4427 4428 4429 4430 4431 4432 4433 4434 4435 4436 4437 4438 4439 4440 4441 4442 4443 4444 4445 4446 4447 4448 4449 4450 4451 4452 4453 4454 4455 4456 4457 4458 4459 4460 4461 4462 4463 4464 4465 4466 4467 4468 4469 4470 4471 4472 4473 4474 4475 4476 4477 4478 4479 4480 4481 4482 4483 4484 4485 4486 4487 4488 4489 4490 4491 4492 4493 4494 4495 4496 4497 4498 4499 4500 4501 4502 4503 4504 4505 4506 4507 4508 4509 4510 4511 4512 4513 4514 4515 4516 4517 4518 4519 4520 4521 4522 4523 4524 4525 4526 4527 4528 4529 4530 4531 4532 4533 4534 4535 4536 4537 4538 4539 4540 4541 4542 4543 4544 4545 4546 4547 4548 4549 4550 4551 4552 4553 4554 4555 4556 4557 4558 4559 4560 4561 4562 4563 4564 4565 4566 4567 4568 4569 4570 4571 4572 4573 4574 4575 4576 4577 4578 4579 4580 4581 4582 4583 4584 4585 4586 4587 4588 4589 4590 4591 4592 4593 4594 4595 4596 4597 4598 4599 4600 4601 4602 4603 4604 4605 4606 4607 4608 4609 4610 4611 4612 4613 4614 4615 4616 4617 4618 4619 4620 4621 4622 4623 4624 4625 4626 4627 4628 4629 4630 4631 4632 4633 4634 4635 4636 4637 4638 4639 4640 4641 4642 4643 4644 4645 4646 4647 4648 4649 4650 4651 4652 4653 4654 4655 4656 4657 4658 4659 4660 4661 4662 4663 4664 4665 4666 4667 4668 4669 4670 4671 4672 4673 4674 4675 4676 4677 4678 4679 4680 4681 4682 4683 4684 4685 4686 4687 4688 4689 4690 4691 4692 4693 4694 4695 4696 4697 4698 4699 4700 4701 4702 4703 4704 4705 4706 4707 4708 4709 4710 4711 4712 4713 4714 4715 4716 4717 4718 4719 4720 4721 4722 4723 4724 4725 4726 4727 4728 4729 4730 4731 4732 4733 4734 4735 4736 4737 4738 4739 4740 4741 4742 4743 4744 4745 4746 4747 4748 4749 4750 4751 4752 4753 4754 4755 4756 4757 4758 4759 4760 4761 4762 4763 4764 4765 4766 4767 4768 4769 4770 4771 4772 4773 4774 4775 4776 4777 4778 4779 4780 4781 4782 4783 4784 4785 4786 4787 4788 4789 4790 4791 4792 4793 4794 4795 4796 4797 4798 4799 4800 4801 4802 4803 4804 4805 4806 4807 4808 4809 4810 4811 4812 4813 4814 4815 4816 4817 4818 4819 4820 4821 4822 4823 4824 4825 4826 4827 4828 4829 4830 4831 4832 4833 4834 4835 4836 4837 4838 4839 4840 4841 4842 4843 4844 4845 4846 4847 4848 4849 4850 4851 4852 4853 4854 4855 4856 4857 4858 4859 4860 4861 4862 4863 4864 4865 4866 4867 4868 4869 4870 4871 4872 4873 4874 4875 4876 4877 4878 4879 4880 4881 4882 4883 4884 4885 4886 4887 4888 4889 4890 4891 4892 4893 4894 4895 4896 4897 4898 4899 4900 4901 4902 4903 4904 4905 4906 4907 4908 4909 4910 4911 4912 4913 4914 4915 4916 4917 4918 4919 4920 4921 4922 4923 4924 4925 4926 4927 4928 4929 4930 4931 4932 4933 4934 4935 4936 4937 4938 4939 4940 4941 4942 4943 4944 4945 4946 4947 4948 4949 4950 4951 4952 4953 4954 4955 4956 4957 4958 4959 4960 4961 4962 4963 4964 4965 4966 4967 4968 4969 4970 4971 4972 4973 4974 4975 4976 4977 4978 4979 4980 4981 4982 4983 4984 4985 4986 4987 4988 4989 4990 4991 4992 4993 4994 4995 4996 4997 4998 4999 5000 5001 5002 5003 5004 5005 5006 5007 5008 5009 5010 5011 5012 5013 5014 5015 5016 5017 5018 5019 5020 5021 5022 5023 5024 5025 5026 5027 5028 5029 5030 5031 5032 5033 5034 5035 5036 5037 5038 5039 5040 5041 5042 5043 5044 5045 5046 5047 5048 5049 5050 5051 5052 5053 5054 5055 5056 5057 5058 5059 5060 5061 5062 5063 5064 5065 5066 5067 5068 5069 5070 5071 5072 5073 5074 5075 5076 5077 5078 5079 5080 5081 5082 5083 5084 5085 5086 5087 5088 5089 5090 5091 5092 5093 5094 5095 5096 5097 5098 5099 5100 5101 5102 5103 5104 5105 5106 5107 5108 5109 5110 5111 5112 5113 5114 5115 5116 5117 5118 5119 5120 5121 5122 5123 5124 5125 5126 5127 5128 5129 5130 5131 5132 5133 5134 5135 5136 5137 5138 5139 5140 5141 5142 5143 5144 5145 5146 5147 5148 5149 5150 5151 5152 5153 5154 5155 5156 5157 5158 5159 5160 5161 5162 5163 5164 5165 5166 5167 5168 5169 5170 5171 5172 5173 5174 5175 5176 5177 5178 5179 5180 5181 5182 5183 5184 5185 5186 5187 5188 5189 5190 5191 5192 5193 5194 5195 5196 5197 5198 5199 5200 5201 5202 5203 5204 5205 5206 5207 5208 5209 5210 5211 5212 5213 5214 5215 5216 5217 5218 5219 5220 5221 5222 5223 5224 5225 5226 5227 5228 5229 5230 5231 5232 5233 5234 5235 5236 5237 5238 5239 5240 5241 5242 5243 5244 5245 5246 5247 5248 5249 5250 5251 5252 5253 5254 5255 5256 5257 5258 5259 5260 5261 5262 5263 5264 5265 5266 5267 5268 5269 5270 5271 5272 5273 5274 5275 5276 5277 5278 5279 5280 5281 5282 5283 5284 5285 5286 5287 5288 5289 5290 5291 5292 5293 5294 5295 5296 5297 5298 5299 5300 5301 5302 5303 5304 5305 5306 5307 5308 5309 5310 5311 5312 5313 5314 5315 5316 5317 5318 5319 5320 5321 5322 5323 5324 5325 5326 5327 5328 5329 5330 5331 5332 5333 5334 5335 5336 5337 5338 5339 5340 5341 5342 5343 5344 5345 5346 5347 5348 5349 5350 5351 5352 5353 5354 5355 5356 5357 5358 5359 5360 5361 5362 5363 5364 5365 5366 5367 5368 5369 5370 5371 5372 5373 5374 5375 5376 5377 5378 5379 5380 5381 5382 5383 5384 5385 5386 5387 5388 5389 5390 5391 5392 5393 5394 5395 5396 5397 5398 5399 5400 5401 5402 5403 5404 5405 5406 5407 5408 5409 5410 5411 5412 5413 5414 5415 5416 5417 5418 5419 5420 5421 5422 5423 5424 5425 5426 5427 5428 5429 5430 5431 5432 5433 5434 5435 5436 5437 5438 5439 5440 5441 5442 5443 5444 5445 5446 5447 5448 5449 5450 5451 5452 5453 5454 5455 5456 5457 5458 5459 5460 5461 5462 5463 5464 5465 5466 5467 5468 5469 5470 5471 5472 5473 5474 5475 5476 5477 5478 5479 5480 5481 5482 5483 5484 5485 5486 5487 5488 5489 5490 5491 5492 5493 5494 5495 5496 5497 5498 5499 5500 5501 5502 5503 5504 5505 5506 5507 5508 5509 5510 5511 5512 5513 5514 5515 5516 5517 5518 5519 5520 5521 5522 5523 5524 5525 5526 5527 5528 5529 5530 5531 5532 5533 5534 5535 5536 5537 5538 5539 5540 5541 5542 5543 5544 5545 5546 5547 5548 5549 5550 5551 5552 5553 5554 5555 5556 5557 5558 5559 5560 5561 5562 5563 5564 5565 5566 5567 5568 5569 5570 5571 5572 5573 5574 5575 5576 5577 5578 5579 5580 5581 5582 5583 5584 5585 5586 5587 5588 5589 5590 5591 5592 5593 5594 5595 5596 5597 5598 5599 5600 5601 5602 5603 5604 5605 5606 5607 5608 5609 5610 5611 5612 5613 5614 5615 5616 5617 5618 5619 5620 5621 5622 5623 5624 5625 5626 5627 5628 5629 5630 5631 5632 5633 5634 5635 5636 5637 5638 5639 5640 5641 5642 5643 5644 5645 5646 5647 5648 5649 5650 5651 5652 5653 5654 5655 5656 5657 5658 5659 5660 5661 5662 5663 5664 5665 5666 5667 5668 5669 5670 5671 5672 5673 5674 5675 5676 5677 5678 5679 5680 5681 5682 5683 5684 5685 5686 5687 5688 5689 5690 5691 5692 5693 5694 5695 5696 5697 5698 5699 5700 5701 5702 5703 5704 5705 5706 5707 5708 5709 5710 5711 5712 5713 5714 5715 5716 5717 5718 5719 5720 5721 5722 5723 5724 5725 5726 5727 5728 5729 5730 5731 5732 5733 5734 5735 5736 5737 5738 5739 5740 5741 5742 5743 5744 5745 5746 5747 5748 5749 5750 5751 5752 5753 5754 5755 5756 5757 5758 5759 5760 5761 5762 5763 5764 5765 5766 5767 5768 5769 5770 5771 5772 5773 5774 5775 5776 5777 5778 5779 5780 5781 5782 5783 5784 5785 5786 5787 5788 5789 5790 5791 5792 5793 5794 5795 5796 5797 5798 5799 5800 5801 5802 5803 5804 5805 5806 5807 5808 5809 5810 5811 5812 5813 5814 5815 5816 5817 5818 5819 5820 5821 5822 5823 5824 5825 5826 5827 5828 5829 5830 5831 5832 5833 5834 5835 5836 5837 5838 5839 5840 5841 5842 5843 5844 5845 5846 5847 5848 5849 5850 5851 5852 5853 5854 5855 5856 5857 5858 5859 5860 5861 5862 5863 5864 5865 5866 5867 5868 5869 5870 5871 5872 5873 5874 5875 5876 5877 5878 5879 5880 5881 5882 5883 5884 5885 5886 5887 5888 5889 5890 5891 5892 5893 5894 5895 5896 5897 5898 5899 5900 5901 5902 5903 5904 5905 5906 5907 5908 5909 5910 5911 5912 5913 5914 5915 5916 5917 5918 5919 5920 5921 5922 5923 5924 5925 5926 5927 5928 5929 5930 5931 5932 5933 5934 5935 5936 5937 5938 5939 5940 5941 5942 5943 5944 5945 5946 5947 5948 5949 5950 5951 5952 5953 5954 5955 5956 5957 5958 5959 5960 5961 5962 5963 5964 5965 5966 5967 5968 5969 5970 5971 5972 5973 5974 5975 5976 5977 5978 5979 5980 5981 5982 5983 5984 5985 5986 5987 5988 5989 5990 5991 5992 5993 5994 5995 5996 5997 5998 5999 6000 6001 6002 6003 6004 6005 6006 6007 6008 6009 6010 6011 6012 6013 6014 6015 6016 6017 6018 6019 6020 6021 6022 6023 6024 6025 6026 6027 6028 6029 6030 6031 6032 6033 6034 6035 6036 6037 6038 6039 6040 6041 6042 6043 6044 6045 6046 6047 6048 6049 6050 6051 6052 6053 6054 6055 6056 6057 6058 6059 6060 6061 6062 6063 6064 6065 6066 6067 6068 6069 6070 6071 6072 6073 6074 6075 6076 6077 6078 6079 6080 6081 6082 6083 6084 6085 6086 6087 6088 6089 6090 6091 6092 6093 6094 6095 6096 6097 6098 6099 6100 6101 6102 6103 6104 6105 6106 6107 6108 6109 6110 6111 6112 6113 6114 6115 6116 6117 6118 6119 6120 6121 6122 6123 6124 6125 6126 6127 6128 6129 6130 6131 6132 6133 6134 6135 6136 6137 6138 6139 6140 6141 6142 6143 6144 6145 6146 6147 6148 6149 6150 6151 6152 6153 6154 6155 6156 6157 6158 6159 6160 6161 6162 6163 6164 6165 6166 6167 6168 6169 6170 6171 6172 6173 6174 6175 6176 6177 6178 6179 6180 6181 6182 6183 6184 6185 6186 6187 6188 6189 6190 6191 6192 6193 6194 6195 6196 6197 6198 6199 6200 6201 6202 6203 6204 6205 6206 6207 6208 6209 6210 6211 6212 6213 6214 6215 6216 6217 6218 6219 6220 6221 6222 6223 6224 6225 6226 6227 6228 6229 6230 6231 6232 6233 6234 6235 6236 6237 6238 6239 6240 6241 6242 6243 6244 6245 6246 6247 6248 6249 6250 6251 6252 6253 6254 6255 6256 6257 6258 6259 6260 6261 6262 6263 6264 6265 6266 6267 6268 6269 6270 6271 6272 6273 6274 6275 6276 6277 6278 6279 6280 6281 6282 6283 6284 6285 6286 6287 6288 6289 6290 6291 6292 6293 6294 6295 6296 6297 6298 6299 6300 6301 6302 6303 6304 6305 6306 6307 6308 6309 6310 6311 6312 6313 6314 6315 6316 6317 6318 6319 6320 6321 6322 6323 6324 6325 6326 6327 6328 6329 6330 6331 6332 6333 6334 6335 6336 6337 6338 6339 6340 6341 6342 6343 6344 6345 6346 6347 6348 6349 6350 6351 6352 6353 6354 6355 6356 6357 6358 6359 6360 6361 6362 6363 6364 6365 6366 6367 6368 6369 6370 6371 6372 6373 6374 6375 6376 6377 6378 6379 6380 6381 6382 6383 6384 6385 6386 6387 6388 6389 6390 6391 6392 6393 6394 6395 6396 6397 6398 6399 6400 6401 6402 6403 6404 6405 6406 6407 6408 6409 6410 6411 6412 6413 6414 6415 6416 6417 6418 6419 6420 6421 6422 6423 6424 6425 6426 6427 6428 6429 6430 6431 6432 6433 6434 6435 6436 6437 6438 6439 6440 6441 6442 6443 6444 6445 6446 6447 6448 6449 6450 6451 6452 6453 6454 6455 6456 6457 6458 6459 6460 6461 6462 6463 6464 6465 6466 6467 6468 6469 6470 6471 6472 6473 6474 6475 6476 6477 6478 6479 6480 6481 6482 6483 6484 6485 6486 6487 6488 6489 6490 6491 6492 6493 6494 6495 6496 6497 6498 6499 6500 6501 6502 6503 6504 6505 6506 6507 6508 6509 6510 6511 6512 6513 6514 6515 6516 6517 6518 6519 6520 6521 6522 6523 6524 6525 6526 6527 6528 6529 6530 6531 6532 6533 6534 6535 6536 6537 6538 6539 6540 6541 6542 6543 6544 6545 6546 6547 6548 6549 6550 6551 6552 6553 6554 6555 6556 6557 6558 6559 6560 6561 6562 6563 6564 6565 6566 6567 6568 6569 6570 6571 6572 6573 6574 6575 6576 6577 6578 6579 6580 6581 6582 6583 6584 6585 6586 6587 6588 6589 6590 6591 6592 6593 6594 6595 6596 6597 6598 6599 6600 6601 6602 6603 6604 6605 6606 6607 6608 6609 6610 6611 6612 6613 6614 6615 6616 6617 6618 6619 6620 6621 6622 6623 6624 6625 6626 6627 6628 6629 6630 6631 6632 6633 6634 6635 6636 6637 6638 6639 6640 6641 6642 6643 6644 6645 6646 6647 6648 6649 6650 6651 6652 6653 6654 6655 6656 6657 6658 6659 6660 6661 6662 6663 6664 6665 6666 6667 6668 6669 6670 6671 6672 6673 6674 6675 6676 6677 6678 6679 6680 6681 6682 6683 6684 6685 6686 6687 6688 6689 6690 6691 6692 6693 6694 6695 6696 6697 6698 6699 6700 6701 6702 6703 6704 6705 6706 6707 6708 6709 6710 6711 6712 6713 6714 6715 6716 6717 6718 6719 6720 6721 6722 6723 6724 6725 6726 6727 6728 6729 6730 6731 6732 6733 6734 6735 6736 6737 6738 6739 6740 6741 6742 6743 6744 6745 6746 6747 6748 6749 6750 6751 6752 6753 6754 6755 6756 6757 6758 6759 6760 6761 6762 6763 6764 6765 6766 6767 6768 6769 6770 6771 6772 6773 6774 6775 6776 6777 6778 6779 6780 6781 6782 6783 6784 6785 6786 6787 6788 6789 6790 6791 6792 6793 6794 6795 6796 6797 6798 6799 6800 6801 6802 6803 6804 6805 6806 6807 6808 6809 6810 6811 6812 6813 6814 6815 6816 6817 6818 6819 6820 6821 6822 6823 6824 6825 6826 6827 6828 6829 6830 6831 6832 6833 6834 6835 6836 6837 6838 6839 6840 6841 6842 6843 6844 6845 6846 6847 6848 6849 6850 6851 6852 6853 6854 6855 6856 6857 6858 6859 6860 6861 6862 6863 6864 6865 6866 6867 6868 6869 6870 6871 6872 6873 6874 6875 6876 6877 6878 6879 6880 6881 6882 6883 6884 6885 6886 6887 6888 6889 6890 6891 6892 6893 6894 6895 6896 6897 6898 6899 6900 6901 6902 6903 6904 6905 6906 6907 6908 6909 6910 6911 6912 6913 6914 6915 6916 6917 6918 6919 6920 6921 6922 6923 6924 6925 6926 6927 6928 6929 6930 6931 6932 6933 6934 6935 6936 6937 6938 6939 6940 6941 6942 6943 6944 6945 6946 6947 6948 6949 6950 6951 6952 6953 6954 6955 6956 6957 6958 6959 6960 6961 6962 6963 6964 6965 6966 6967 6968 6969 6970 6971 6972 6973 6974 6975 6976 6977 6978 6979 6980 6981 6982 6983 6984 6985 6986 6987 6988 6989 6990 6991 6992 6993 6994 6995 6996 6997 6998 6999 7000 7001 7002 7003 7004 7005 7006 7007 7008 7009 7010 7011 7012 7013 7014 7015 7016 7017 7018 7019 7020 7021 7022 7023 7024 7025 7026 7027 7028 7029 7030 7031 7032 7033 7034 7035 7036 7037 7038 7039 7040 7041 7042 7043 7044 7045 7046 7047 7048 7049 7050 7051 7052 7053 7054 7055 7056 7057 7058 7059 7060 7061 7062 7063 7064 7065 7066 7067 7068 7069 7070 7071 7072 7073 7074 7075 7076 7077 7078 7079 7080 7081 7082 7083 7084 7085 7086 7087 7088 7089 7090 7091 7092 7093 7094 7095 7096 7097 7098 7099 7100 7101 7102 7103 7104 7105 7106 7107 7108 7109 7110 7111 7112 7113 7114 7115 7116 7117 7118 7119 7120 7121 7122 7123 7124 7125 7126 7127 7128 7129 7130 7131 7132 7133 7134 7135 7136 7137 7138 7139 7140 7141 7142 7143 7144 7145 7146 7147 7148 7149 7150 7151 7152 7153 7154 7155 7156 7157 7158 7159 7160 7161 7162 7163 7164 7165 7166 7167 7168 7169 7170 7171 7172 7173 7174 7175 7176 7177 7178 7179 7180 7181 7182 7183 7184 7185 7186 7187 7188 7189 7190 7191 7192 7193 7194 7195 7196 7197 7198 7199 7200 7201 7202 7203 7204 7205 7206 7207 7208 7209 7210 7211 7212 7213 7214 7215 7216 7217 7218 7219 7220 7221 7222 7223 7224 7225 7226 7227 7228 7229 7230 7231 7232 7233 7234 7235 7236 7237 7238 7239 7240 7241 7242 7243 7244 7245 7246 7247 7248 7249 7250 7251 7252 7253 7254 7255 7256 7257 7258 7259 7260 7261 7262 7263 7264 7265 7266 7267 7268 7269 7270 7271 7272 7273 7274 7275 7276 7277 7278 7279 7280 7281 7282 7283 7284 7285 7286 7287 7288 7289 7290 7291 7292 7293 7294 7295 7296 7297 7298 7299 7300 7301 7302 7303 7304 7305 7306 7307 7308 7309 7310 7311 7312 7313 7314 7315 7316 7317 7318 7319 7320 7321 7322 7323 7324 7325 7326 7327 7328 7329 7330 7331 7332 7333 7334 7335 7336 7337 7338 7339 7340 7341 7342 7343 7344 7345 7346 7347 7348 7349 7350 7351 7352 7353 7354 7355 7356 7357 7358 7359 7360 7361 7362 7363 7364 7365 7366 7367 7368 7369 7370 7371 7372 7373 7374 7375 7376 7377 7378 7379 7380 7381 7382 7383 7384 7385 7386 7387 7388 7389 7390 7391 7392 7393 7394 7395 7396 7397 7398 7399 7400 7401 7402 7403 7404 7405 7406 7407 7408 7409 7410 7411 7412 7413 7414 7415 7416 7417 7418 7419 7420 7421 7422 7423 7424 7425 7426 7427 7428 7429 7430 7431 7432 7433 7434 7435 7436 7437 7438 7439 7440 7441 7442 7443 7444 7445 7446 7447 7448 7449 7450 7451 7452 7453 7454 7455 7456 7457 7458 7459 7460 7461 7462 7463 7464 7465 7466 7467 7468 7469 7470 7471 7472 7473 7474 7475 7476 7477 7478 7479 7480 7481 7482 7483 7484 7485 7486 7487 7488 7489 7490 7491 7492 7493 7494 7495 7496 7497 7498 7499 7500 7501 7502 7503 7504 7505 7506 7507 7508 7509 7510 7511 7512 7513 7514 7515 7516 7517 7518 7519 7520 7521 7522 7523 7524 7525 7526 7527 7528 7529 7530 7531 7532 7533 7534 7535 7536 7537 7538 7539 7540 7541 7542 7543 7544 7545 7546 7547 7548 7549 7550 7551 7552 7553 7554 7555 7556 7557 7558 7559 7560 7561 7562 7563 7564 7565 7566 7567 7568 7569 7570 7571 7572 7573 7574 7575 7576 7577 7578 7579 7580 7581 7582 7583 7584 7585 7586 7587 7588 7589 7590 7591 7592 7593 7594 7595 7596 7597 7598 7599 7600 7601 7602 7603 7604 7605 7606 7607 7608 7609 7610 7611 7612 7613 7614 7615 7616 7617 7618 7619 7620 7621 7622 7623 7624 7625 7626 7627 7628 7629 7630 7631 7632 7633 7634 7635 7636 7637 7638 7639 7640 7641 7642 7643 7644 7645 7646 7647 7648 7649 7650 7651 7652 7653 7654 7655 7656 7657 7658 7659 7660 7661 7662 7663 7664 7665 7666 7667 7668 7669 7670 7671 7672 7673 7674 7675 7676 7677 7678 7679 7680 7681 7682 7683 7684 7685 7686 7687 7688 7689 7690 7691 7692 7693 7694 7695 7696 7697 7698 7699 7700 7701 7702 7703 7704 7705 7706 7707 7708 7709 7710 7711 7712 7713 7714 7715 7716 7717 7718 7719 7720 7721 7722 7723 7724 7725 7726 7727 7728 7729 7730 7731 7732 7733 7734 7735 7736 7737 7738 7739 7740 7741 7742 7743 7744 7745 7746 7747 7748 7749 7750 7751 7752 7753 7754 7755 7756 7757 7758 7759 7760 7761 7762 7763 7764 7765 7766 7767 7768 7769 7770 7771 7772 7773 7774 7775 7776 7777 7778 7779 7780 7781 7782 7783 7784 7785 7786 7787 7788 7789 7790 7791 7792 7793 7794 7795 7796 7797 7798 7799 7800 7801 7802 7803 7804 7805 7806 7807 7808 7809 7810 7811 7812 7813 7814 7815 7816 7817 7818 7819 7820 7821 7822 7823 7824 7825 7826 7827 7828 7829 7830 7831 7832 7833 7834 7835 7836 7837 7838 7839 7840 7841 7842 7843 7844 7845 7846 7847 7848 7849 7850 7851 7852 7853 7854 7855 7856 7857 7858 7859 7860 7861 7862 7863 7864 7865 7866 7867 7868 7869 7870 7871 7872 7873 7874 7875 7876 7877 7878 7879 7880 7881 7882 7883 7884 7885 7886 7887 7888 7889 7890 7891 7892 7893 7894 7895 7896 7897 7898 7899 7900 7901 7902 7903 7904 7905 7906 7907 7908 7909 7910 7911 7912 7913 7914 7915 7916 7917 7918 7919 7920 7921 7922 7923 7924 7925 7926 7927 7928 7929 7930 7931 7932 7933 7934 7935 7936 7937 7938 7939 7940 7941 7942 7943 7944 7945 7946 7947 7948 7949 7950 7951 7952 7953 7954 7955 7956 7957 7958 7959 7960 7961 7962 7963 7964 7965 7966 7967 7968 7969 7970 7971 7972 7973 7974 7975 7976 7977 7978 7979 7980 7981 7982 7983 7984 7985 7986 7987 7988 7989 7990 7991 7992 7993 7994 7995 7996 7997 7998 7999 8000 8001 8002 8003 8004 8005 8006 8007 8008 8009 8010 8011 8012 8013 8014 8015 8016 8017 8018 8019 | <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.10"/>
<title>Common Pipeline Library Reference Manual: Images</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
<link href="cpl.css" rel="stylesheet" type="text/css"/>
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
<tbody>
<tr style="height: 56px;">
<td id="projectalign" style="padding-left: 0.5em;">
<div id="projectname">Common Pipeline Library Reference Manual
 <span id="projectnumber">7.1</span>
</div>
</td>
</tr>
</tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.10 -->
<div id="navrow1" class="tabs">
<ul class="tablist">
<li><a href="index.html"><span>Main Page</span></a></li>
<li><a href="pages.html"><span>Related Pages</span></a></li>
<li><a href="modules.html"><span>Modules</span></a></li>
<li><a href="annotated.html"><span>Classes</span></a></li>
</ul>
</div>
</div><!-- top -->
<div class="header">
<div class="summary">
<a href="#typedef-members">Typedefs</a> |
<a href="#enum-members">Enumerations</a> |
<a href="#func-members">Functions</a> </div>
<div class="headertitle">
<div class="title">Images</div> </div>
</div><!--header-->
<div class="contents">
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="typedef-members"></a>
Typedefs</h2></td></tr>
<tr class="memitem:gab3784dca1e5dc78c42fb1b416158c511"><td class="memItemLeft" align="right" valign="top">typedef enum <a class="el" href="group__cpl__image.html#ga88a012a3ba4c750892420ac082d6c661">_cpl_value_</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="group__cpl__image.html#gab3784dca1e5dc78c42fb1b416158c511">cpl_value</a></td></tr>
<tr class="memdesc:gab3784dca1e5dc78c42fb1b416158c511"><td class="mdescLeft"> </td><td class="mdescRight">The CPL special value. It is a bit field. <a href="#gab3784dca1e5dc78c42fb1b416158c511">More...</a><br /></td></tr>
<tr class="separator:gab3784dca1e5dc78c42fb1b416158c511"><td class="memSeparator" colspan="2"> </td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="enum-members"></a>
Enumerations</h2></td></tr>
<tr class="memitem:ga88a012a3ba4c750892420ac082d6c661"><td class="memItemLeft" align="right" valign="top">enum  </td><td class="memItemRight" valign="bottom"><a class="el" href="group__cpl__image.html#ga88a012a3ba4c750892420ac082d6c661">_cpl_value_</a> { <br />
  <a class="el" href="group__cpl__image.html#gga88a012a3ba4c750892420ac082d6c661ae8f92a10f31c329d9ca64864db968d6a">CPL_VALUE_NAN</a>,
<br />
  <a class="el" href="group__cpl__image.html#gga88a012a3ba4c750892420ac082d6c661ab667e95fe225eed479231dda025280b0">CPL_VALUE_PLUSINF</a>,
<br />
  <a class="el" href="group__cpl__image.html#gga88a012a3ba4c750892420ac082d6c661acfd18000cafd737fe32fdee782dcb6d0">CPL_VALUE_MINUSINF</a>,
<br />
  <a class="el" href="group__cpl__image.html#gga88a012a3ba4c750892420ac082d6c661a29c82629ec34379000a97adf3bf1dd25">CPL_VALUE_ZERO</a>,
<br />
  <a class="el" href="group__cpl__image.html#gga88a012a3ba4c750892420ac082d6c661ad8d73483642c30ab787aad0536d1dee8">CPL_VALUE_INF</a>,
<br />
  <a class="el" href="group__cpl__image.html#gga88a012a3ba4c750892420ac082d6c661ae9e5c6bf52ed755615a44d7186fb54b3">CPL_VALUE_NOTFINITE</a>
<br />
}<tr class="memdesc:ga88a012a3ba4c750892420ac082d6c661"><td class="mdescLeft"> </td><td class="mdescRight">The special values that can be rejected They are a bit-field and can be combined with bitwise or. <a href="group__cpl__image.html#ga88a012a3ba4c750892420ac082d6c661">More...</a><br /></td></tr>
<tr class="separator:ga88a012a3ba4c750892420ac082d6c661"><td class="memSeparator" colspan="2"> </td></tr>
</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="func-members"></a>
Functions</h2></td></tr>
<tr class="memitem:ga71ed4128496419f983d66ffb4430cb67"><td class="memItemLeft" align="right" valign="top"><a class="el" href="group__cpl__error.html#ga44b4287e8a7a22122b94c220a1dd9459">cpl_error_code</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="group__cpl__image.html#ga71ed4128496419f983d66ffb4430cb67">cpl_image_abs</a> (cpl_image *image)</td></tr>
<tr class="memdesc:ga71ed4128496419f983d66ffb4430cb67"><td class="mdescLeft"> </td><td class="mdescRight">Take the absolute value of an image. <a href="#ga71ed4128496419f983d66ffb4430cb67">More...</a><br /></td></tr>
<tr class="separator:ga71ed4128496419f983d66ffb4430cb67"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:gab6254d75952598d70fea6ce6276de572"><td class="memItemLeft" align="right" valign="top">cpl_image * </td><td class="memItemRight" valign="bottom"><a class="el" href="group__cpl__image.html#gab6254d75952598d70fea6ce6276de572">cpl_image_abs_create</a> (const cpl_image *image_in)</td></tr>
<tr class="memdesc:gab6254d75952598d70fea6ce6276de572"><td class="mdescLeft"> </td><td class="mdescRight">Take the absolute value of an image. <a href="#gab6254d75952598d70fea6ce6276de572">More...</a><br /></td></tr>
<tr class="separator:gab6254d75952598d70fea6ce6276de572"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:gad10b1cfd108bca93f71cf0bdf74366d9"><td class="memItemLeft" align="right" valign="top"><a class="el" href="group__cpl__error.html#ga44b4287e8a7a22122b94c220a1dd9459">cpl_error_code</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="group__cpl__image.html#gad10b1cfd108bca93f71cf0bdf74366d9">cpl_image_accept</a> (cpl_image *im, <a class="el" href="group__cpl__type.html#gacc431432a4fedf19ec6f7668dda3fbf0">cpl_size</a> x, <a class="el" href="group__cpl__type.html#gacc431432a4fedf19ec6f7668dda3fbf0">cpl_size</a> y)</td></tr>
<tr class="memdesc:gad10b1cfd108bca93f71cf0bdf74366d9"><td class="mdescLeft"> </td><td class="mdescRight">Set a pixel as good in an image. <a href="#gad10b1cfd108bca93f71cf0bdf74366d9">More...</a><br /></td></tr>
<tr class="separator:gad10b1cfd108bca93f71cf0bdf74366d9"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:ga035ba167b6776b782e9920335dba5587"><td class="memItemLeft" align="right" valign="top"><a class="el" href="group__cpl__error.html#ga44b4287e8a7a22122b94c220a1dd9459">cpl_error_code</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="group__cpl__image.html#ga035ba167b6776b782e9920335dba5587">cpl_image_accept_all</a> (cpl_image *self)</td></tr>
<tr class="memdesc:ga035ba167b6776b782e9920335dba5587"><td class="mdescLeft"> </td><td class="mdescRight">Set all pixels in the image as good. <a href="#ga035ba167b6776b782e9920335dba5587">More...</a><br /></td></tr>
<tr class="separator:ga035ba167b6776b782e9920335dba5587"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:gaff601b28e179b3d1e62068e7561a26e8"><td class="memItemLeft" align="right" valign="top"><a class="el" href="group__cpl__error.html#ga44b4287e8a7a22122b94c220a1dd9459">cpl_error_code</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="group__cpl__image.html#gaff601b28e179b3d1e62068e7561a26e8">cpl_image_add</a> (cpl_image *im1, const cpl_image *im2)</td></tr>
<tr class="memdesc:gaff601b28e179b3d1e62068e7561a26e8"><td class="mdescLeft"> </td><td class="mdescRight">Add two images, store the result in the first image. <a href="#gaff601b28e179b3d1e62068e7561a26e8">More...</a><br /></td></tr>
<tr class="separator:gaff601b28e179b3d1e62068e7561a26e8"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:ga6126fb1c1a32987e3558970aca84a5ec"><td class="memItemLeft" align="right" valign="top">cpl_image * </td><td class="memItemRight" valign="bottom"><a class="el" href="group__cpl__image.html#ga6126fb1c1a32987e3558970aca84a5ec">cpl_image_add_create</a> (const cpl_image *image1, const cpl_image *image2)</td></tr>
<tr class="memdesc:ga6126fb1c1a32987e3558970aca84a5ec"><td class="mdescLeft"> </td><td class="mdescRight">Add two images. <a href="#ga6126fb1c1a32987e3558970aca84a5ec">More...</a><br /></td></tr>
<tr class="separator:ga6126fb1c1a32987e3558970aca84a5ec"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:ga3bd51e4922065f67d7cdcc4043c6b0cd"><td class="memItemLeft" align="right" valign="top"><a class="el" href="group__cpl__error.html#ga44b4287e8a7a22122b94c220a1dd9459">cpl_error_code</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="group__cpl__image.html#ga3bd51e4922065f67d7cdcc4043c6b0cd">cpl_image_add_scalar</a> (cpl_image *self, double scalar)</td></tr>
<tr class="memdesc:ga3bd51e4922065f67d7cdcc4043c6b0cd"><td class="mdescLeft"> </td><td class="mdescRight">Elementwise addition of a scalar to an image. <a href="#ga3bd51e4922065f67d7cdcc4043c6b0cd">More...</a><br /></td></tr>
<tr class="separator:ga3bd51e4922065f67d7cdcc4043c6b0cd"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:ga956c494049f2bff35a254ee2d91a212f"><td class="memItemLeft" align="right" valign="top">cpl_image * </td><td class="memItemRight" valign="bottom"><a class="el" href="group__cpl__image.html#ga956c494049f2bff35a254ee2d91a212f">cpl_image_add_scalar_create</a> (const cpl_image *image, double addend)</td></tr>
<tr class="memdesc:ga956c494049f2bff35a254ee2d91a212f"><td class="mdescLeft"> </td><td class="mdescRight">Create a new image by elementwise addition of a scalar to an image. <a href="#ga956c494049f2bff35a254ee2d91a212f">More...</a><br /></td></tr>
<tr class="separator:ga956c494049f2bff35a254ee2d91a212f"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:ga6e4e66328086841fcd96e2eec56a7bb7"><td class="memItemLeft" align="right" valign="top"><a class="el" href="group__cpl__error.html#ga44b4287e8a7a22122b94c220a1dd9459">cpl_error_code</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="group__cpl__image.html#ga6e4e66328086841fcd96e2eec56a7bb7">cpl_image_and</a> (cpl_image *self, const cpl_image *first, const cpl_image *second)</td></tr>
<tr class="memdesc:ga6e4e66328086841fcd96e2eec56a7bb7"><td class="mdescLeft"> </td><td class="mdescRight">The bit-wise and of two images with integer pixels. <a href="#ga6e4e66328086841fcd96e2eec56a7bb7">More...</a><br /></td></tr>
<tr class="separator:ga6e4e66328086841fcd96e2eec56a7bb7"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:ga7b1a20dae105755712e56ea22942add5"><td class="memItemLeft" align="right" valign="top"><a class="el" href="group__cpl__error.html#ga44b4287e8a7a22122b94c220a1dd9459">cpl_error_code</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="group__cpl__image.html#ga7b1a20dae105755712e56ea22942add5">cpl_image_and_scalar</a> (cpl_image *self, const cpl_image *first, <a class="el" href="group__cpl__type.html#ga8d50ea1fd78afcce32f5bcc94a3b8f03">cpl_bitmask</a> second)</td></tr>
<tr class="memdesc:ga7b1a20dae105755712e56ea22942add5"><td class="mdescLeft"> </td><td class="mdescRight">The bit-wise and of a scalar and an image with integer pixels. <a href="#ga7b1a20dae105755712e56ea22942add5">More...</a><br /></td></tr>
<tr class="separator:ga7b1a20dae105755712e56ea22942add5"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:gaa171e04962288d941cd599cca86e4311"><td class="memItemLeft" align="right" valign="top">cpl_image * </td><td class="memItemRight" valign="bottom"><a class="el" href="group__cpl__image.html#gaa171e04962288d941cd599cca86e4311">cpl_image_average_create</a> (const cpl_image *image_1, const cpl_image *image_2)</td></tr>
<tr class="memdesc:gaa171e04962288d941cd599cca86e4311"><td class="mdescLeft"> </td><td class="mdescRight">Build the average of two images. <a href="#gaa171e04962288d941cd599cca86e4311">More...</a><br /></td></tr>
<tr class="separator:gaa171e04962288d941cd599cca86e4311"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:gad986c25e9250952770f854022e1ffb24"><td class="memItemLeft" align="right" valign="top">cpl_image * </td><td class="memItemRight" valign="bottom"><a class="el" href="group__cpl__image.html#gad986c25e9250952770f854022e1ffb24">cpl_image_cast</a> (const cpl_image *self, <a class="el" href="group__cpl__type.html#ga01345c598396c7cd159979734adfb57d">cpl_type</a> type)</td></tr>
<tr class="memdesc:gad986c25e9250952770f854022e1ffb24"><td class="mdescLeft"> </td><td class="mdescRight">Convert a cpl_image to a given type. <a href="#gad986c25e9250952770f854022e1ffb24">More...</a><br /></td></tr>
<tr class="separator:gad986c25e9250952770f854022e1ffb24"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:ga911a5da41a658e42f43f4c6a30d3f9d5"><td class="memItemLeft" align="right" valign="top">cpl_image * </td><td class="memItemRight" valign="bottom"><a class="el" href="group__cpl__image.html#ga911a5da41a658e42f43f4c6a30d3f9d5">cpl_image_collapse_create</a> (const cpl_image *self, int direction)</td></tr>
<tr class="memdesc:ga911a5da41a658e42f43f4c6a30d3f9d5"><td class="mdescLeft"> </td><td class="mdescRight">Collapse an image along its rows or columns. <a href="#ga911a5da41a658e42f43f4c6a30d3f9d5">More...</a><br /></td></tr>
<tr class="separator:ga911a5da41a658e42f43f4c6a30d3f9d5"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:gaf25ef45754ceba12f04c210202b64405"><td class="memItemLeft" align="right" valign="top">cpl_image * </td><td class="memItemRight" valign="bottom"><a class="el" href="group__cpl__image.html#gaf25ef45754ceba12f04c210202b64405">cpl_image_collapse_median_create</a> (const cpl_image *self, int direction, <a class="el" href="group__cpl__type.html#gacc431432a4fedf19ec6f7668dda3fbf0">cpl_size</a> drop_ll, <a class="el" href="group__cpl__type.html#gacc431432a4fedf19ec6f7668dda3fbf0">cpl_size</a> drop_ur)</td></tr>
<tr class="memdesc:gaf25ef45754ceba12f04c210202b64405"><td class="mdescLeft"> </td><td class="mdescRight">Collapse an image along its rows or columns, with filtering. <a href="#gaf25ef45754ceba12f04c210202b64405">More...</a><br /></td></tr>
<tr class="separator:gaf25ef45754ceba12f04c210202b64405"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:gad3951035c6da7fbdf0fa4e8e06e97fe9"><td class="memItemLeft" align="right" valign="top">cpl_image * </td><td class="memItemRight" valign="bottom"><a class="el" href="group__cpl__image.html#gad3951035c6da7fbdf0fa4e8e06e97fe9">cpl_image_collapse_window_create</a> (const cpl_image *self, <a class="el" href="group__cpl__type.html#gacc431432a4fedf19ec6f7668dda3fbf0">cpl_size</a> llx, <a class="el" href="group__cpl__type.html#gacc431432a4fedf19ec6f7668dda3fbf0">cpl_size</a> lly, <a class="el" href="group__cpl__type.html#gacc431432a4fedf19ec6f7668dda3fbf0">cpl_size</a> urx, <a class="el" href="group__cpl__type.html#gacc431432a4fedf19ec6f7668dda3fbf0">cpl_size</a> ury, int direction)</td></tr>
<tr class="memdesc:gad3951035c6da7fbdf0fa4e8e06e97fe9"><td class="mdescLeft"> </td><td class="mdescRight">Collapse an image region along its rows or columns. <a href="#gad3951035c6da7fbdf0fa4e8e06e97fe9">More...</a><br /></td></tr>
<tr class="separator:gad3951035c6da7fbdf0fa4e8e06e97fe9"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:gae1687997cfd9e1217d86166f9356147e"><td class="memItemLeft" align="right" valign="top"><a class="el" href="group__cpl__error.html#ga44b4287e8a7a22122b94c220a1dd9459">cpl_error_code</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="group__cpl__image.html#gae1687997cfd9e1217d86166f9356147e">cpl_image_conjugate</a> (cpl_image *self, const cpl_image *other)</td></tr>
<tr class="memdesc:gae1687997cfd9e1217d86166f9356147e"><td class="mdescLeft"> </td><td class="mdescRight">Complex conjugate the pixels in a complex image. <a href="#gae1687997cfd9e1217d86166f9356147e">More...</a><br /></td></tr>
<tr class="separator:gae1687997cfd9e1217d86166f9356147e"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:ga13a42c86638d087b5a097c87e36ea7bc"><td class="memItemLeft" align="right" valign="top"><a class="el" href="group__cpl__error.html#ga44b4287e8a7a22122b94c220a1dd9459">cpl_error_code</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="group__cpl__image.html#ga13a42c86638d087b5a097c87e36ea7bc">cpl_image_copy</a> (cpl_image *im1, const cpl_image *im2, <a class="el" href="group__cpl__type.html#gacc431432a4fedf19ec6f7668dda3fbf0">cpl_size</a> xpos, <a class="el" href="group__cpl__type.html#gacc431432a4fedf19ec6f7668dda3fbf0">cpl_size</a> ypos)</td></tr>
<tr class="memdesc:ga13a42c86638d087b5a097c87e36ea7bc"><td class="mdescLeft"> </td><td class="mdescRight">Copy one image into another. <a href="#ga13a42c86638d087b5a097c87e36ea7bc">More...</a><br /></td></tr>
<tr class="separator:ga13a42c86638d087b5a097c87e36ea7bc"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:gafc771042281af33e78b366ef2f8e95e7"><td class="memItemLeft" align="right" valign="top"><a class="el" href="group__cpl__type.html#gacc431432a4fedf19ec6f7668dda3fbf0">cpl_size</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="group__cpl__image.html#gafc771042281af33e78b366ef2f8e95e7">cpl_image_count_rejected</a> (const cpl_image *im)</td></tr>
<tr class="memdesc:gafc771042281af33e78b366ef2f8e95e7"><td class="mdescLeft"> </td><td class="mdescRight">Count the number of bad pixels declared in an image. <a href="#gafc771042281af33e78b366ef2f8e95e7">More...</a><br /></td></tr>
<tr class="separator:gafc771042281af33e78b366ef2f8e95e7"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:ga272e4e004716651b94d6d36e575b6841"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="group__cpl__image.html#ga272e4e004716651b94d6d36e575b6841">cpl_image_delete</a> (cpl_image *d)</td></tr>
<tr class="memdesc:ga272e4e004716651b94d6d36e575b6841"><td class="mdescLeft"> </td><td class="mdescRight">Free memory associated to an cpl_image object. <a href="#ga272e4e004716651b94d6d36e575b6841">More...</a><br /></td></tr>
<tr class="separator:ga272e4e004716651b94d6d36e575b6841"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:gaf84f969c52240629187d1a5e65411435"><td class="memItemLeft" align="right" valign="top"><a class="el" href="group__cpl__error.html#ga44b4287e8a7a22122b94c220a1dd9459">cpl_error_code</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="group__cpl__image.html#gaf84f969c52240629187d1a5e65411435">cpl_image_divide</a> (cpl_image *im1, const cpl_image *im2)</td></tr>
<tr class="memdesc:gaf84f969c52240629187d1a5e65411435"><td class="mdescLeft"> </td><td class="mdescRight">Divide two images, store the result in the first image. <a href="#gaf84f969c52240629187d1a5e65411435">More...</a><br /></td></tr>
<tr class="separator:gaf84f969c52240629187d1a5e65411435"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:gafad621e6d1960251ec23984039e838c6"><td class="memItemLeft" align="right" valign="top">cpl_image * </td><td class="memItemRight" valign="bottom"><a class="el" href="group__cpl__image.html#gafad621e6d1960251ec23984039e838c6">cpl_image_divide_create</a> (const cpl_image *image1, const cpl_image *image2)</td></tr>
<tr class="memdesc:gafad621e6d1960251ec23984039e838c6"><td class="mdescLeft"> </td><td class="mdescRight">Divide two images. <a href="#gafad621e6d1960251ec23984039e838c6">More...</a><br /></td></tr>
<tr class="separator:gafad621e6d1960251ec23984039e838c6"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:gaa5075dc76993fd8a36b7b11b682be3e6"><td class="memItemLeft" align="right" valign="top"><a class="el" href="group__cpl__error.html#ga44b4287e8a7a22122b94c220a1dd9459">cpl_error_code</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="group__cpl__image.html#gaa5075dc76993fd8a36b7b11b682be3e6">cpl_image_divide_scalar</a> (cpl_image *self, double scalar)</td></tr>
<tr class="memdesc:gaa5075dc76993fd8a36b7b11b682be3e6"><td class="mdescLeft"> </td><td class="mdescRight">Elementwise division of an image with a scalar. <a href="#gaa5075dc76993fd8a36b7b11b682be3e6">More...</a><br /></td></tr>
<tr class="separator:gaa5075dc76993fd8a36b7b11b682be3e6"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:ga7315eb906f516eae42b75a9c3f50cea1"><td class="memItemLeft" align="right" valign="top">cpl_image * </td><td class="memItemRight" valign="bottom"><a class="el" href="group__cpl__image.html#ga7315eb906f516eae42b75a9c3f50cea1">cpl_image_divide_scalar_create</a> (const cpl_image *image, double divisor)</td></tr>
<tr class="memdesc:ga7315eb906f516eae42b75a9c3f50cea1"><td class="mdescLeft"> </td><td class="mdescRight">Create a new image by elementwise division of an image with a scalar. <a href="#ga7315eb906f516eae42b75a9c3f50cea1">More...</a><br /></td></tr>
<tr class="separator:ga7315eb906f516eae42b75a9c3f50cea1"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:ga41844eae7e6bfd6594c3fbfe4b1e481e"><td class="memItemLeft" align="right" valign="top"><a class="el" href="group__cpl__error.html#ga44b4287e8a7a22122b94c220a1dd9459">cpl_error_code</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="group__cpl__image.html#ga41844eae7e6bfd6594c3fbfe4b1e481e">cpl_image_dump_structure</a> (const cpl_image *self, FILE *stream)</td></tr>
<tr class="memdesc:ga41844eae7e6bfd6594c3fbfe4b1e481e"><td class="mdescLeft"> </td><td class="mdescRight">Dump structural information of a CPL image. <a href="#ga41844eae7e6bfd6594c3fbfe4b1e481e">More...</a><br /></td></tr>
<tr class="separator:ga41844eae7e6bfd6594c3fbfe4b1e481e"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:ga4f350c4251a89dc2c6792faa1028cab8"><td class="memItemLeft" align="right" valign="top"><a class="el" href="group__cpl__error.html#ga44b4287e8a7a22122b94c220a1dd9459">cpl_error_code</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="group__cpl__image.html#ga4f350c4251a89dc2c6792faa1028cab8">cpl_image_dump_window</a> (const cpl_image *self, <a class="el" href="group__cpl__type.html#gacc431432a4fedf19ec6f7668dda3fbf0">cpl_size</a> llx, <a class="el" href="group__cpl__type.html#gacc431432a4fedf19ec6f7668dda3fbf0">cpl_size</a> lly, <a class="el" href="group__cpl__type.html#gacc431432a4fedf19ec6f7668dda3fbf0">cpl_size</a> urx, <a class="el" href="group__cpl__type.html#gacc431432a4fedf19ec6f7668dda3fbf0">cpl_size</a> ury, FILE *stream)</td></tr>
<tr class="memdesc:ga4f350c4251a89dc2c6792faa1028cab8"><td class="mdescLeft"> </td><td class="mdescRight">Dump pixel values in a CPL image. <a href="#ga4f350c4251a89dc2c6792faa1028cab8">More...</a><br /></td></tr>
<tr class="separator:ga4f350c4251a89dc2c6792faa1028cab8"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:gadebfe1dae2cbd7a59fc09b323c55c10e"><td class="memItemLeft" align="right" valign="top">cpl_image * </td><td class="memItemRight" valign="bottom"><a class="el" href="group__cpl__image.html#gadebfe1dae2cbd7a59fc09b323c55c10e">cpl_image_duplicate</a> (const cpl_image *src)</td></tr>
<tr class="memdesc:gadebfe1dae2cbd7a59fc09b323c55c10e"><td class="mdescLeft"> </td><td class="mdescRight">Copy an image. <a href="#gadebfe1dae2cbd7a59fc09b323c55c10e">More...</a><br /></td></tr>
<tr class="separator:gadebfe1dae2cbd7a59fc09b323c55c10e"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:gaf7cf65200a127f8cfb2c8deb635791d6"><td class="memItemLeft" align="right" valign="top"><a class="el" href="group__cpl__error.html#ga44b4287e8a7a22122b94c220a1dd9459">cpl_error_code</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="group__cpl__image.html#gaf7cf65200a127f8cfb2c8deb635791d6">cpl_image_exponential</a> (cpl_image *self, double base)</td></tr>
<tr class="memdesc:gaf7cf65200a127f8cfb2c8deb635791d6"><td class="mdescLeft"> </td><td class="mdescRight">Compute the elementwise exponential of the image. <a href="#gaf7cf65200a127f8cfb2c8deb635791d6">More...</a><br /></td></tr>
<tr class="separator:gaf7cf65200a127f8cfb2c8deb635791d6"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:ga17a0d77d099e9b74550a1de5680939df"><td class="memItemLeft" align="right" valign="top">cpl_image * </td><td class="memItemRight" valign="bottom"><a class="el" href="group__cpl__image.html#ga17a0d77d099e9b74550a1de5680939df">cpl_image_exponential_create</a> (const cpl_image *image, double base)</td></tr>
<tr class="memdesc:ga17a0d77d099e9b74550a1de5680939df"><td class="mdescLeft"> </td><td class="mdescRight">Create a new image by elementwise exponentiation of an image. <a href="#ga17a0d77d099e9b74550a1de5680939df">More...</a><br /></td></tr>
<tr class="separator:ga17a0d77d099e9b74550a1de5680939df"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:ga2f0f5804717110451f74d3b9e1bdf8c7"><td class="memItemLeft" align="right" valign="top">cpl_image * </td><td class="memItemRight" valign="bottom"><a class="el" href="group__cpl__image.html#ga2f0f5804717110451f74d3b9e1bdf8c7">cpl_image_extract</a> (const cpl_image *in, <a class="el" href="group__cpl__type.html#gacc431432a4fedf19ec6f7668dda3fbf0">cpl_size</a> llx, <a class="el" href="group__cpl__type.html#gacc431432a4fedf19ec6f7668dda3fbf0">cpl_size</a> lly, <a class="el" href="group__cpl__type.html#gacc431432a4fedf19ec6f7668dda3fbf0">cpl_size</a> urx, <a class="el" href="group__cpl__type.html#gacc431432a4fedf19ec6f7668dda3fbf0">cpl_size</a> ury)</td></tr>
<tr class="memdesc:ga2f0f5804717110451f74d3b9e1bdf8c7"><td class="mdescLeft"> </td><td class="mdescRight">Extract a rectangular zone from an image into another image. <a href="#ga2f0f5804717110451f74d3b9e1bdf8c7">More...</a><br /></td></tr>
<tr class="separator:ga2f0f5804717110451f74d3b9e1bdf8c7"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:ga5e8ab59e3dabbcddf5da4e9c8aad659f"><td class="memItemLeft" align="right" valign="top">cpl_image * </td><td class="memItemRight" valign="bottom"><a class="el" href="group__cpl__image.html#ga5e8ab59e3dabbcddf5da4e9c8aad659f">cpl_image_extract_subsample</a> (const cpl_image *image, <a class="el" href="group__cpl__type.html#gacc431432a4fedf19ec6f7668dda3fbf0">cpl_size</a> xstep, <a class="el" href="group__cpl__type.html#gacc431432a4fedf19ec6f7668dda3fbf0">cpl_size</a> ystep)</td></tr>
<tr class="memdesc:ga5e8ab59e3dabbcddf5da4e9c8aad659f"><td class="mdescLeft"> </td><td class="mdescRight">Sub-sample an image. <a href="#ga5e8ab59e3dabbcddf5da4e9c8aad659f">More...</a><br /></td></tr>
<tr class="separator:ga5e8ab59e3dabbcddf5da4e9c8aad659f"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:gaf5d991abde7579d8c3ef59bb372b1df8"><td class="memItemLeft" align="right" valign="top"><a class="el" href="group__cpl__error.html#ga44b4287e8a7a22122b94c220a1dd9459">cpl_error_code</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="group__cpl__image.html#gaf5d991abde7579d8c3ef59bb372b1df8">cpl_image_fft</a> (cpl_image *img_real, cpl_image *img_imag, unsigned mode)</td></tr>
<tr class="memdesc:gaf5d991abde7579d8c3ef59bb372b1df8"><td class="mdescLeft"> </td><td class="mdescRight">Fast Fourier Transform a square, power-of-two sized image. <a href="#gaf5d991abde7579d8c3ef59bb372b1df8">More...</a><br /></td></tr>
<tr class="separator:gaf5d991abde7579d8c3ef59bb372b1df8"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:gaa5f1f46cc7b349834c229e7192e96f5f"><td class="memItemLeft" align="right" valign="top"><a class="el" href="group__cpl__error.html#ga44b4287e8a7a22122b94c220a1dd9459">cpl_error_code</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="group__cpl__image.html#gaa5f1f46cc7b349834c229e7192e96f5f">cpl_image_fill_abs_arg</a> (cpl_image *im_abs, cpl_image *im_arg, const cpl_image *self)</td></tr>
<tr class="memdesc:gaa5f1f46cc7b349834c229e7192e96f5f"><td class="mdescLeft"> </td><td class="mdescRight">Split a complex image into its absolute and argument part(s) <a href="#gaa5f1f46cc7b349834c229e7192e96f5f">More...</a><br /></td></tr>
<tr class="separator:gaa5f1f46cc7b349834c229e7192e96f5f"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:ga0e15ac361e648652fda6f1d2b63523ec"><td class="memItemLeft" align="right" valign="top"><a class="el" href="group__cpl__error.html#ga44b4287e8a7a22122b94c220a1dd9459">cpl_error_code</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="group__cpl__image.html#ga0e15ac361e648652fda6f1d2b63523ec">cpl_image_fill_gaussian</a> (cpl_image *ima, double xcen, double ycen, double norm, double sig_x, double sig_y)</td></tr>
<tr class="memdesc:ga0e15ac361e648652fda6f1d2b63523ec"><td class="mdescLeft"> </td><td class="mdescRight">Generate an image from a 2d gaussian function. <a href="#ga0e15ac361e648652fda6f1d2b63523ec">More...</a><br /></td></tr>
<tr class="separator:ga0e15ac361e648652fda6f1d2b63523ec"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:ga3a2ac9628c7dd3d8bc8355980474af72"><td class="memItemLeft" align="right" valign="top"><a class="el" href="group__cpl__error.html#ga44b4287e8a7a22122b94c220a1dd9459">cpl_error_code</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="group__cpl__image.html#ga3a2ac9628c7dd3d8bc8355980474af72">cpl_image_fill_jacobian</a> (cpl_image *out, const cpl_image *deltax, const cpl_image *deltay)</td></tr>
<tr class="memdesc:ga3a2ac9628c7dd3d8bc8355980474af72"><td class="mdescLeft"> </td><td class="mdescRight">Compute area change ratio for a transformation map. <a href="#ga3a2ac9628c7dd3d8bc8355980474af72">More...</a><br /></td></tr>
<tr class="separator:ga3a2ac9628c7dd3d8bc8355980474af72"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:ga9da9342bdd22b4db42abd6cdf32dd5c3"><td class="memItemLeft" align="right" valign="top"><a class="el" href="group__cpl__error.html#ga44b4287e8a7a22122b94c220a1dd9459">cpl_error_code</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="group__cpl__image.html#ga9da9342bdd22b4db42abd6cdf32dd5c3">cpl_image_fill_jacobian_polynomial</a> (cpl_image *out, const cpl_polynomial *poly_x, const cpl_polynomial *poly_y)</td></tr>
<tr class="memdesc:ga9da9342bdd22b4db42abd6cdf32dd5c3"><td class="mdescLeft"> </td><td class="mdescRight">Compute area change ratio for a 2D polynomial transformation. <a href="#ga9da9342bdd22b4db42abd6cdf32dd5c3">More...</a><br /></td></tr>
<tr class="separator:ga9da9342bdd22b4db42abd6cdf32dd5c3"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:gada6ca968668df48fa6510f0dc2da611f"><td class="memItemLeft" align="right" valign="top"><a class="el" href="group__cpl__error.html#ga44b4287e8a7a22122b94c220a1dd9459">cpl_error_code</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="group__cpl__image.html#gada6ca968668df48fa6510f0dc2da611f">cpl_image_fill_noise_uniform</a> (cpl_image *ima, double min_pix, double max_pix)</td></tr>
<tr class="memdesc:gada6ca968668df48fa6510f0dc2da611f"><td class="mdescLeft"> </td><td class="mdescRight">Generate an image with uniform random noise distribution. <a href="#gada6ca968668df48fa6510f0dc2da611f">More...</a><br /></td></tr>
<tr class="separator:gada6ca968668df48fa6510f0dc2da611f"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:ga3e46978badb07da8a75caf267452bf5d"><td class="memItemLeft" align="right" valign="top"><a class="el" href="group__cpl__error.html#ga44b4287e8a7a22122b94c220a1dd9459">cpl_error_code</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="group__cpl__image.html#ga3e46978badb07da8a75caf267452bf5d">cpl_image_fill_polynomial</a> (cpl_image *ima, const cpl_polynomial *poly, double startx, double stepx, double starty, double stepy)</td></tr>
<tr class="memdesc:ga3e46978badb07da8a75caf267452bf5d"><td class="mdescLeft"> </td><td class="mdescRight">Generate an image from a 2d polynomial function. <a href="#ga3e46978badb07da8a75caf267452bf5d">More...</a><br /></td></tr>
<tr class="separator:ga3e46978badb07da8a75caf267452bf5d"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:ga1118592995a5c9923526d3e540478133"><td class="memItemLeft" align="right" valign="top"><a class="el" href="group__cpl__error.html#ga44b4287e8a7a22122b94c220a1dd9459">cpl_error_code</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="group__cpl__image.html#ga1118592995a5c9923526d3e540478133">cpl_image_fill_re_im</a> (cpl_image *im_real, cpl_image *im_imag, const cpl_image *self)</td></tr>
<tr class="memdesc:ga1118592995a5c9923526d3e540478133"><td class="mdescLeft"> </td><td class="mdescRight">Split a complex image into its real and/or imaginary part(s) <a href="#ga1118592995a5c9923526d3e540478133">More...</a><br /></td></tr>
<tr class="separator:ga1118592995a5c9923526d3e540478133"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:gabdd5469f56fb6e7fa791b23fe459a75c"><td class="memItemLeft" align="right" valign="top"><a class="el" href="group__cpl__error.html#ga44b4287e8a7a22122b94c220a1dd9459">cpl_error_code</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="group__cpl__image.html#gabdd5469f56fb6e7fa791b23fe459a75c">cpl_image_fill_rejected</a> (cpl_image *im, double a)</td></tr>
<tr class="memdesc:gabdd5469f56fb6e7fa791b23fe459a75c"><td class="mdescLeft"> </td><td class="mdescRight">Set the bad pixels in an image to a fixed value. <a href="#gabdd5469f56fb6e7fa791b23fe459a75c">More...</a><br /></td></tr>
<tr class="separator:gabdd5469f56fb6e7fa791b23fe459a75c"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:ga096a8a3b65ad42f44f6d854c6594a4e1"><td class="memItemLeft" align="right" valign="top">cpl_image * </td><td class="memItemRight" valign="bottom"><a class="el" href="group__cpl__image.html#ga096a8a3b65ad42f44f6d854c6594a4e1">cpl_image_fill_test_create</a> (<a class="el" href="group__cpl__type.html#gacc431432a4fedf19ec6f7668dda3fbf0">cpl_size</a> nx, <a class="el" href="group__cpl__type.html#gacc431432a4fedf19ec6f7668dda3fbf0">cpl_size</a> ny)</td></tr>
<tr class="memdesc:ga096a8a3b65ad42f44f6d854c6594a4e1"><td class="mdescLeft"> </td><td class="mdescRight">Generate a test image with pixel type CPL_TYPE_DOUBLE. <a href="#ga096a8a3b65ad42f44f6d854c6594a4e1">More...</a><br /></td></tr>
<tr class="separator:ga096a8a3b65ad42f44f6d854c6594a4e1"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:gab2611352be67b89c2169cd49830c92ca"><td class="memItemLeft" align="right" valign="top"><a class="el" href="group__cpl__error.html#ga44b4287e8a7a22122b94c220a1dd9459">cpl_error_code</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="group__cpl__image.html#gab2611352be67b89c2169cd49830c92ca">cpl_image_fill_window</a> (cpl_image *self, <a class="el" href="group__cpl__type.html#gacc431432a4fedf19ec6f7668dda3fbf0">cpl_size</a> llx, <a class="el" href="group__cpl__type.html#gacc431432a4fedf19ec6f7668dda3fbf0">cpl_size</a> lly, <a class="el" href="group__cpl__type.html#gacc431432a4fedf19ec6f7668dda3fbf0">cpl_size</a> urx, <a class="el" href="group__cpl__type.html#gacc431432a4fedf19ec6f7668dda3fbf0">cpl_size</a> ury, double value)</td></tr>
<tr class="memdesc:gab2611352be67b89c2169cd49830c92ca"><td class="mdescLeft"> </td><td class="mdescRight">Fill an image window with a constant. <a href="#gab2611352be67b89c2169cd49830c92ca">More...</a><br /></td></tr>
<tr class="separator:gab2611352be67b89c2169cd49830c92ca"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:gacabd23385727059b61a8f20181485b05"><td class="memItemLeft" align="right" valign="top"><a class="el" href="group__cpl__error.html#ga44b4287e8a7a22122b94c220a1dd9459">cpl_error_code</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="group__cpl__image.html#gacabd23385727059b61a8f20181485b05">cpl_image_filter</a> (cpl_image *self, const cpl_image *other, const cpl_matrix *kernel, <a class="el" href="group__cpl__filter.html#ga4469cc9402438f791bbcccae762e0b2f">cpl_filter_mode</a> filter, <a class="el" href="group__cpl__filter.html#ga9d26d8ff5e92c0df5fae1289fae9ecbc">cpl_border_mode</a> border)</td></tr>
<tr class="memdesc:gacabd23385727059b61a8f20181485b05"><td class="mdescLeft"> </td><td class="mdescRight">Filter an image using a floating-point kernel. <a href="#gacabd23385727059b61a8f20181485b05">More...</a><br /></td></tr>
<tr class="separator:gacabd23385727059b61a8f20181485b05"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:gab4b4d2c7ec03d2f0e9f0abae612927b5"><td class="memItemLeft" align="right" valign="top">cpl_image * </td><td class="memItemRight" valign="bottom"><a class="el" href="group__cpl__image.html#gab4b4d2c7ec03d2f0e9f0abae612927b5">cpl_image_filter_linear</a> (const cpl_image *in, const cpl_matrix *ker)</td></tr>
<tr class="memdesc:gab4b4d2c7ec03d2f0e9f0abae612927b5"><td class="mdescLeft"> </td><td class="mdescRight">Compute a linear filtering. <a href="#gab4b4d2c7ec03d2f0e9f0abae612927b5">More...</a><br /></td></tr>
<tr class="separator:gab4b4d2c7ec03d2f0e9f0abae612927b5"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:ga09c5ec8125d5ad2d14824106ac78061c"><td class="memItemLeft" align="right" valign="top"><a class="el" href="group__cpl__error.html#ga44b4287e8a7a22122b94c220a1dd9459">cpl_error_code</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="group__cpl__image.html#ga09c5ec8125d5ad2d14824106ac78061c">cpl_image_filter_mask</a> (cpl_image *self, const cpl_image *other, const cpl_mask *kernel, <a class="el" href="group__cpl__filter.html#ga4469cc9402438f791bbcccae762e0b2f">cpl_filter_mode</a> filter, <a class="el" href="group__cpl__filter.html#ga9d26d8ff5e92c0df5fae1289fae9ecbc">cpl_border_mode</a> border)</td></tr>
<tr class="memdesc:ga09c5ec8125d5ad2d14824106ac78061c"><td class="mdescLeft"> </td><td class="mdescRight">Filter an image using a binary kernel. <a href="#ga09c5ec8125d5ad2d14824106ac78061c">More...</a><br /></td></tr>
<tr class="separator:ga09c5ec8125d5ad2d14824106ac78061c"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:ga52d2e5aa1ce2c9bc3c560209e344ba40"><td class="memItemLeft" align="right" valign="top">cpl_image * </td><td class="memItemRight" valign="bottom"><a class="el" href="group__cpl__image.html#ga52d2e5aa1ce2c9bc3c560209e344ba40">cpl_image_filter_median</a> (const cpl_image *in, const cpl_matrix *ker)</td></tr>
<tr class="memdesc:ga52d2e5aa1ce2c9bc3c560209e344ba40"><td class="mdescLeft"> </td><td class="mdescRight">Apply a spatial median filter to an image. <a href="#ga52d2e5aa1ce2c9bc3c560209e344ba40">More...</a><br /></td></tr>
<tr class="separator:ga52d2e5aa1ce2c9bc3c560209e344ba40"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:ga22149f62af2c9c0c02ac7a5bf9c259c1"><td class="memItemLeft" align="right" valign="top">cpl_image * </td><td class="memItemRight" valign="bottom"><a class="el" href="group__cpl__image.html#ga22149f62af2c9c0c02ac7a5bf9c259c1">cpl_image_filter_morpho</a> (const cpl_image *in, const cpl_matrix *ker)</td></tr>
<tr class="memdesc:ga22149f62af2c9c0c02ac7a5bf9c259c1"><td class="mdescLeft"> </td><td class="mdescRight">Filter an image in spatial domain with a morpho kernel. <a href="#ga22149f62af2c9c0c02ac7a5bf9c259c1">More...</a><br /></td></tr>
<tr class="separator:ga22149f62af2c9c0c02ac7a5bf9c259c1"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:ga19d4e60abbeaf99717d3985c76aaadbd"><td class="memItemLeft" align="right" valign="top">cpl_image * </td><td class="memItemRight" valign="bottom"><a class="el" href="group__cpl__image.html#ga19d4e60abbeaf99717d3985c76aaadbd">cpl_image_filter_stdev</a> (const cpl_image *in, const cpl_matrix *ker)</td></tr>
<tr class="memdesc:ga19d4e60abbeaf99717d3985c76aaadbd"><td class="mdescLeft"> </td><td class="mdescRight">Standard deviation filter. <a href="#ga19d4e60abbeaf99717d3985c76aaadbd">More...</a><br /></td></tr>
<tr class="separator:ga19d4e60abbeaf99717d3985c76aaadbd"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:ga3cee6b4b3544f5e44d246d31731fedc9"><td class="memItemLeft" align="right" valign="top"><a class="el" href="group__cpl__error.html#ga44b4287e8a7a22122b94c220a1dd9459">cpl_error_code</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="group__cpl__image.html#ga3cee6b4b3544f5e44d246d31731fedc9">cpl_image_fit_gaussian</a> (const cpl_image *im, <a class="el" href="group__cpl__type.html#gacc431432a4fedf19ec6f7668dda3fbf0">cpl_size</a> xpos, <a class="el" href="group__cpl__type.html#gacc431432a4fedf19ec6f7668dda3fbf0">cpl_size</a> ypos, <a class="el" href="group__cpl__type.html#gacc431432a4fedf19ec6f7668dda3fbf0">cpl_size</a> size, double *norm, double *xcen, double *ycen, double *sig_x, double *sig_y, double *fwhm_x, double *fwhm_y)</td></tr>
<tr class="memdesc:ga3cee6b4b3544f5e44d246d31731fedc9"><td class="mdescLeft"> </td><td class="mdescRight">Apply a gaussian fit on an image sub window. <a href="#ga3cee6b4b3544f5e44d246d31731fedc9">More...</a><br /></td></tr>
<tr class="separator:ga3cee6b4b3544f5e44d246d31731fedc9"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:gad56b75f0a57369da35456feb764f567b"><td class="memItemLeft" align="right" valign="top"><a class="el" href="group__cpl__error.html#ga44b4287e8a7a22122b94c220a1dd9459">cpl_error_code</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="group__cpl__image.html#gad56b75f0a57369da35456feb764f567b">cpl_image_flip</a> (cpl_image *im, int angle)</td></tr>
<tr class="memdesc:gad56b75f0a57369da35456feb764f567b"><td class="mdescLeft"> </td><td class="mdescRight">Flip an image on a given mirror line. <a href="#gad56b75f0a57369da35456feb764f567b">More...</a><br /></td></tr>
<tr class="separator:gad56b75f0a57369da35456feb764f567b"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:gacff07271c74fa513b507d886935abdc6"><td class="memItemLeft" align="right" valign="top">double </td><td class="memItemRight" valign="bottom"><a class="el" href="group__cpl__image.html#gacff07271c74fa513b507d886935abdc6">cpl_image_get</a> (const cpl_image *image, <a class="el" href="group__cpl__type.html#gacc431432a4fedf19ec6f7668dda3fbf0">cpl_size</a> xpos, <a class="el" href="group__cpl__type.html#gacc431432a4fedf19ec6f7668dda3fbf0">cpl_size</a> ypos, int *pis_rejected)</td></tr>
<tr class="memdesc:gacff07271c74fa513b507d886935abdc6"><td class="mdescLeft"> </td><td class="mdescRight">Get the value of a pixel at a given position. <a href="#gacff07271c74fa513b507d886935abdc6">More...</a><br /></td></tr>
<tr class="separator:gacff07271c74fa513b507d886935abdc6"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:gaefffa452a6a75e6779295239bfef871c"><td class="memItemLeft" align="right" valign="top">double </td><td class="memItemRight" valign="bottom"><a class="el" href="group__cpl__image.html#gaefffa452a6a75e6779295239bfef871c">cpl_image_get_absflux</a> (const cpl_image *image)</td></tr>
<tr class="memdesc:gaefffa452a6a75e6779295239bfef871c"><td class="mdescLeft"> </td><td class="mdescRight">Computes the sum of absolute values over an image. <a href="#gaefffa452a6a75e6779295239bfef871c">More...</a><br /></td></tr>
<tr class="separator:gaefffa452a6a75e6779295239bfef871c"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:gacb3a17f03954315acdaeaf37de59ce9f"><td class="memItemLeft" align="right" valign="top">double </td><td class="memItemRight" valign="bottom"><a class="el" href="group__cpl__image.html#gacb3a17f03954315acdaeaf37de59ce9f">cpl_image_get_absflux_window</a> (const cpl_image *image, <a class="el" href="group__cpl__type.html#gacc431432a4fedf19ec6f7668dda3fbf0">cpl_size</a> llx, <a class="el" href="group__cpl__type.html#gacc431432a4fedf19ec6f7668dda3fbf0">cpl_size</a> lly, <a class="el" href="group__cpl__type.html#gacc431432a4fedf19ec6f7668dda3fbf0">cpl_size</a> urx, <a class="el" href="group__cpl__type.html#gacc431432a4fedf19ec6f7668dda3fbf0">cpl_size</a> ury)</td></tr>
<tr class="memdesc:gacb3a17f03954315acdaeaf37de59ce9f"><td class="mdescLeft"> </td><td class="mdescRight">Computes the sum of absolute values over an image sub-window. <a href="#gacb3a17f03954315acdaeaf37de59ce9f">More...</a><br /></td></tr>
<tr class="separator:gacb3a17f03954315acdaeaf37de59ce9f"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:gae9bede9669991943541a96e6921b4637"><td class="memItemLeft" align="right" valign="top">cpl_mask * </td><td class="memItemRight" valign="bottom"><a class="el" href="group__cpl__image.html#gae9bede9669991943541a96e6921b4637">cpl_image_get_bpm</a> (cpl_image *img)</td></tr>
<tr class="memdesc:gae9bede9669991943541a96e6921b4637"><td class="mdescLeft"> </td><td class="mdescRight">Gets the bad pixels map. <a href="#gae9bede9669991943541a96e6921b4637">More...</a><br /></td></tr>
<tr class="separator:gae9bede9669991943541a96e6921b4637"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:gaa199c6fc00ac1d83ed37fb9717e2c4bd"><td class="memItemLeft" align="right" valign="top">const cpl_mask * </td><td class="memItemRight" valign="bottom"><a class="el" href="group__cpl__image.html#gaa199c6fc00ac1d83ed37fb9717e2c4bd">cpl_image_get_bpm_const</a> (const cpl_image *img)</td></tr>
<tr class="memdesc:gaa199c6fc00ac1d83ed37fb9717e2c4bd"><td class="mdescLeft"> </td><td class="mdescRight">Gets the bad pixels map. <a href="#gaa199c6fc00ac1d83ed37fb9717e2c4bd">More...</a><br /></td></tr>
<tr class="separator:gaa199c6fc00ac1d83ed37fb9717e2c4bd"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:ga5cafcee0630dff8e90737e581b9095a2"><td class="memItemLeft" align="right" valign="top">double </td><td class="memItemRight" valign="bottom"><a class="el" href="group__cpl__image.html#ga5cafcee0630dff8e90737e581b9095a2">cpl_image_get_centroid_x</a> (const cpl_image *image)</td></tr>
<tr class="memdesc:ga5cafcee0630dff8e90737e581b9095a2"><td class="mdescLeft"> </td><td class="mdescRight">Computes the x centroid value over the whole image. <a href="#ga5cafcee0630dff8e90737e581b9095a2">More...</a><br /></td></tr>
<tr class="separator:ga5cafcee0630dff8e90737e581b9095a2"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:ga2c3725313546156cf8100290e1268816"><td class="memItemLeft" align="right" valign="top">double </td><td class="memItemRight" valign="bottom"><a class="el" href="group__cpl__image.html#ga2c3725313546156cf8100290e1268816">cpl_image_get_centroid_x_window</a> (const cpl_image *image, <a class="el" href="group__cpl__type.html#gacc431432a4fedf19ec6f7668dda3fbf0">cpl_size</a> llx, <a class="el" href="group__cpl__type.html#gacc431432a4fedf19ec6f7668dda3fbf0">cpl_size</a> lly, <a class="el" href="group__cpl__type.html#gacc431432a4fedf19ec6f7668dda3fbf0">cpl_size</a> urx, <a class="el" href="group__cpl__type.html#gacc431432a4fedf19ec6f7668dda3fbf0">cpl_size</a> ury)</td></tr>
<tr class="memdesc:ga2c3725313546156cf8100290e1268816"><td class="mdescLeft"> </td><td class="mdescRight">Computes the x centroid value over an image sub-window. <a href="#ga2c3725313546156cf8100290e1268816">More...</a><br /></td></tr>
<tr class="separator:ga2c3725313546156cf8100290e1268816"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:ga1ae1cd3e307d033692fc8d634afc85c0"><td class="memItemLeft" align="right" valign="top">double </td><td class="memItemRight" valign="bottom"><a class="el" href="group__cpl__image.html#ga1ae1cd3e307d033692fc8d634afc85c0">cpl_image_get_centroid_y</a> (const cpl_image *image)</td></tr>
<tr class="memdesc:ga1ae1cd3e307d033692fc8d634afc85c0"><td class="mdescLeft"> </td><td class="mdescRight">Computes the y centroid value over the whole image. <a href="#ga1ae1cd3e307d033692fc8d634afc85c0">More...</a><br /></td></tr>
<tr class="separator:ga1ae1cd3e307d033692fc8d634afc85c0"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:gaf9ba926ded9715dc80a734f186231baf"><td class="memItemLeft" align="right" valign="top">double </td><td class="memItemRight" valign="bottom"><a class="el" href="group__cpl__image.html#gaf9ba926ded9715dc80a734f186231baf">cpl_image_get_centroid_y_window</a> (const cpl_image *image, <a class="el" href="group__cpl__type.html#gacc431432a4fedf19ec6f7668dda3fbf0">cpl_size</a> llx, <a class="el" href="group__cpl__type.html#gacc431432a4fedf19ec6f7668dda3fbf0">cpl_size</a> lly, <a class="el" href="group__cpl__type.html#gacc431432a4fedf19ec6f7668dda3fbf0">cpl_size</a> urx, <a class="el" href="group__cpl__type.html#gacc431432a4fedf19ec6f7668dda3fbf0">cpl_size</a> ury)</td></tr>
<tr class="memdesc:gaf9ba926ded9715dc80a734f186231baf"><td class="mdescLeft"> </td><td class="mdescRight">Computes the y centroid value over an image sub-window. <a href="#gaf9ba926ded9715dc80a734f186231baf">More...</a><br /></td></tr>
<tr class="separator:gaf9ba926ded9715dc80a734f186231baf"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:ga3adcb937ee2f58e610ff65f8433a7126"><td class="memItemLeft" align="right" valign="top">double complex </td><td class="memItemRight" valign="bottom"><a class="el" href="group__cpl__image.html#ga3adcb937ee2f58e610ff65f8433a7126">cpl_image_get_complex</a> (const cpl_image *image, <a class="el" href="group__cpl__type.html#gacc431432a4fedf19ec6f7668dda3fbf0">cpl_size</a> xpos, <a class="el" href="group__cpl__type.html#gacc431432a4fedf19ec6f7668dda3fbf0">cpl_size</a> ypos, int *pis_rejected)</td></tr>
<tr class="memdesc:ga3adcb937ee2f58e610ff65f8433a7126"><td class="mdescLeft"> </td><td class="mdescRight">Get the value of a complex pixel at a given position. <a href="#ga3adcb937ee2f58e610ff65f8433a7126">More...</a><br /></td></tr>
<tr class="separator:ga3adcb937ee2f58e610ff65f8433a7126"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:ga0b497875edfee08e540e69c2baea1ab4"><td class="memItemLeft" align="right" valign="top">void * </td><td class="memItemRight" valign="bottom"><a class="el" href="group__cpl__image.html#ga0b497875edfee08e540e69c2baea1ab4">cpl_image_get_data</a> (cpl_image *img)</td></tr>
<tr class="memdesc:ga0b497875edfee08e540e69c2baea1ab4"><td class="mdescLeft"> </td><td class="mdescRight">Gets the pixel data. <a href="#ga0b497875edfee08e540e69c2baea1ab4">More...</a><br /></td></tr>
<tr class="separator:ga0b497875edfee08e540e69c2baea1ab4"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:ga670404d662c8420249028acc8025121b"><td class="memItemLeft" align="right" valign="top">const void * </td><td class="memItemRight" valign="bottom"><a class="el" href="group__cpl__image.html#ga670404d662c8420249028acc8025121b">cpl_image_get_data_const</a> (const cpl_image *img)</td></tr>
<tr class="memdesc:ga670404d662c8420249028acc8025121b"><td class="mdescLeft"> </td><td class="mdescRight">Gets the pixel data. <a href="#ga670404d662c8420249028acc8025121b">More...</a><br /></td></tr>
<tr class="separator:ga670404d662c8420249028acc8025121b"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:ga8a13105cf06807666c2a59ddd249ace7"><td class="memItemLeft" align="right" valign="top">double * </td><td class="memItemRight" valign="bottom"><a class="el" href="group__cpl__image.html#ga8a13105cf06807666c2a59ddd249ace7">cpl_image_get_data_double</a> (cpl_image *img)</td></tr>
<tr class="memdesc:ga8a13105cf06807666c2a59ddd249ace7"><td class="mdescLeft"> </td><td class="mdescRight">Get the data as a double array. <a href="#ga8a13105cf06807666c2a59ddd249ace7">More...</a><br /></td></tr>
<tr class="separator:ga8a13105cf06807666c2a59ddd249ace7"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:gad53df4fee966a1812300223acf87d694"><td class="memItemLeft" align="right" valign="top">double complex * </td><td class="memItemRight" valign="bottom"><a class="el" href="group__cpl__image.html#gad53df4fee966a1812300223acf87d694">cpl_image_get_data_double_complex</a> (cpl_image *img)</td></tr>
<tr class="memdesc:gad53df4fee966a1812300223acf87d694"><td class="mdescLeft"> </td><td class="mdescRight">Get the data as a double complex array. <a href="#gad53df4fee966a1812300223acf87d694">More...</a><br /></td></tr>
<tr class="separator:gad53df4fee966a1812300223acf87d694"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:ga1573caf53f69504de560916ef719ef73"><td class="memItemLeft" align="right" valign="top">const double complex * </td><td class="memItemRight" valign="bottom"><a class="el" href="group__cpl__image.html#ga1573caf53f69504de560916ef719ef73">cpl_image_get_data_double_complex_const</a> (const cpl_image *img)</td></tr>
<tr class="memdesc:ga1573caf53f69504de560916ef719ef73"><td class="mdescLeft"> </td><td class="mdescRight">Get the data as a double complex array. <a href="#ga1573caf53f69504de560916ef719ef73">More...</a><br /></td></tr>
<tr class="separator:ga1573caf53f69504de560916ef719ef73"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:ga2bf936dc6e939e2be9b8bd0d959c52e8"><td class="memItemLeft" align="right" valign="top">const double * </td><td class="memItemRight" valign="bottom"><a class="el" href="group__cpl__image.html#ga2bf936dc6e939e2be9b8bd0d959c52e8">cpl_image_get_data_double_const</a> (const cpl_image *img)</td></tr>
<tr class="memdesc:ga2bf936dc6e939e2be9b8bd0d959c52e8"><td class="mdescLeft"> </td><td class="mdescRight">Get the data as a double array. <a href="#ga2bf936dc6e939e2be9b8bd0d959c52e8">More...</a><br /></td></tr>
<tr class="separator:ga2bf936dc6e939e2be9b8bd0d959c52e8"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:gac2274dda6fec382047a7377c5b9925f5"><td class="memItemLeft" align="right" valign="top">float * </td><td class="memItemRight" valign="bottom"><a class="el" href="group__cpl__image.html#gac2274dda6fec382047a7377c5b9925f5">cpl_image_get_data_float</a> (cpl_image *img)</td></tr>
<tr class="memdesc:gac2274dda6fec382047a7377c5b9925f5"><td class="mdescLeft"> </td><td class="mdescRight">Get the data as a float array. <a href="#gac2274dda6fec382047a7377c5b9925f5">More...</a><br /></td></tr>
<tr class="separator:gac2274dda6fec382047a7377c5b9925f5"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:gacc1aeb1704e85e838ed9a6b4e2f1016e"><td class="memItemLeft" align="right" valign="top">float complex * </td><td class="memItemRight" valign="bottom"><a class="el" href="group__cpl__image.html#gacc1aeb1704e85e838ed9a6b4e2f1016e">cpl_image_get_data_float_complex</a> (cpl_image *img)</td></tr>
<tr class="memdesc:gacc1aeb1704e85e838ed9a6b4e2f1016e"><td class="mdescLeft"> </td><td class="mdescRight">Get the data as a float complex array. <a href="#gacc1aeb1704e85e838ed9a6b4e2f1016e">More...</a><br /></td></tr>
<tr class="separator:gacc1aeb1704e85e838ed9a6b4e2f1016e"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:gac7315f2d4e7e2d6598434146671c2c8d"><td class="memItemLeft" align="right" valign="top">const float complex * </td><td class="memItemRight" valign="bottom"><a class="el" href="group__cpl__image.html#gac7315f2d4e7e2d6598434146671c2c8d">cpl_image_get_data_float_complex_const</a> (const cpl_image *img)</td></tr>
<tr class="memdesc:gac7315f2d4e7e2d6598434146671c2c8d"><td class="mdescLeft"> </td><td class="mdescRight">Get the data as a float complex array. <a href="#gac7315f2d4e7e2d6598434146671c2c8d">More...</a><br /></td></tr>
<tr class="separator:gac7315f2d4e7e2d6598434146671c2c8d"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:gacb6522d252bf521aed984aff1dc71108"><td class="memItemLeft" align="right" valign="top">const float * </td><td class="memItemRight" valign="bottom"><a class="el" href="group__cpl__image.html#gacb6522d252bf521aed984aff1dc71108">cpl_image_get_data_float_const</a> (const cpl_image *img)</td></tr>
<tr class="memdesc:gacb6522d252bf521aed984aff1dc71108"><td class="mdescLeft"> </td><td class="mdescRight">Get the data as a float array. <a href="#gacb6522d252bf521aed984aff1dc71108">More...</a><br /></td></tr>
<tr class="separator:gacb6522d252bf521aed984aff1dc71108"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:ga0cf5fafaaece943afc2949c5d04d29ba"><td class="memItemLeft" align="right" valign="top">int * </td><td class="memItemRight" valign="bottom"><a class="el" href="group__cpl__image.html#ga0cf5fafaaece943afc2949c5d04d29ba">cpl_image_get_data_int</a> (cpl_image *img)</td></tr>
<tr class="memdesc:ga0cf5fafaaece943afc2949c5d04d29ba"><td class="mdescLeft"> </td><td class="mdescRight">Get the data as a integer array. <a href="#ga0cf5fafaaece943afc2949c5d04d29ba">More...</a><br /></td></tr>
<tr class="separator:ga0cf5fafaaece943afc2949c5d04d29ba"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:ga948d7fe4814246e6f0dcb6c63217705b"><td class="memItemLeft" align="right" valign="top">const int * </td><td class="memItemRight" valign="bottom"><a class="el" href="group__cpl__image.html#ga948d7fe4814246e6f0dcb6c63217705b">cpl_image_get_data_int_const</a> (const cpl_image *img)</td></tr>
<tr class="memdesc:ga948d7fe4814246e6f0dcb6c63217705b"><td class="mdescLeft"> </td><td class="mdescRight">Get the data as a integer array. <a href="#ga948d7fe4814246e6f0dcb6c63217705b">More...</a><br /></td></tr>
<tr class="separator:ga948d7fe4814246e6f0dcb6c63217705b"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:ga31362a6926babd7f71b2583bc2fa6bb9"><td class="memItemLeft" align="right" valign="top">double </td><td class="memItemRight" valign="bottom"><a class="el" href="group__cpl__image.html#ga31362a6926babd7f71b2583bc2fa6bb9">cpl_image_get_flux</a> (const cpl_image *image)</td></tr>
<tr class="memdesc:ga31362a6926babd7f71b2583bc2fa6bb9"><td class="mdescLeft"> </td><td class="mdescRight">Computes the sum of pixel values over an image. <a href="#ga31362a6926babd7f71b2583bc2fa6bb9">More...</a><br /></td></tr>
<tr class="separator:ga31362a6926babd7f71b2583bc2fa6bb9"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:gae6520040bd3c5fc291a1f0cbca45cbfb"><td class="memItemLeft" align="right" valign="top">double </td><td class="memItemRight" valign="bottom"><a class="el" href="group__cpl__image.html#gae6520040bd3c5fc291a1f0cbca45cbfb">cpl_image_get_flux_window</a> (const cpl_image *image, <a class="el" href="group__cpl__type.html#gacc431432a4fedf19ec6f7668dda3fbf0">cpl_size</a> llx, <a class="el" href="group__cpl__type.html#gacc431432a4fedf19ec6f7668dda3fbf0">cpl_size</a> lly, <a class="el" href="group__cpl__type.html#gacc431432a4fedf19ec6f7668dda3fbf0">cpl_size</a> urx, <a class="el" href="group__cpl__type.html#gacc431432a4fedf19ec6f7668dda3fbf0">cpl_size</a> ury)</td></tr>
<tr class="memdesc:gae6520040bd3c5fc291a1f0cbca45cbfb"><td class="mdescLeft"> </td><td class="mdescRight">Computes the sum of pixel values over an image sub-window. <a href="#gae6520040bd3c5fc291a1f0cbca45cbfb">More...</a><br /></td></tr>
<tr class="separator:gae6520040bd3c5fc291a1f0cbca45cbfb"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:gad26891c8556c11a731cdedaa5fbbb009"><td class="memItemLeft" align="right" valign="top"><a class="el" href="group__cpl__error.html#ga44b4287e8a7a22122b94c220a1dd9459">cpl_error_code</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="group__cpl__image.html#gad26891c8556c11a731cdedaa5fbbb009">cpl_image_get_fwhm</a> (const cpl_image *in, <a class="el" href="group__cpl__type.html#gacc431432a4fedf19ec6f7668dda3fbf0">cpl_size</a> xpos, <a class="el" href="group__cpl__type.html#gacc431432a4fedf19ec6f7668dda3fbf0">cpl_size</a> ypos, double *fwhm_x, double *fwhm_y)</td></tr>
<tr class="memdesc:gad26891c8556c11a731cdedaa5fbbb009"><td class="mdescLeft"> </td><td class="mdescRight">Compute FWHM values in x and y for an object. <a href="#gad26891c8556c11a731cdedaa5fbbb009">More...</a><br /></td></tr>
<tr class="separator:gad26891c8556c11a731cdedaa5fbbb009"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:ga7b4a871df75c1e8198ebe9359efd181b"><td class="memItemLeft" align="right" valign="top">double </td><td class="memItemRight" valign="bottom"><a class="el" href="group__cpl__image.html#ga7b4a871df75c1e8198ebe9359efd181b">cpl_image_get_interpolated</a> (const cpl_image *source, double xpos, double ypos, const cpl_vector *xprofile, double xradius, const cpl_vector *yprofile, double yradius, double *pconfid)</td></tr>
<tr class="memdesc:ga7b4a871df75c1e8198ebe9359efd181b"><td class="mdescLeft"> </td><td class="mdescRight">Interpolate a pixel. <a href="#ga7b4a871df75c1e8198ebe9359efd181b">More...</a><br /></td></tr>
<tr class="separator:ga7b4a871df75c1e8198ebe9359efd181b"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:gaf15780319773b70e79e16f7a7e13f53f"><td class="memItemLeft" align="right" valign="top">double </td><td class="memItemRight" valign="bottom"><a class="el" href="group__cpl__image.html#gaf15780319773b70e79e16f7a7e13f53f">cpl_image_get_mad</a> (const cpl_image *image, double *sigma)</td></tr>
<tr class="memdesc:gaf15780319773b70e79e16f7a7e13f53f"><td class="mdescLeft"> </td><td class="mdescRight">Computes median and median absolute deviation (MAD) on an image. <a href="#gaf15780319773b70e79e16f7a7e13f53f">More...</a><br /></td></tr>
<tr class="separator:gaf15780319773b70e79e16f7a7e13f53f"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:gaa28d60432aa6fcca80f2c5ae4e5f5aa3"><td class="memItemLeft" align="right" valign="top">double </td><td class="memItemRight" valign="bottom"><a class="el" href="group__cpl__image.html#gaa28d60432aa6fcca80f2c5ae4e5f5aa3">cpl_image_get_mad_window</a> (const cpl_image *image, <a class="el" href="group__cpl__type.html#gacc431432a4fedf19ec6f7668dda3fbf0">cpl_size</a> llx, <a class="el" href="group__cpl__type.html#gacc431432a4fedf19ec6f7668dda3fbf0">cpl_size</a> lly, <a class="el" href="group__cpl__type.html#gacc431432a4fedf19ec6f7668dda3fbf0">cpl_size</a> urx, <a class="el" href="group__cpl__type.html#gacc431432a4fedf19ec6f7668dda3fbf0">cpl_size</a> ury, double *sigma)</td></tr>
<tr class="memdesc:gaa28d60432aa6fcca80f2c5ae4e5f5aa3"><td class="mdescLeft"> </td><td class="mdescRight">Computes median and median absolute deviation (MAD) on an image window. <a href="#gaa28d60432aa6fcca80f2c5ae4e5f5aa3">More...</a><br /></td></tr>
<tr class="separator:gaa28d60432aa6fcca80f2c5ae4e5f5aa3"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:gabf0fdb334ef6a45c1dd0d7e20e7cea49"><td class="memItemLeft" align="right" valign="top">double </td><td class="memItemRight" valign="bottom"><a class="el" href="group__cpl__image.html#gabf0fdb334ef6a45c1dd0d7e20e7cea49">cpl_image_get_max</a> (const cpl_image *image)</td></tr>
<tr class="memdesc:gabf0fdb334ef6a45c1dd0d7e20e7cea49"><td class="mdescLeft"> </td><td class="mdescRight">computes maximum pixel value over an image. <a href="#gabf0fdb334ef6a45c1dd0d7e20e7cea49">More...</a><br /></td></tr>
<tr class="separator:gabf0fdb334ef6a45c1dd0d7e20e7cea49"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:gaac24d6b2971704550d4f3493b45a4f2a"><td class="memItemLeft" align="right" valign="top">double </td><td class="memItemRight" valign="bottom"><a class="el" href="group__cpl__image.html#gaac24d6b2971704550d4f3493b45a4f2a">cpl_image_get_max_window</a> (const cpl_image *image, <a class="el" href="group__cpl__type.html#gacc431432a4fedf19ec6f7668dda3fbf0">cpl_size</a> llx, <a class="el" href="group__cpl__type.html#gacc431432a4fedf19ec6f7668dda3fbf0">cpl_size</a> lly, <a class="el" href="group__cpl__type.html#gacc431432a4fedf19ec6f7668dda3fbf0">cpl_size</a> urx, <a class="el" href="group__cpl__type.html#gacc431432a4fedf19ec6f7668dda3fbf0">cpl_size</a> ury)</td></tr>
<tr class="memdesc:gaac24d6b2971704550d4f3493b45a4f2a"><td class="mdescLeft"> </td><td class="mdescRight">computes maximum pixel value over an image sub-window. <a href="#gaac24d6b2971704550d4f3493b45a4f2a">More...</a><br /></td></tr>
<tr class="separator:gaac24d6b2971704550d4f3493b45a4f2a"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:ga8a8c567d32935c3da1a1f6b47355f53a"><td class="memItemLeft" align="right" valign="top"><a class="el" href="group__cpl__error.html#ga44b4287e8a7a22122b94c220a1dd9459">cpl_error_code</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="group__cpl__image.html#ga8a8c567d32935c3da1a1f6b47355f53a">cpl_image_get_maxpos</a> (const cpl_image *image, <a class="el" href="group__cpl__type.html#gacc431432a4fedf19ec6f7668dda3fbf0">cpl_size</a> *px, <a class="el" href="group__cpl__type.html#gacc431432a4fedf19ec6f7668dda3fbf0">cpl_size</a> *py)</td></tr>
<tr class="memdesc:ga8a8c567d32935c3da1a1f6b47355f53a"><td class="mdescLeft"> </td><td class="mdescRight">Computes maximum pixel value and position over an image. <a href="#ga8a8c567d32935c3da1a1f6b47355f53a">More...</a><br /></td></tr>
<tr class="separator:ga8a8c567d32935c3da1a1f6b47355f53a"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:gac6047366e8fef5c435b15f68e7690a4b"><td class="memItemLeft" align="right" valign="top"><a class="el" href="group__cpl__error.html#ga44b4287e8a7a22122b94c220a1dd9459">cpl_error_code</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="group__cpl__image.html#gac6047366e8fef5c435b15f68e7690a4b">cpl_image_get_maxpos_window</a> (const cpl_image *image, <a class="el" href="group__cpl__type.html#gacc431432a4fedf19ec6f7668dda3fbf0">cpl_size</a> llx, <a class="el" href="group__cpl__type.html#gacc431432a4fedf19ec6f7668dda3fbf0">cpl_size</a> lly, <a class="el" href="group__cpl__type.html#gacc431432a4fedf19ec6f7668dda3fbf0">cpl_size</a> urx, <a class="el" href="group__cpl__type.html#gacc431432a4fedf19ec6f7668dda3fbf0">cpl_size</a> ury, <a class="el" href="group__cpl__type.html#gacc431432a4fedf19ec6f7668dda3fbf0">cpl_size</a> *px, <a class="el" href="group__cpl__type.html#gacc431432a4fedf19ec6f7668dda3fbf0">cpl_size</a> *py)</td></tr>
<tr class="memdesc:gac6047366e8fef5c435b15f68e7690a4b"><td class="mdescLeft"> </td><td class="mdescRight">Computes maximum pixel value and position over an image sub window. <a href="#gac6047366e8fef5c435b15f68e7690a4b">More...</a><br /></td></tr>
<tr class="separator:gac6047366e8fef5c435b15f68e7690a4b"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:gae5e53e16a908d98359aa77ffb59b24ee"><td class="memItemLeft" align="right" valign="top">double </td><td class="memItemRight" valign="bottom"><a class="el" href="group__cpl__image.html#gae5e53e16a908d98359aa77ffb59b24ee">cpl_image_get_mean</a> (const cpl_image *image)</td></tr>
<tr class="memdesc:gae5e53e16a908d98359aa77ffb59b24ee"><td class="mdescLeft"> </td><td class="mdescRight">computes mean pixel value over an image. <a href="#gae5e53e16a908d98359aa77ffb59b24ee">More...</a><br /></td></tr>
<tr class="separator:gae5e53e16a908d98359aa77ffb59b24ee"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:ga61020c5f1350bfeff750dcb710b55ee1"><td class="memItemLeft" align="right" valign="top">double </td><td class="memItemRight" valign="bottom"><a class="el" href="group__cpl__image.html#ga61020c5f1350bfeff750dcb710b55ee1">cpl_image_get_mean_window</a> (const cpl_image *image, <a class="el" href="group__cpl__type.html#gacc431432a4fedf19ec6f7668dda3fbf0">cpl_size</a> llx, <a class="el" href="group__cpl__type.html#gacc431432a4fedf19ec6f7668dda3fbf0">cpl_size</a> lly, <a class="el" href="group__cpl__type.html#gacc431432a4fedf19ec6f7668dda3fbf0">cpl_size</a> urx, <a class="el" href="group__cpl__type.html#gacc431432a4fedf19ec6f7668dda3fbf0">cpl_size</a> ury)</td></tr>
<tr class="memdesc:ga61020c5f1350bfeff750dcb710b55ee1"><td class="mdescLeft"> </td><td class="mdescRight">computes mean pixel value over an image sub-window. <a href="#ga61020c5f1350bfeff750dcb710b55ee1">More...</a><br /></td></tr>
<tr class="separator:ga61020c5f1350bfeff750dcb710b55ee1"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:ga4c38dfd3293ad052aa0237e3a759307c"><td class="memItemLeft" align="right" valign="top">double </td><td class="memItemRight" valign="bottom"><a class="el" href="group__cpl__image.html#ga4c38dfd3293ad052aa0237e3a759307c">cpl_image_get_median</a> (const cpl_image *image)</td></tr>
<tr class="memdesc:ga4c38dfd3293ad052aa0237e3a759307c"><td class="mdescLeft"> </td><td class="mdescRight">computes median pixel value over an image. <a href="#ga4c38dfd3293ad052aa0237e3a759307c">More...</a><br /></td></tr>
<tr class="separator:ga4c38dfd3293ad052aa0237e3a759307c"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:ga2f2b6c1b96b88fd355c50a5fa063e2eb"><td class="memItemLeft" align="right" valign="top">double </td><td class="memItemRight" valign="bottom"><a class="el" href="group__cpl__image.html#ga2f2b6c1b96b88fd355c50a5fa063e2eb">cpl_image_get_median_dev</a> (const cpl_image *image, double *sigma)</td></tr>
<tr class="memdesc:ga2f2b6c1b96b88fd355c50a5fa063e2eb"><td class="mdescLeft"> </td><td class="mdescRight">Computes median and mean absolute median deviation on an image window. <a href="#ga2f2b6c1b96b88fd355c50a5fa063e2eb">More...</a><br /></td></tr>
<tr class="separator:ga2f2b6c1b96b88fd355c50a5fa063e2eb"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:ga965f608f9b39076fc66971691e30863e"><td class="memItemLeft" align="right" valign="top">double </td><td class="memItemRight" valign="bottom"><a class="el" href="group__cpl__image.html#ga965f608f9b39076fc66971691e30863e">cpl_image_get_median_dev_window</a> (const cpl_image *image, <a class="el" href="group__cpl__type.html#gacc431432a4fedf19ec6f7668dda3fbf0">cpl_size</a> llx, <a class="el" href="group__cpl__type.html#gacc431432a4fedf19ec6f7668dda3fbf0">cpl_size</a> lly, <a class="el" href="group__cpl__type.html#gacc431432a4fedf19ec6f7668dda3fbf0">cpl_size</a> urx, <a class="el" href="group__cpl__type.html#gacc431432a4fedf19ec6f7668dda3fbf0">cpl_size</a> ury, double *sigma)</td></tr>
<tr class="memdesc:ga965f608f9b39076fc66971691e30863e"><td class="mdescLeft"> </td><td class="mdescRight">Computes median and mean absolute median deviation on an image window. <a href="#ga965f608f9b39076fc66971691e30863e">More...</a><br /></td></tr>
<tr class="separator:ga965f608f9b39076fc66971691e30863e"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:gac6beb8fbedcd15f8a7ee4a6af22aa8f7"><td class="memItemLeft" align="right" valign="top">double </td><td class="memItemRight" valign="bottom"><a class="el" href="group__cpl__image.html#gac6beb8fbedcd15f8a7ee4a6af22aa8f7">cpl_image_get_median_window</a> (const cpl_image *image, <a class="el" href="group__cpl__type.html#gacc431432a4fedf19ec6f7668dda3fbf0">cpl_size</a> llx, <a class="el" href="group__cpl__type.html#gacc431432a4fedf19ec6f7668dda3fbf0">cpl_size</a> lly, <a class="el" href="group__cpl__type.html#gacc431432a4fedf19ec6f7668dda3fbf0">cpl_size</a> urx, <a class="el" href="group__cpl__type.html#gacc431432a4fedf19ec6f7668dda3fbf0">cpl_size</a> ury)</td></tr>
<tr class="memdesc:gac6beb8fbedcd15f8a7ee4a6af22aa8f7"><td class="mdescLeft"> </td><td class="mdescRight">computes median pixel value over an image sub-window. <a href="#gac6beb8fbedcd15f8a7ee4a6af22aa8f7">More...</a><br /></td></tr>
<tr class="separator:gac6beb8fbedcd15f8a7ee4a6af22aa8f7"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:ga9767b78ea3e6318af12b28371356a2c0"><td class="memItemLeft" align="right" valign="top">double </td><td class="memItemRight" valign="bottom"><a class="el" href="group__cpl__image.html#ga9767b78ea3e6318af12b28371356a2c0">cpl_image_get_min</a> (const cpl_image *image)</td></tr>
<tr class="memdesc:ga9767b78ea3e6318af12b28371356a2c0"><td class="mdescLeft"> </td><td class="mdescRight">computes minimum pixel value over an image. <a href="#ga9767b78ea3e6318af12b28371356a2c0">More...</a><br /></td></tr>
<tr class="separator:ga9767b78ea3e6318af12b28371356a2c0"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:ga39838b28f7c62ae29ee082402a5e8ed6"><td class="memItemLeft" align="right" valign="top">double </td><td class="memItemRight" valign="bottom"><a class="el" href="group__cpl__image.html#ga39838b28f7c62ae29ee082402a5e8ed6">cpl_image_get_min_window</a> (const cpl_image *image, <a class="el" href="group__cpl__type.html#gacc431432a4fedf19ec6f7668dda3fbf0">cpl_size</a> llx, <a class="el" href="group__cpl__type.html#gacc431432a4fedf19ec6f7668dda3fbf0">cpl_size</a> lly, <a class="el" href="group__cpl__type.html#gacc431432a4fedf19ec6f7668dda3fbf0">cpl_size</a> urx, <a class="el" href="group__cpl__type.html#gacc431432a4fedf19ec6f7668dda3fbf0">cpl_size</a> ury)</td></tr>
<tr class="memdesc:ga39838b28f7c62ae29ee082402a5e8ed6"><td class="mdescLeft"> </td><td class="mdescRight">computes minimum pixel value over an image sub-window. <a href="#ga39838b28f7c62ae29ee082402a5e8ed6">More...</a><br /></td></tr>
<tr class="separator:ga39838b28f7c62ae29ee082402a5e8ed6"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:ga5db2e48e0ef4a67217e5b24cf658e790"><td class="memItemLeft" align="right" valign="top"><a class="el" href="group__cpl__error.html#ga44b4287e8a7a22122b94c220a1dd9459">cpl_error_code</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="group__cpl__image.html#ga5db2e48e0ef4a67217e5b24cf658e790">cpl_image_get_minpos</a> (const cpl_image *image, <a class="el" href="group__cpl__type.html#gacc431432a4fedf19ec6f7668dda3fbf0">cpl_size</a> *px, <a class="el" href="group__cpl__type.html#gacc431432a4fedf19ec6f7668dda3fbf0">cpl_size</a> *py)</td></tr>
<tr class="memdesc:ga5db2e48e0ef4a67217e5b24cf658e790"><td class="mdescLeft"> </td><td class="mdescRight">Computes minimum pixel value and position over an image. <a href="#ga5db2e48e0ef4a67217e5b24cf658e790">More...</a><br /></td></tr>
<tr class="separator:ga5db2e48e0ef4a67217e5b24cf658e790"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:ga9182557e5c0f2980e6e5b6afa6236b07"><td class="memItemLeft" align="right" valign="top"><a class="el" href="group__cpl__error.html#ga44b4287e8a7a22122b94c220a1dd9459">cpl_error_code</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="group__cpl__image.html#ga9182557e5c0f2980e6e5b6afa6236b07">cpl_image_get_minpos_window</a> (const cpl_image *image, <a class="el" href="group__cpl__type.html#gacc431432a4fedf19ec6f7668dda3fbf0">cpl_size</a> llx, <a class="el" href="group__cpl__type.html#gacc431432a4fedf19ec6f7668dda3fbf0">cpl_size</a> lly, <a class="el" href="group__cpl__type.html#gacc431432a4fedf19ec6f7668dda3fbf0">cpl_size</a> urx, <a class="el" href="group__cpl__type.html#gacc431432a4fedf19ec6f7668dda3fbf0">cpl_size</a> ury, <a class="el" href="group__cpl__type.html#gacc431432a4fedf19ec6f7668dda3fbf0">cpl_size</a> *px, <a class="el" href="group__cpl__type.html#gacc431432a4fedf19ec6f7668dda3fbf0">cpl_size</a> *py)</td></tr>
<tr class="memdesc:ga9182557e5c0f2980e6e5b6afa6236b07"><td class="mdescLeft"> </td><td class="mdescRight">Computes minimum pixel value and position over an image sub window. <a href="#ga9182557e5c0f2980e6e5b6afa6236b07">More...</a><br /></td></tr>
<tr class="separator:ga9182557e5c0f2980e6e5b6afa6236b07"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:gab5a6bc059aa1d38c37ab5852b5170e45"><td class="memItemLeft" align="right" valign="top"><a class="el" href="group__cpl__type.html#gacc431432a4fedf19ec6f7668dda3fbf0">cpl_size</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="group__cpl__image.html#gab5a6bc059aa1d38c37ab5852b5170e45">cpl_image_get_size_x</a> (const cpl_image *img)</td></tr>
<tr class="memdesc:gab5a6bc059aa1d38c37ab5852b5170e45"><td class="mdescLeft"> </td><td class="mdescRight">Get the image x size. <a href="#gab5a6bc059aa1d38c37ab5852b5170e45">More...</a><br /></td></tr>
<tr class="separator:gab5a6bc059aa1d38c37ab5852b5170e45"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:gaf3495f9be1d6892cfed9c5232ccee350"><td class="memItemLeft" align="right" valign="top"><a class="el" href="group__cpl__type.html#gacc431432a4fedf19ec6f7668dda3fbf0">cpl_size</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="group__cpl__image.html#gaf3495f9be1d6892cfed9c5232ccee350">cpl_image_get_size_y</a> (const cpl_image *img)</td></tr>
<tr class="memdesc:gaf3495f9be1d6892cfed9c5232ccee350"><td class="mdescLeft"> </td><td class="mdescRight">Get the image y size. <a href="#gaf3495f9be1d6892cfed9c5232ccee350">More...</a><br /></td></tr>
<tr class="separator:gaf3495f9be1d6892cfed9c5232ccee350"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:ga1c0150d807aa6828bf3e355435a4e973"><td class="memItemLeft" align="right" valign="top">double </td><td class="memItemRight" valign="bottom"><a class="el" href="group__cpl__image.html#ga1c0150d807aa6828bf3e355435a4e973">cpl_image_get_sqflux</a> (const cpl_image *image)</td></tr>
<tr class="memdesc:ga1c0150d807aa6828bf3e355435a4e973"><td class="mdescLeft"> </td><td class="mdescRight">Computes the sum of squared values over an image. <a href="#ga1c0150d807aa6828bf3e355435a4e973">More...</a><br /></td></tr>
<tr class="separator:ga1c0150d807aa6828bf3e355435a4e973"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:ga1ca34e6567a610a52026b373dddd787c"><td class="memItemLeft" align="right" valign="top">double </td><td class="memItemRight" valign="bottom"><a class="el" href="group__cpl__image.html#ga1ca34e6567a610a52026b373dddd787c">cpl_image_get_sqflux_window</a> (const cpl_image *image, <a class="el" href="group__cpl__type.html#gacc431432a4fedf19ec6f7668dda3fbf0">cpl_size</a> llx, <a class="el" href="group__cpl__type.html#gacc431432a4fedf19ec6f7668dda3fbf0">cpl_size</a> lly, <a class="el" href="group__cpl__type.html#gacc431432a4fedf19ec6f7668dda3fbf0">cpl_size</a> urx, <a class="el" href="group__cpl__type.html#gacc431432a4fedf19ec6f7668dda3fbf0">cpl_size</a> ury)</td></tr>
<tr class="memdesc:ga1ca34e6567a610a52026b373dddd787c"><td class="mdescLeft"> </td><td class="mdescRight">Computes the sum of squared values over an image sub-window. <a href="#ga1ca34e6567a610a52026b373dddd787c">More...</a><br /></td></tr>
<tr class="separator:ga1ca34e6567a610a52026b373dddd787c"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:gaa8f6538e9c8c638bc3a23b50332411fb"><td class="memItemLeft" align="right" valign="top">double </td><td class="memItemRight" valign="bottom"><a class="el" href="group__cpl__image.html#gaa8f6538e9c8c638bc3a23b50332411fb">cpl_image_get_stdev</a> (const cpl_image *image)</td></tr>
<tr class="memdesc:gaa8f6538e9c8c638bc3a23b50332411fb"><td class="mdescLeft"> </td><td class="mdescRight">computes pixel standard deviation over an image. <a href="#gaa8f6538e9c8c638bc3a23b50332411fb">More...</a><br /></td></tr>
<tr class="separator:gaa8f6538e9c8c638bc3a23b50332411fb"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:ga0e366eb2c54499be78741bd4da925604"><td class="memItemLeft" align="right" valign="top">double </td><td class="memItemRight" valign="bottom"><a class="el" href="group__cpl__image.html#ga0e366eb2c54499be78741bd4da925604">cpl_image_get_stdev_window</a> (const cpl_image *image, <a class="el" href="group__cpl__type.html#gacc431432a4fedf19ec6f7668dda3fbf0">cpl_size</a> llx, <a class="el" href="group__cpl__type.html#gacc431432a4fedf19ec6f7668dda3fbf0">cpl_size</a> lly, <a class="el" href="group__cpl__type.html#gacc431432a4fedf19ec6f7668dda3fbf0">cpl_size</a> urx, <a class="el" href="group__cpl__type.html#gacc431432a4fedf19ec6f7668dda3fbf0">cpl_size</a> ury)</td></tr>
<tr class="memdesc:ga0e366eb2c54499be78741bd4da925604"><td class="mdescLeft"> </td><td class="mdescRight">computes pixel standard deviation over an image sub-window. <a href="#ga0e366eb2c54499be78741bd4da925604">More...</a><br /></td></tr>
<tr class="separator:ga0e366eb2c54499be78741bd4da925604"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:ga17f97e60794f88e7f06b85cccbecc132"><td class="memItemLeft" align="right" valign="top"><a class="el" href="group__cpl__type.html#ga01345c598396c7cd159979734adfb57d">cpl_type</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="group__cpl__image.html#ga17f97e60794f88e7f06b85cccbecc132">cpl_image_get_type</a> (const cpl_image *img)</td></tr>
<tr class="memdesc:ga17f97e60794f88e7f06b85cccbecc132"><td class="mdescLeft"> </td><td class="mdescRight">Get the image type. <a href="#ga17f97e60794f88e7f06b85cccbecc132">More...</a><br /></td></tr>
<tr class="separator:ga17f97e60794f88e7f06b85cccbecc132"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:ga4d9138130be33785d3417f78c02c9341"><td class="memItemLeft" align="right" valign="top"><a class="el" href="group__cpl__error.html#ga44b4287e8a7a22122b94c220a1dd9459">cpl_error_code</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="group__cpl__image.html#ga4d9138130be33785d3417f78c02c9341">cpl_image_hypot</a> (cpl_image *self, const cpl_image *first, const cpl_image *second)</td></tr>
<tr class="memdesc:ga4d9138130be33785d3417f78c02c9341"><td class="mdescLeft"> </td><td class="mdescRight">The pixel-wise Euclidean distance function of the images. <a href="#ga4d9138130be33785d3417f78c02c9341">More...</a><br /></td></tr>
<tr class="separator:ga4d9138130be33785d3417f78c02c9341"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:gaa81c4cf5dca4516e8423dde705cff48b"><td class="memItemLeft" align="right" valign="top">cpl_bivector * </td><td class="memItemRight" valign="bottom"><a class="el" href="group__cpl__image.html#gaa81c4cf5dca4516e8423dde705cff48b">cpl_image_iqe</a> (const cpl_image *in, <a class="el" href="group__cpl__type.html#gacc431432a4fedf19ec6f7668dda3fbf0">cpl_size</a> llx, <a class="el" href="group__cpl__type.html#gacc431432a4fedf19ec6f7668dda3fbf0">cpl_size</a> lly, <a class="el" href="group__cpl__type.html#gacc431432a4fedf19ec6f7668dda3fbf0">cpl_size</a> urx, <a class="el" href="group__cpl__type.html#gacc431432a4fedf19ec6f7668dda3fbf0">cpl_size</a> ury)</td></tr>
<tr class="memdesc:gaa81c4cf5dca4516e8423dde705cff48b"><td class="mdescLeft"> </td><td class="mdescRight">Compute an image quality estimation for an object. <a href="#gaa81c4cf5dca4516e8423dde705cff48b">More...</a><br /></td></tr>
<tr class="separator:gaa81c4cf5dca4516e8423dde705cff48b"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:gaa426e0c52b2188ceac9632b7c15e2aeb"><td class="memItemLeft" align="right" valign="top">int </td><td class="memItemRight" valign="bottom"><a class="el" href="group__cpl__image.html#gaa426e0c52b2188ceac9632b7c15e2aeb">cpl_image_is_rejected</a> (const cpl_image *im, <a class="el" href="group__cpl__type.html#gacc431432a4fedf19ec6f7668dda3fbf0">cpl_size</a> x, <a class="el" href="group__cpl__type.html#gacc431432a4fedf19ec6f7668dda3fbf0">cpl_size</a> y)</td></tr>
<tr class="memdesc:gaa426e0c52b2188ceac9632b7c15e2aeb"><td class="mdescLeft"> </td><td class="mdescRight">Test if a pixel is good or bad. <a href="#gaa426e0c52b2188ceac9632b7c15e2aeb">More...</a><br /></td></tr>
<tr class="separator:gaa426e0c52b2188ceac9632b7c15e2aeb"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:gad38071b4db44e17818a0bade99a123c0"><td class="memItemLeft" align="right" valign="top">cpl_image * </td><td class="memItemRight" valign="bottom"><a class="el" href="group__cpl__image.html#gad38071b4db44e17818a0bade99a123c0">cpl_image_labelise_mask_create</a> (const cpl_mask *in, <a class="el" href="group__cpl__type.html#gacc431432a4fedf19ec6f7668dda3fbf0">cpl_size</a> *nbobjs)</td></tr>
<tr class="memdesc:gad38071b4db44e17818a0bade99a123c0"><td class="mdescLeft"> </td><td class="mdescRight">Labelise a mask to differentiate different objects. <a href="#gad38071b4db44e17818a0bade99a123c0">More...</a><br /></td></tr>
<tr class="separator:gad38071b4db44e17818a0bade99a123c0"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:ga4a1d222d9e71fbccc9596b0d10eaf9f7"><td class="memItemLeft" align="right" valign="top">cpl_image * </td><td class="memItemRight" valign="bottom"><a class="el" href="group__cpl__image.html#ga4a1d222d9e71fbccc9596b0d10eaf9f7">cpl_image_load</a> (const char *filename, <a class="el" href="group__cpl__type.html#ga01345c598396c7cd159979734adfb57d">cpl_type</a> im_type, <a class="el" href="group__cpl__type.html#gacc431432a4fedf19ec6f7668dda3fbf0">cpl_size</a> pnum, <a class="el" href="group__cpl__type.html#gacc431432a4fedf19ec6f7668dda3fbf0">cpl_size</a> xtnum)</td></tr>
<tr class="memdesc:ga4a1d222d9e71fbccc9596b0d10eaf9f7"><td class="mdescLeft"> </td><td class="mdescRight">Load an image from a FITS file. <a href="#ga4a1d222d9e71fbccc9596b0d10eaf9f7">More...</a><br /></td></tr>
<tr class="separator:ga4a1d222d9e71fbccc9596b0d10eaf9f7"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:ga4af6f45a9bcdbe9423ce24f00f4d2757"><td class="memItemLeft" align="right" valign="top">cpl_image * </td><td class="memItemRight" valign="bottom"><a class="el" href="group__cpl__image.html#ga4af6f45a9bcdbe9423ce24f00f4d2757">cpl_image_load_window</a> (const char *filename, <a class="el" href="group__cpl__type.html#ga01345c598396c7cd159979734adfb57d">cpl_type</a> im_type, <a class="el" href="group__cpl__type.html#gacc431432a4fedf19ec6f7668dda3fbf0">cpl_size</a> pnum, <a class="el" href="group__cpl__type.html#gacc431432a4fedf19ec6f7668dda3fbf0">cpl_size</a> xtnum, <a class="el" href="group__cpl__type.html#gacc431432a4fedf19ec6f7668dda3fbf0">cpl_size</a> llx, <a class="el" href="group__cpl__type.html#gacc431432a4fedf19ec6f7668dda3fbf0">cpl_size</a> lly, <a class="el" href="group__cpl__type.html#gacc431432a4fedf19ec6f7668dda3fbf0">cpl_size</a> urx, <a class="el" href="group__cpl__type.html#gacc431432a4fedf19ec6f7668dda3fbf0">cpl_size</a> ury)</td></tr>
<tr class="memdesc:ga4af6f45a9bcdbe9423ce24f00f4d2757"><td class="mdescLeft"> </td><td class="mdescRight">Load an image from a FITS file. <a href="#ga4af6f45a9bcdbe9423ce24f00f4d2757">More...</a><br /></td></tr>
<tr class="separator:ga4af6f45a9bcdbe9423ce24f00f4d2757"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:ga459e938fdb606d6b8309cd52ef5e42fd"><td class="memItemLeft" align="right" valign="top"><a class="el" href="group__cpl__error.html#ga44b4287e8a7a22122b94c220a1dd9459">cpl_error_code</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="group__cpl__image.html#ga459e938fdb606d6b8309cd52ef5e42fd">cpl_image_logarithm</a> (cpl_image *self, double base)</td></tr>
<tr class="memdesc:ga459e938fdb606d6b8309cd52ef5e42fd"><td class="mdescLeft"> </td><td class="mdescRight">Compute the elementwise logarithm of the image. <a href="#ga459e938fdb606d6b8309cd52ef5e42fd">More...</a><br /></td></tr>
<tr class="separator:ga459e938fdb606d6b8309cd52ef5e42fd"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:gabfcae6086e5678420f1e69bc7917a4bd"><td class="memItemLeft" align="right" valign="top">cpl_image * </td><td class="memItemRight" valign="bottom"><a class="el" href="group__cpl__image.html#gabfcae6086e5678420f1e69bc7917a4bd">cpl_image_logarithm_create</a> (const cpl_image *image, double base)</td></tr>
<tr class="memdesc:gabfcae6086e5678420f1e69bc7917a4bd"><td class="mdescLeft"> </td><td class="mdescRight">Create a new image by taking the elementwise logarithm of an image. <a href="#gabfcae6086e5678420f1e69bc7917a4bd">More...</a><br /></td></tr>
<tr class="separator:gabfcae6086e5678420f1e69bc7917a4bd"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:gaf2e8ea696ca2967a4b57d0e7940286a2"><td class="memItemLeft" align="right" valign="top"><a class="el" href="group__cpl__error.html#ga44b4287e8a7a22122b94c220a1dd9459">cpl_error_code</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="group__cpl__image.html#gaf2e8ea696ca2967a4b57d0e7940286a2">cpl_image_move</a> (cpl_image *im, <a class="el" href="group__cpl__type.html#gacc431432a4fedf19ec6f7668dda3fbf0">cpl_size</a> nb_cut, const <a class="el" href="group__cpl__type.html#gacc431432a4fedf19ec6f7668dda3fbf0">cpl_size</a> *new_pos)</td></tr>
<tr class="memdesc:gaf2e8ea696ca2967a4b57d0e7940286a2"><td class="mdescLeft"> </td><td class="mdescRight">Reorganize the pixels in an image. <a href="#gaf2e8ea696ca2967a4b57d0e7940286a2">More...</a><br /></td></tr>
<tr class="separator:gaf2e8ea696ca2967a4b57d0e7940286a2"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:gaf528eb8af9261ad974e3050c22706012"><td class="memItemLeft" align="right" valign="top"><a class="el" href="group__cpl__error.html#ga44b4287e8a7a22122b94c220a1dd9459">cpl_error_code</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="group__cpl__image.html#gaf528eb8af9261ad974e3050c22706012">cpl_image_multiply</a> (cpl_image *im1, const cpl_image *im2)</td></tr>
<tr class="memdesc:gaf528eb8af9261ad974e3050c22706012"><td class="mdescLeft"> </td><td class="mdescRight">Multiply two images, store the result in the first image. <a href="#gaf528eb8af9261ad974e3050c22706012">More...</a><br /></td></tr>
<tr class="separator:gaf528eb8af9261ad974e3050c22706012"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:gaab88e9fed5f6cd58a5d16e970d2da6b0"><td class="memItemLeft" align="right" valign="top">cpl_image * </td><td class="memItemRight" valign="bottom"><a class="el" href="group__cpl__image.html#gaab88e9fed5f6cd58a5d16e970d2da6b0">cpl_image_multiply_create</a> (const cpl_image *image1, const cpl_image *image2)</td></tr>
<tr class="memdesc:gaab88e9fed5f6cd58a5d16e970d2da6b0"><td class="mdescLeft"> </td><td class="mdescRight">Multiply two images. <a href="#gaab88e9fed5f6cd58a5d16e970d2da6b0">More...</a><br /></td></tr>
<tr class="separator:gaab88e9fed5f6cd58a5d16e970d2da6b0"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:gaf2a2500024307801272227e9d6abbbaa"><td class="memItemLeft" align="right" valign="top"><a class="el" href="group__cpl__error.html#ga44b4287e8a7a22122b94c220a1dd9459">cpl_error_code</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="group__cpl__image.html#gaf2a2500024307801272227e9d6abbbaa">cpl_image_multiply_scalar</a> (cpl_image *self, double scalar)</td></tr>
<tr class="memdesc:gaf2a2500024307801272227e9d6abbbaa"><td class="mdescLeft"> </td><td class="mdescRight">Elementwise multiplication of an image with a scalar. <a href="#gaf2a2500024307801272227e9d6abbbaa">More...</a><br /></td></tr>
<tr class="separator:gaf2a2500024307801272227e9d6abbbaa"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:ga0b9c44f684a3e7781ccb5777ef001b3f"><td class="memItemLeft" align="right" valign="top">cpl_image * </td><td class="memItemRight" valign="bottom"><a class="el" href="group__cpl__image.html#ga0b9c44f684a3e7781ccb5777ef001b3f">cpl_image_multiply_scalar_create</a> (const cpl_image *image, double factor)</td></tr>
<tr class="memdesc:ga0b9c44f684a3e7781ccb5777ef001b3f"><td class="mdescLeft"> </td><td class="mdescRight">Create a new image by multiplication of a scalar and an image. <a href="#ga0b9c44f684a3e7781ccb5777ef001b3f">More...</a><br /></td></tr>
<tr class="separator:ga0b9c44f684a3e7781ccb5777ef001b3f"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:gab95562a5dbc2372f52ce644c50bfcd26"><td class="memItemLeft" align="right" valign="top">cpl_image * </td><td class="memItemRight" valign="bottom"><a class="el" href="group__cpl__image.html#gab95562a5dbc2372f52ce644c50bfcd26">cpl_image_new</a> (<a class="el" href="group__cpl__type.html#gacc431432a4fedf19ec6f7668dda3fbf0">cpl_size</a> nx, <a class="el" href="group__cpl__type.html#gacc431432a4fedf19ec6f7668dda3fbf0">cpl_size</a> ny, <a class="el" href="group__cpl__type.html#ga01345c598396c7cd159979734adfb57d">cpl_type</a> type)</td></tr>
<tr class="memdesc:gab95562a5dbc2372f52ce644c50bfcd26"><td class="mdescLeft"> </td><td class="mdescRight">Allocate an image structure and pixel buffer for a image. <a href="#gab95562a5dbc2372f52ce644c50bfcd26">More...</a><br /></td></tr>
<tr class="separator:gab95562a5dbc2372f52ce644c50bfcd26"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:ga258483437ae0eb156025b379ef8fe810"><td class="memItemLeft" align="right" valign="top">cpl_image * </td><td class="memItemRight" valign="bottom"><a class="el" href="group__cpl__image.html#ga258483437ae0eb156025b379ef8fe810">cpl_image_new_from_mask</a> (const cpl_mask *mask)</td></tr>
<tr class="memdesc:ga258483437ae0eb156025b379ef8fe810"><td class="mdescLeft"> </td><td class="mdescRight">Create an int image from a mask. <a href="#ga258483437ae0eb156025b379ef8fe810">More...</a><br /></td></tr>
<tr class="separator:ga258483437ae0eb156025b379ef8fe810"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:gaa1a902191405d8bd33e1bc5b239dfef0"><td class="memItemLeft" align="right" valign="top"><a class="el" href="group__cpl__error.html#ga44b4287e8a7a22122b94c220a1dd9459">cpl_error_code</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="group__cpl__image.html#gaa1a902191405d8bd33e1bc5b239dfef0">cpl_image_normalise</a> (cpl_image *image, cpl_norm mode)</td></tr>
<tr class="memdesc:gaa1a902191405d8bd33e1bc5b239dfef0"><td class="mdescLeft"> </td><td class="mdescRight">Normalise pixels in an image. <a href="#gaa1a902191405d8bd33e1bc5b239dfef0">More...</a><br /></td></tr>
<tr class="separator:gaa1a902191405d8bd33e1bc5b239dfef0"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:ga995346cf9ad364225c3eb6f81ae32f84"><td class="memItemLeft" align="right" valign="top">cpl_image * </td><td class="memItemRight" valign="bottom"><a class="el" href="group__cpl__image.html#ga995346cf9ad364225c3eb6f81ae32f84">cpl_image_normalise_create</a> (const cpl_image *image_in, cpl_norm mode)</td></tr>
<tr class="memdesc:ga995346cf9ad364225c3eb6f81ae32f84"><td class="mdescLeft"> </td><td class="mdescRight">Create a new normalised image from an existing image. <a href="#ga995346cf9ad364225c3eb6f81ae32f84">More...</a><br /></td></tr>
<tr class="separator:ga995346cf9ad364225c3eb6f81ae32f84"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:ga22eb04de3cd84dade9190302c705e9a5"><td class="memItemLeft" align="right" valign="top"><a class="el" href="group__cpl__error.html#ga44b4287e8a7a22122b94c220a1dd9459">cpl_error_code</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="group__cpl__image.html#ga22eb04de3cd84dade9190302c705e9a5">cpl_image_not</a> (cpl_image *self, const cpl_image *first)</td></tr>
<tr class="memdesc:ga22eb04de3cd84dade9190302c705e9a5"><td class="mdescLeft"> </td><td class="mdescRight">The bit-wise complement (not) of an image with integer pixels. <a href="#ga22eb04de3cd84dade9190302c705e9a5">More...</a><br /></td></tr>
<tr class="separator:ga22eb04de3cd84dade9190302c705e9a5"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:gab458b92eba7eea710c82fab760ac92b2"><td class="memItemLeft" align="right" valign="top"><a class="el" href="group__cpl__error.html#ga44b4287e8a7a22122b94c220a1dd9459">cpl_error_code</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="group__cpl__image.html#gab458b92eba7eea710c82fab760ac92b2">cpl_image_or</a> (cpl_image *self, const cpl_image *first, const cpl_image *second)</td></tr>
<tr class="memdesc:gab458b92eba7eea710c82fab760ac92b2"><td class="mdescLeft"> </td><td class="mdescRight">The bit-wise or of two images with integer pixels. <a href="#gab458b92eba7eea710c82fab760ac92b2">More...</a><br /></td></tr>
<tr class="separator:gab458b92eba7eea710c82fab760ac92b2"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:ga787eff33b78af1e8d6d79189cdcf418b"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="group__cpl__image.html#ga787eff33b78af1e8d6d79189cdcf418b">cpl_image_or_mask</a> (cpl_image *self, const cpl_image *first, const cpl_image *second)</td></tr>
<tr class="memdesc:ga787eff33b78af1e8d6d79189cdcf418b"><td class="mdescLeft"> </td><td class="mdescRight">The bit-wise or of the input masks onto the output mask. <a href="#ga787eff33b78af1e8d6d79189cdcf418b">More...</a><br /></td></tr>
<tr class="separator:ga787eff33b78af1e8d6d79189cdcf418b"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:ga6c69e93b4bdfa9d09730d3707a4786b9"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="group__cpl__image.html#ga6c69e93b4bdfa9d09730d3707a4786b9">cpl_image_or_mask_unary</a> (cpl_image *self, const cpl_image *first)</td></tr>
<tr class="memdesc:ga6c69e93b4bdfa9d09730d3707a4786b9"><td class="mdescLeft"> </td><td class="mdescRight">The bit-wise or of the input mask(s) onto the output mask. <a href="#ga6c69e93b4bdfa9d09730d3707a4786b9">More...</a><br /></td></tr>
<tr class="separator:ga6c69e93b4bdfa9d09730d3707a4786b9"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:gad2984ac935275437f2f8ed4c5a8cd86c"><td class="memItemLeft" align="right" valign="top"><a class="el" href="group__cpl__error.html#ga44b4287e8a7a22122b94c220a1dd9459">cpl_error_code</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="group__cpl__image.html#gad2984ac935275437f2f8ed4c5a8cd86c">cpl_image_or_scalar</a> (cpl_image *self, const cpl_image *first, <a class="el" href="group__cpl__type.html#ga8d50ea1fd78afcce32f5bcc94a3b8f03">cpl_bitmask</a> second)</td></tr>
<tr class="memdesc:gad2984ac935275437f2f8ed4c5a8cd86c"><td class="mdescLeft"> </td><td class="mdescRight">The bit-wise or of a scalar and an image with integer pixels. <a href="#gad2984ac935275437f2f8ed4c5a8cd86c">More...</a><br /></td></tr>
<tr class="separator:gad2984ac935275437f2f8ed4c5a8cd86c"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:gad657aba1581d332aa8ba1d101f0269bd"><td class="memItemLeft" align="right" valign="top"><a class="el" href="group__cpl__error.html#ga44b4287e8a7a22122b94c220a1dd9459">cpl_error_code</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="group__cpl__image.html#gad657aba1581d332aa8ba1d101f0269bd">cpl_image_power</a> (cpl_image *self, double exponent)</td></tr>
<tr class="memdesc:gad657aba1581d332aa8ba1d101f0269bd"><td class="mdescLeft"> </td><td class="mdescRight">Compute the elementwise power of the image. <a href="#gad657aba1581d332aa8ba1d101f0269bd">More...</a><br /></td></tr>
<tr class="separator:gad657aba1581d332aa8ba1d101f0269bd"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:ga2f5949377b34ba90b60a9335a9cc0c1a"><td class="memItemLeft" align="right" valign="top">cpl_image * </td><td class="memItemRight" valign="bottom"><a class="el" href="group__cpl__image.html#ga2f5949377b34ba90b60a9335a9cc0c1a">cpl_image_power_create</a> (const cpl_image *image, double exponent)</td></tr>
<tr class="memdesc:ga2f5949377b34ba90b60a9335a9cc0c1a"><td class="mdescLeft"> </td><td class="mdescRight">Create a new image by elementwise raising of an image to a power. <a href="#ga2f5949377b34ba90b60a9335a9cc0c1a">More...</a><br /></td></tr>
<tr class="separator:ga2f5949377b34ba90b60a9335a9cc0c1a"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:ga509a88acd4a109ff88d699df01b64baa"><td class="memItemLeft" align="right" valign="top">cpl_image * </td><td class="memItemRight" valign="bottom"><a class="el" href="group__cpl__image.html#ga509a88acd4a109ff88d699df01b64baa">cpl_image_rebin</a> (const cpl_image *image, <a class="el" href="group__cpl__type.html#gacc431432a4fedf19ec6f7668dda3fbf0">cpl_size</a> xstart, <a class="el" href="group__cpl__type.html#gacc431432a4fedf19ec6f7668dda3fbf0">cpl_size</a> ystart, <a class="el" href="group__cpl__type.html#gacc431432a4fedf19ec6f7668dda3fbf0">cpl_size</a> xstep, <a class="el" href="group__cpl__type.html#gacc431432a4fedf19ec6f7668dda3fbf0">cpl_size</a> ystep)</td></tr>
<tr class="memdesc:ga509a88acd4a109ff88d699df01b64baa"><td class="mdescLeft"> </td><td class="mdescRight">Rebin an image. <a href="#ga509a88acd4a109ff88d699df01b64baa">More...</a><br /></td></tr>
<tr class="separator:ga509a88acd4a109ff88d699df01b64baa"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:gafaa53eac47a33da029e30b9b44bf91be"><td class="memItemLeft" align="right" valign="top"><a class="el" href="group__cpl__error.html#ga44b4287e8a7a22122b94c220a1dd9459">cpl_error_code</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="group__cpl__image.html#gafaa53eac47a33da029e30b9b44bf91be">cpl_image_reject</a> (cpl_image *im, <a class="el" href="group__cpl__type.html#gacc431432a4fedf19ec6f7668dda3fbf0">cpl_size</a> x, <a class="el" href="group__cpl__type.html#gacc431432a4fedf19ec6f7668dda3fbf0">cpl_size</a> y)</td></tr>
<tr class="memdesc:gafaa53eac47a33da029e30b9b44bf91be"><td class="mdescLeft"> </td><td class="mdescRight">Set a pixel as bad in an image. <a href="#gafaa53eac47a33da029e30b9b44bf91be">More...</a><br /></td></tr>
<tr class="separator:gafaa53eac47a33da029e30b9b44bf91be"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:ga2596acf228f922542f4a1ff4f17d7e71"><td class="memItemLeft" align="right" valign="top"><a class="el" href="group__cpl__error.html#ga44b4287e8a7a22122b94c220a1dd9459">cpl_error_code</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="group__cpl__image.html#ga2596acf228f922542f4a1ff4f17d7e71">cpl_image_reject_from_mask</a> (cpl_image *im, const cpl_mask *map)</td></tr>
<tr class="memdesc:ga2596acf228f922542f4a1ff4f17d7e71"><td class="mdescLeft"> </td><td class="mdescRight">Set the bad pixels in an image as defined in a mask. <a href="#ga2596acf228f922542f4a1ff4f17d7e71">More...</a><br /></td></tr>
<tr class="separator:ga2596acf228f922542f4a1ff4f17d7e71"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:gaa636187251be1b861b2ee370dea3a3b9"><td class="memItemLeft" align="right" valign="top"><a class="el" href="group__cpl__error.html#ga44b4287e8a7a22122b94c220a1dd9459">cpl_error_code</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="group__cpl__image.html#gaa636187251be1b861b2ee370dea3a3b9">cpl_image_reject_value</a> (cpl_image *self, <a class="el" href="group__cpl__image.html#gab3784dca1e5dc78c42fb1b416158c511">cpl_value</a> mode)</td></tr>
<tr class="memdesc:gaa636187251be1b861b2ee370dea3a3b9"><td class="mdescLeft"> </td><td class="mdescRight">Reject pixels with the specified special value(s) <a href="#gaa636187251be1b861b2ee370dea3a3b9">More...</a><br /></td></tr>
<tr class="separator:gaa636187251be1b861b2ee370dea3a3b9"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:ga370a42c6399b44a1e74f4fb6e0c87457"><td class="memItemLeft" align="right" valign="top"><a class="el" href="group__cpl__error.html#ga44b4287e8a7a22122b94c220a1dd9459">cpl_error_code</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="group__cpl__image.html#ga370a42c6399b44a1e74f4fb6e0c87457">cpl_image_save</a> (const cpl_image *self, const char *filename, <a class="el" href="group__cpl__type.html#ga01345c598396c7cd159979734adfb57d">cpl_type</a> type, const <a class="el" href="group__cpl__propertylist.html#gab1629461e5d64dd8594cd505e3ea46ab">cpl_propertylist</a> *pl, unsigned mode)</td></tr>
<tr class="memdesc:ga370a42c6399b44a1e74f4fb6e0c87457"><td class="mdescLeft"> </td><td class="mdescRight">Save an image to a FITS file. <a href="#ga370a42c6399b44a1e74f4fb6e0c87457">More...</a><br /></td></tr>
<tr class="separator:ga370a42c6399b44a1e74f4fb6e0c87457"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:gaceda29961b159f8ae6d19b1759d6b34b"><td class="memItemLeft" align="right" valign="top"><a class="el" href="group__cpl__error.html#ga44b4287e8a7a22122b94c220a1dd9459">cpl_error_code</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="group__cpl__image.html#gaceda29961b159f8ae6d19b1759d6b34b">cpl_image_set</a> (cpl_image *image, <a class="el" href="group__cpl__type.html#gacc431432a4fedf19ec6f7668dda3fbf0">cpl_size</a> xpos, <a class="el" href="group__cpl__type.html#gacc431432a4fedf19ec6f7668dda3fbf0">cpl_size</a> ypos, double value)</td></tr>
<tr class="memdesc:gaceda29961b159f8ae6d19b1759d6b34b"><td class="mdescLeft"> </td><td class="mdescRight">Set the pixel at the given position to the given value. <a href="#gaceda29961b159f8ae6d19b1759d6b34b">More...</a><br /></td></tr>
<tr class="separator:gaceda29961b159f8ae6d19b1759d6b34b"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:gacd6baa173d1f126885d9daafc71a75df"><td class="memItemLeft" align="right" valign="top">cpl_mask * </td><td class="memItemRight" valign="bottom"><a class="el" href="group__cpl__image.html#gacd6baa173d1f126885d9daafc71a75df">cpl_image_set_bpm</a> (cpl_image *self, cpl_mask *bpm)</td></tr>
<tr class="memdesc:gacd6baa173d1f126885d9daafc71a75df"><td class="mdescLeft"> </td><td class="mdescRight">Replace the bad pixel map of the image. <a href="#gacd6baa173d1f126885d9daafc71a75df">More...</a><br /></td></tr>
<tr class="separator:gacd6baa173d1f126885d9daafc71a75df"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:ga4621604fefc84c57d5f198e02ef49260"><td class="memItemLeft" align="right" valign="top"><a class="el" href="group__cpl__error.html#ga44b4287e8a7a22122b94c220a1dd9459">cpl_error_code</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="group__cpl__image.html#ga4621604fefc84c57d5f198e02ef49260">cpl_image_set_complex</a> (cpl_image *image, <a class="el" href="group__cpl__type.html#gacc431432a4fedf19ec6f7668dda3fbf0">cpl_size</a> xpos, <a class="el" href="group__cpl__type.html#gacc431432a4fedf19ec6f7668dda3fbf0">cpl_size</a> ypos, double complex value)</td></tr>
<tr class="memdesc:ga4621604fefc84c57d5f198e02ef49260"><td class="mdescLeft"> </td><td class="mdescRight">Set the pixel at the given position to the given complex value. <a href="#ga4621604fefc84c57d5f198e02ef49260">More...</a><br /></td></tr>
<tr class="separator:ga4621604fefc84c57d5f198e02ef49260"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:gaec847d228bb8d3f8c74831e33d93b758"><td class="memItemLeft" align="right" valign="top"><a class="el" href="group__cpl__error.html#ga44b4287e8a7a22122b94c220a1dd9459">cpl_error_code</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="group__cpl__image.html#gaec847d228bb8d3f8c74831e33d93b758">cpl_image_shift</a> (cpl_image *self, <a class="el" href="group__cpl__type.html#gacc431432a4fedf19ec6f7668dda3fbf0">cpl_size</a> dx, <a class="el" href="group__cpl__type.html#gacc431432a4fedf19ec6f7668dda3fbf0">cpl_size</a> dy)</td></tr>
<tr class="memdesc:gaec847d228bb8d3f8c74831e33d93b758"><td class="mdescLeft"> </td><td class="mdescRight">Shift an image by integer offsets. <a href="#gaec847d228bb8d3f8c74831e33d93b758">More...</a><br /></td></tr>
<tr class="separator:gaec847d228bb8d3f8c74831e33d93b758"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:ga1690a4cca5ff0ceae4e2e5e0caa1c422"><td class="memItemLeft" align="right" valign="top"><a class="el" href="group__cpl__error.html#ga44b4287e8a7a22122b94c220a1dd9459">cpl_error_code</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="group__cpl__image.html#ga1690a4cca5ff0ceae4e2e5e0caa1c422">cpl_image_subtract</a> (cpl_image *im1, const cpl_image *im2)</td></tr>
<tr class="memdesc:ga1690a4cca5ff0ceae4e2e5e0caa1c422"><td class="mdescLeft"> </td><td class="mdescRight">Subtract two images, store the result in the first image. <a href="#ga1690a4cca5ff0ceae4e2e5e0caa1c422">More...</a><br /></td></tr>
<tr class="separator:ga1690a4cca5ff0ceae4e2e5e0caa1c422"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:ga13510651b6275b269a61b8e596a01768"><td class="memItemLeft" align="right" valign="top">cpl_image * </td><td class="memItemRight" valign="bottom"><a class="el" href="group__cpl__image.html#ga13510651b6275b269a61b8e596a01768">cpl_image_subtract_create</a> (const cpl_image *image1, const cpl_image *image2)</td></tr>
<tr class="memdesc:ga13510651b6275b269a61b8e596a01768"><td class="mdescLeft"> </td><td class="mdescRight">Subtract two images. <a href="#ga13510651b6275b269a61b8e596a01768">More...</a><br /></td></tr>
<tr class="separator:ga13510651b6275b269a61b8e596a01768"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:gae6e76e5c9c03f0da6f57d21f3060146f"><td class="memItemLeft" align="right" valign="top"><a class="el" href="group__cpl__error.html#ga44b4287e8a7a22122b94c220a1dd9459">cpl_error_code</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="group__cpl__image.html#gae6e76e5c9c03f0da6f57d21f3060146f">cpl_image_subtract_scalar</a> (cpl_image *self, double scalar)</td></tr>
<tr class="memdesc:gae6e76e5c9c03f0da6f57d21f3060146f"><td class="mdescLeft"> </td><td class="mdescRight">Elementwise subtraction of a scalar from an image. <a href="#gae6e76e5c9c03f0da6f57d21f3060146f">More...</a><br /></td></tr>
<tr class="separator:gae6e76e5c9c03f0da6f57d21f3060146f"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:ga07f1a13958fb9f1d3bba6e1a28b618f8"><td class="memItemLeft" align="right" valign="top">cpl_image * </td><td class="memItemRight" valign="bottom"><a class="el" href="group__cpl__image.html#ga07f1a13958fb9f1d3bba6e1a28b618f8">cpl_image_subtract_scalar_create</a> (const cpl_image *image, double subtrahend)</td></tr>
<tr class="memdesc:ga07f1a13958fb9f1d3bba6e1a28b618f8"><td class="mdescLeft"> </td><td class="mdescRight">Create an image by elementwise subtraction of a scalar from an image. <a href="#ga07f1a13958fb9f1d3bba6e1a28b618f8">More...</a><br /></td></tr>
<tr class="separator:ga07f1a13958fb9f1d3bba6e1a28b618f8"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:gab648aa6971f664e8e696a79479459270"><td class="memItemLeft" align="right" valign="top"><a class="el" href="group__cpl__error.html#ga44b4287e8a7a22122b94c220a1dd9459">cpl_error_code</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="group__cpl__image.html#gab648aa6971f664e8e696a79479459270">cpl_image_threshold</a> (cpl_image *image_in, double lo_cut, double hi_cut, double assign_lo_cut, double assign_hi_cut)</td></tr>
<tr class="memdesc:gab648aa6971f664e8e696a79479459270"><td class="mdescLeft"> </td><td class="mdescRight">Threshold an image to a given interval. <a href="#gab648aa6971f664e8e696a79479459270">More...</a><br /></td></tr>
<tr class="separator:gab648aa6971f664e8e696a79479459270"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:ga0693c816bb297e093454d3031dcdbc1f"><td class="memItemLeft" align="right" valign="top"><a class="el" href="group__cpl__error.html#ga44b4287e8a7a22122b94c220a1dd9459">cpl_error_code</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="group__cpl__image.html#ga0693c816bb297e093454d3031dcdbc1f">cpl_image_turn</a> (cpl_image *self, int rot)</td></tr>
<tr class="memdesc:ga0693c816bb297e093454d3031dcdbc1f"><td class="mdescLeft"> </td><td class="mdescRight">Rotate an image by a multiple of 90 degrees clockwise. <a href="#ga0693c816bb297e093454d3031dcdbc1f">More...</a><br /></td></tr>
<tr class="separator:ga0693c816bb297e093454d3031dcdbc1f"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:gaa78c1412f0efea52c2d6f5e7d5528eca"><td class="memItemLeft" align="right" valign="top">cpl_mask * </td><td class="memItemRight" valign="bottom"><a class="el" href="group__cpl__image.html#gaa78c1412f0efea52c2d6f5e7d5528eca">cpl_image_unset_bpm</a> (cpl_image *self)</td></tr>
<tr class="memdesc:gaa78c1412f0efea52c2d6f5e7d5528eca"><td class="mdescLeft"> </td><td class="mdescRight">Remove the bad pixel map from the image. <a href="#gaa78c1412f0efea52c2d6f5e7d5528eca">More...</a><br /></td></tr>
<tr class="separator:gaa78c1412f0efea52c2d6f5e7d5528eca"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:ga0e7668aa99a78f4f5314cfc00a89a04f"><td class="memItemLeft" align="right" valign="top">void * </td><td class="memItemRight" valign="bottom"><a class="el" href="group__cpl__image.html#ga0e7668aa99a78f4f5314cfc00a89a04f">cpl_image_unwrap</a> (cpl_image *d)</td></tr>
<tr class="memdesc:ga0e7668aa99a78f4f5314cfc00a89a04f"><td class="mdescLeft"> </td><td class="mdescRight">Free memory associated to an cpl_image object, but the pixel buffer. <a href="#ga0e7668aa99a78f4f5314cfc00a89a04f">More...</a><br /></td></tr>
<tr class="separator:ga0e7668aa99a78f4f5314cfc00a89a04f"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:ga53d75eb2e23114e4870c4d523081bfda"><td class="memItemLeft" align="right" valign="top"><a class="el" href="group__cpl__error.html#ga44b4287e8a7a22122b94c220a1dd9459">cpl_error_code</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="group__cpl__image.html#ga53d75eb2e23114e4870c4d523081bfda">cpl_image_warp</a> (cpl_image *out, const cpl_image *in, const cpl_image *deltax, const cpl_image *deltay, const cpl_vector *xprofile, double xradius, const cpl_vector *yprofile, double yradius)</td></tr>
<tr class="memdesc:ga53d75eb2e23114e4870c4d523081bfda"><td class="mdescLeft"> </td><td class="mdescRight">Warp an image. <a href="#ga53d75eb2e23114e4870c4d523081bfda">More...</a><br /></td></tr>
<tr class="separator:ga53d75eb2e23114e4870c4d523081bfda"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:ga34b80ed421f88c5bdad3f0127d251975"><td class="memItemLeft" align="right" valign="top"><a class="el" href="group__cpl__error.html#ga44b4287e8a7a22122b94c220a1dd9459">cpl_error_code</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="group__cpl__image.html#ga34b80ed421f88c5bdad3f0127d251975">cpl_image_warp_polynomial</a> (cpl_image *out, const cpl_image *in, const cpl_polynomial *poly_x, const cpl_polynomial *poly_y, const cpl_vector *xprofile, double xradius, const cpl_vector *yprofile, double yradius)</td></tr>
<tr class="memdesc:ga34b80ed421f88c5bdad3f0127d251975"><td class="mdescLeft"> </td><td class="mdescRight">Warp an image according to a 2D polynomial transformation. <a href="#ga34b80ed421f88c5bdad3f0127d251975">More...</a><br /></td></tr>
<tr class="separator:ga34b80ed421f88c5bdad3f0127d251975"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:ga1d73459cb0b071aac6892e2152aa5be7"><td class="memItemLeft" align="right" valign="top">cpl_image * </td><td class="memItemRight" valign="bottom"><a class="el" href="group__cpl__image.html#ga1d73459cb0b071aac6892e2152aa5be7">cpl_image_wrap_double</a> (<a class="el" href="group__cpl__type.html#gacc431432a4fedf19ec6f7668dda3fbf0">cpl_size</a> nx, <a class="el" href="group__cpl__type.html#gacc431432a4fedf19ec6f7668dda3fbf0">cpl_size</a> ny, double *pixels)</td></tr>
<tr class="memdesc:ga1d73459cb0b071aac6892e2152aa5be7"><td class="mdescLeft"> </td><td class="mdescRight">Create a double image using an existing pixel buffer. <a href="#ga1d73459cb0b071aac6892e2152aa5be7">More...</a><br /></td></tr>
<tr class="separator:ga1d73459cb0b071aac6892e2152aa5be7"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:ga54e215dd1d59d52dd131c855073bdbd1"><td class="memItemLeft" align="right" valign="top">cpl_image * </td><td class="memItemRight" valign="bottom"><a class="el" href="group__cpl__image.html#ga54e215dd1d59d52dd131c855073bdbd1">cpl_image_wrap_double_complex</a> (<a class="el" href="group__cpl__type.html#gacc431432a4fedf19ec6f7668dda3fbf0">cpl_size</a> nx, <a class="el" href="group__cpl__type.html#gacc431432a4fedf19ec6f7668dda3fbf0">cpl_size</a> ny, double complex *pixels)</td></tr>
<tr class="memdesc:ga54e215dd1d59d52dd131c855073bdbd1"><td class="mdescLeft"> </td><td class="mdescRight">Create a double complex image using an existing pixel buffer. <a href="#ga54e215dd1d59d52dd131c855073bdbd1">More...</a><br /></td></tr>
<tr class="separator:ga54e215dd1d59d52dd131c855073bdbd1"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:ga63e10a27014ea9ea425889a12e49ebf5"><td class="memItemLeft" align="right" valign="top">cpl_image * </td><td class="memItemRight" valign="bottom"><a class="el" href="group__cpl__image.html#ga63e10a27014ea9ea425889a12e49ebf5">cpl_image_wrap_float</a> (<a class="el" href="group__cpl__type.html#gacc431432a4fedf19ec6f7668dda3fbf0">cpl_size</a> nx, <a class="el" href="group__cpl__type.html#gacc431432a4fedf19ec6f7668dda3fbf0">cpl_size</a> ny, float *pixels)</td></tr>
<tr class="memdesc:ga63e10a27014ea9ea425889a12e49ebf5"><td class="mdescLeft"> </td><td class="mdescRight">Create a float image using an existing pixel buffer. <a href="#ga63e10a27014ea9ea425889a12e49ebf5">More...</a><br /></td></tr>
<tr class="separator:ga63e10a27014ea9ea425889a12e49ebf5"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:ga6fa6e6bded41fb636fd868a40e3fd8be"><td class="memItemLeft" align="right" valign="top">cpl_image * </td><td class="memItemRight" valign="bottom"><a class="el" href="group__cpl__image.html#ga6fa6e6bded41fb636fd868a40e3fd8be">cpl_image_wrap_float_complex</a> (<a class="el" href="group__cpl__type.html#gacc431432a4fedf19ec6f7668dda3fbf0">cpl_size</a> nx, <a class="el" href="group__cpl__type.html#gacc431432a4fedf19ec6f7668dda3fbf0">cpl_size</a> ny, float complex *pixels)</td></tr>
<tr class="memdesc:ga6fa6e6bded41fb636fd868a40e3fd8be"><td class="mdescLeft"> </td><td class="mdescRight">Create a float complex image using an existing pixel buffer. <a href="#ga6fa6e6bded41fb636fd868a40e3fd8be">More...</a><br /></td></tr>
<tr class="separator:ga6fa6e6bded41fb636fd868a40e3fd8be"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:ga9ccaf8ab0d6e20c7aba7b3da1bade322"><td class="memItemLeft" align="right" valign="top">cpl_image * </td><td class="memItemRight" valign="bottom"><a class="el" href="group__cpl__image.html#ga9ccaf8ab0d6e20c7aba7b3da1bade322">cpl_image_wrap_int</a> (<a class="el" href="group__cpl__type.html#gacc431432a4fedf19ec6f7668dda3fbf0">cpl_size</a> nx, <a class="el" href="group__cpl__type.html#gacc431432a4fedf19ec6f7668dda3fbf0">cpl_size</a> ny, int *pixels)</td></tr>
<tr class="memdesc:ga9ccaf8ab0d6e20c7aba7b3da1bade322"><td class="mdescLeft"> </td><td class="mdescRight">Create an integer image using an existing pixel buffer. <a href="#ga9ccaf8ab0d6e20c7aba7b3da1bade322">More...</a><br /></td></tr>
<tr class="separator:ga9ccaf8ab0d6e20c7aba7b3da1bade322"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:ga1a0b22a6882d30ffe5de44afe04a016e"><td class="memItemLeft" align="right" valign="top"><a class="el" href="group__cpl__error.html#ga44b4287e8a7a22122b94c220a1dd9459">cpl_error_code</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="group__cpl__image.html#ga1a0b22a6882d30ffe5de44afe04a016e">cpl_image_xor</a> (cpl_image *self, const cpl_image *first, const cpl_image *second)</td></tr>
<tr class="memdesc:ga1a0b22a6882d30ffe5de44afe04a016e"><td class="mdescLeft"> </td><td class="mdescRight">The bit-wise xor of two images with integer pixels. <a href="#ga1a0b22a6882d30ffe5de44afe04a016e">More...</a><br /></td></tr>
<tr class="separator:ga1a0b22a6882d30ffe5de44afe04a016e"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:ga1599090c62fe7b0fdcbb7231e95c9a19"><td class="memItemLeft" align="right" valign="top"><a class="el" href="group__cpl__error.html#ga44b4287e8a7a22122b94c220a1dd9459">cpl_error_code</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="group__cpl__image.html#ga1599090c62fe7b0fdcbb7231e95c9a19">cpl_image_xor_scalar</a> (cpl_image *self, const cpl_image *first, <a class="el" href="group__cpl__type.html#ga8d50ea1fd78afcce32f5bcc94a3b8f03">cpl_bitmask</a> second)</td></tr>
<tr class="memdesc:ga1599090c62fe7b0fdcbb7231e95c9a19"><td class="mdescLeft"> </td><td class="mdescRight">The bit-wise xor of a scalar and an image with integer pixels. <a href="#ga1599090c62fe7b0fdcbb7231e95c9a19">More...</a><br /></td></tr>
<tr class="separator:ga1599090c62fe7b0fdcbb7231e95c9a19"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:gaf56b8dc8f9e7aa1379f1ec57101b4da5"><td class="memItemLeft" align="right" valign="top">cpl_vector * </td><td class="memItemRight" valign="bottom"><a class="el" href="group__cpl__image.html#gaf56b8dc8f9e7aa1379f1ec57101b4da5">cpl_vector_new_from_image_column</a> (const cpl_image *image_in, <a class="el" href="group__cpl__type.html#gacc431432a4fedf19ec6f7668dda3fbf0">cpl_size</a> pos)</td></tr>
<tr class="memdesc:gaf56b8dc8f9e7aa1379f1ec57101b4da5"><td class="mdescLeft"> </td><td class="mdescRight">Extract a column from an image. <a href="#gaf56b8dc8f9e7aa1379f1ec57101b4da5">More...</a><br /></td></tr>
<tr class="separator:gaf56b8dc8f9e7aa1379f1ec57101b4da5"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:ga793a1282c1792be89a7328cb0973e4e0"><td class="memItemLeft" align="right" valign="top">cpl_vector * </td><td class="memItemRight" valign="bottom"><a class="el" href="group__cpl__image.html#ga793a1282c1792be89a7328cb0973e4e0">cpl_vector_new_from_image_row</a> (const cpl_image *image_in, <a class="el" href="group__cpl__type.html#gacc431432a4fedf19ec6f7668dda3fbf0">cpl_size</a> pos)</td></tr>
<tr class="memdesc:ga793a1282c1792be89a7328cb0973e4e0"><td class="mdescLeft"> </td><td class="mdescRight">Extract a row from an image. <a href="#ga793a1282c1792be89a7328cb0973e4e0">More...</a><br /></td></tr>
<tr class="separator:ga793a1282c1792be89a7328cb0973e4e0"><td class="memSeparator" colspan="2"> </td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2>
<p>This module provides functions to create, use, and destroy a <em>cpl_image</em>. A <em>cpl_image</em> is a 2-dimensional data structure with a pixel type (one of <code>CPL_TYPE_INT</code>, <code>CPL_TYPE_FLOAT</code>, <code>CPL_TYPE_DOUBLE</code>, <code>CPL_TYPE_FLOAT_COMPLEX</code> or <code>CPL_TYPE_DOUBLE_COMPLEX</code>) and an optional bad pixel map.</p>
<p>The pixel indexing follows the FITS convention in the sense that the lower left pixel in a CPL image has index (1, 1). The pixel buffer is stored row-wise so for optimum performance any pixel-wise access should be done likewise.</p>
<p>Functionality include: FITS I/O Image arithmetic, casting, extraction, thresholding, filtering, resampling Bad pixel handling Image statistics Generation of test images Special functions, such as the image quality estimator</p>
<dl class="section user"><dt>Synopsis:</dt><dd><div class="fragment"><div class="line"><span class="preprocessor">#include "cpl_image.h"</span></div>
</div><!-- fragment --></dd></dl>
<p>Usage: define the following preprocessor symbols as needed, then include this file </p>
<h2 class="groupheader">Typedef Documentation</h2>
<a class="anchor" id="gab3784dca1e5dc78c42fb1b416158c511"></a>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">typedef enum <a class="el" href="group__cpl__image.html#ga88a012a3ba4c750892420ac082d6c661">_cpl_value_</a> <a class="el" href="group__cpl__image.html#gab3784dca1e5dc78c42fb1b416158c511">cpl_value</a></td>
</tr>
</table>
</div><div class="memdoc">
<p>The CPL special value. It is a bit field. </p>
</div>
</div>
<h2 class="groupheader">Enumeration Type Documentation</h2>
<a class="anchor" id="ga88a012a3ba4c750892420ac082d6c661"></a>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">enum <a class="el" href="group__cpl__image.html#ga88a012a3ba4c750892420ac082d6c661">_cpl_value_</a></td>
</tr>
</table>
</div><div class="memdoc">
<p>The special values that can be rejected They are a bit-field and can be combined with bitwise or. </p>
<table class="fieldtable">
<tr><th colspan="2">Enumerator</th></tr><tr><td class="fieldname"><a class="anchor" id="gga88a012a3ba4c750892420ac082d6c661ae8f92a10f31c329d9ca64864db968d6a"></a>CPL_VALUE_NAN </td><td class="fielddoc">
<p>Not-a-Number (NaN) </p>
</td></tr>
<tr><td class="fieldname"><a class="anchor" id="gga88a012a3ba4c750892420ac082d6c661ab667e95fe225eed479231dda025280b0"></a>CPL_VALUE_PLUSINF </td><td class="fielddoc">
<p>Plus Infinity </p>
</td></tr>
<tr><td class="fieldname"><a class="anchor" id="gga88a012a3ba4c750892420ac082d6c661acfd18000cafd737fe32fdee782dcb6d0"></a>CPL_VALUE_MINUSINF </td><td class="fielddoc">
<p>Minus Infinity </p>
</td></tr>
<tr><td class="fieldname"><a class="anchor" id="gga88a012a3ba4c750892420ac082d6c661a29c82629ec34379000a97adf3bf1dd25"></a>CPL_VALUE_ZERO </td><td class="fielddoc">
<p>Zero </p>
</td></tr>
<tr><td class="fieldname"><a class="anchor" id="gga88a012a3ba4c750892420ac082d6c661ad8d73483642c30ab787aad0536d1dee8"></a>CPL_VALUE_INF </td><td class="fielddoc">
<p>Infinity with any sign </p>
</td></tr>
<tr><td class="fieldname"><a class="anchor" id="gga88a012a3ba4c750892420ac082d6c661ae9e5c6bf52ed755615a44d7186fb54b3"></a>CPL_VALUE_NOTFINITE </td><td class="fielddoc">
<p>NaN or infinity with any sign </p>
</td></tr>
</table>
</div>
</div>
<h2 class="groupheader">Function Documentation</h2>
<a class="anchor" id="ga71ed4128496419f983d66ffb4430cb67"></a>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname"><a class="el" href="group__cpl__error.html#ga44b4287e8a7a22122b94c220a1dd9459">cpl_error_code</a> cpl_image_abs </td>
<td>(</td>
<td class="paramtype">cpl_image * </td>
<td class="paramname"><em>image</em></td><td>)</td>
<td></td>
</tr>
</table>
</div><div class="memdoc">
<p>Take the absolute value of an image. </p>
<dl class="params"><dt>Parameters</dt><dd>
<table class="params">
<tr><td class="paramname">image</td><td>Image to be modified in place </td></tr>
</table>
</dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>CPL_ERROR_NONE or the relevant the <a class="el" href="group__cpl__error.html#ga49a0c316d52d2afbfd9fd94b95344900" title="Available error codes. ">_cpl_error_code_</a> on error</dd></dl>
<p>Set each pixel to its absolute value.</p>
<p>Possible <a class="el" href="group__cpl__error.html#ga49a0c316d52d2afbfd9fd94b95344900" title="Available error codes. ">_cpl_error_code_</a> set in this function:</p><ul>
<li>CPL_ERROR_NULL_INPUT if an input pointer is NULL </li>
</ul>
<p>References <a class="el" href="group__cpl__error.html#gaf18e95fbc6fc2cfde2a2cc8a0920b12d">cpl_ensure_code</a>, <a class="el" href="group__cpl__error.html#gga49a0c316d52d2afbfd9fd94b95344900a7907a24014a3a45aebe5ee1842f0c6f3">CPL_ERROR_INVALID_TYPE</a>, <a class="el" href="group__cpl__error.html#gga49a0c316d52d2afbfd9fd94b95344900a0239c1c63e9d21e98e45221a3ad60406">CPL_ERROR_NONE</a>, and <a class="el" href="group__cpl__error.html#gga49a0c316d52d2afbfd9fd94b95344900a7b054cf7927d1bd0a9b3693a6715be84">CPL_ERROR_NULL_INPUT</a>.</p>
<p>Referenced by <a class="el" href="group__cpl__image.html#gab6254d75952598d70fea6ce6276de572">cpl_image_abs_create()</a>, <a class="el" href="group__cpl__image.html#ga3a2ac9628c7dd3d8bc8355980474af72">cpl_image_fill_jacobian()</a>, and <a class="el" href="group__cpl__image.html#ga9da9342bdd22b4db42abd6cdf32dd5c3">cpl_image_fill_jacobian_polynomial()</a>.</p>
</div>
</div>
<a class="anchor" id="gab6254d75952598d70fea6ce6276de572"></a>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">cpl_image* cpl_image_abs_create </td>
<td>(</td>
<td class="paramtype">const cpl_image * </td>
<td class="paramname"><em>image_in</em></td><td>)</td>
<td></td>
</tr>
</table>
</div><div class="memdoc">
<p>Take the absolute value of an image. </p>
<dl class="params"><dt>Parameters</dt><dd>
<table class="params">
<tr><td class="paramname">image_in</td><td>Image operand. </td></tr>
</table>
</dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>1 newly allocated image or NULL on error </dd></dl>
<dl class="section see"><dt>See also</dt><dd><a class="el" href="group__cpl__image.html#ga71ed4128496419f983d66ffb4430cb67" title="Take the absolute value of an image. ">cpl_image_abs</a></dd></dl>
<p>For each pixel, out = abs(in). The returned image must be deallocated using <a class="el" href="group__cpl__image.html#ga272e4e004716651b94d6d36e575b6841" title="Free memory associated to an cpl_image object. ">cpl_image_delete()</a>. </p>
<p>References <a class="el" href="group__cpl__error.html#gafb123879d8683c6d63681f433dc19bd0">cpl_ensure</a>, <a class="el" href="group__cpl__error.html#ga724de575c31ddf40f42786306f9dbdcb">cpl_error_get_code()</a>, <a class="el" href="group__cpl__image.html#ga71ed4128496419f983d66ffb4430cb67">cpl_image_abs()</a>, <a class="el" href="group__cpl__image.html#ga272e4e004716651b94d6d36e575b6841">cpl_image_delete()</a>, and <a class="el" href="group__cpl__image.html#gadebfe1dae2cbd7a59fc09b323c55c10e">cpl_image_duplicate()</a>.</p>
</div>
</div>
<a class="anchor" id="gad10b1cfd108bca93f71cf0bdf74366d9"></a>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname"><a class="el" href="group__cpl__error.html#ga44b4287e8a7a22122b94c220a1dd9459">cpl_error_code</a> cpl_image_accept </td>
<td>(</td>
<td class="paramtype">cpl_image * </td>
<td class="paramname"><em>im</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype"><a class="el" href="group__cpl__type.html#gacc431432a4fedf19ec6f7668dda3fbf0">cpl_size</a> </td>
<td class="paramname"><em>x</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype"><a class="el" href="group__cpl__type.html#gacc431432a4fedf19ec6f7668dda3fbf0">cpl_size</a> </td>
<td class="paramname"><em>y</em> </td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td>
</tr>
</table>
</div><div class="memdoc">
<p>Set a pixel as good in an image. </p>
<dl class="params"><dt>Parameters</dt><dd>
<table class="params">
<tr><td class="paramname">im</td><td>the input image </td></tr>
<tr><td class="paramname">x</td><td>the x pixel position in the image (first pixel is 1) </td></tr>
<tr><td class="paramname">y</td><td>the y pixel position in the image (first pixel is 1) </td></tr>
</table>
</dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>the <a class="el" href="group__cpl__error.html#ga49a0c316d52d2afbfd9fd94b95344900" title="Available error codes. ">_cpl_error_code_</a> or CPL_ERROR_NONE</dd></dl>
<p>Possible <a class="el" href="group__cpl__error.html#ga49a0c316d52d2afbfd9fd94b95344900" title="Available error codes. ">_cpl_error_code_</a> set in this function:</p><ul>
<li>CPL_ERROR_NULL_INPUT if an input pointer is NULL</li>
<li>CPL_ERROR_ACCESS_OUT_OF_RANGE if the specified position is out of the image </li>
</ul>
<p>References <a class="el" href="group__cpl__error.html#gaf18e95fbc6fc2cfde2a2cc8a0920b12d">cpl_ensure_code</a>, <a class="el" href="group__cpl__error.html#gga49a0c316d52d2afbfd9fd94b95344900a0d916ea6a7e198a74863ecd9ea03d733">CPL_ERROR_ACCESS_OUT_OF_RANGE</a>, <a class="el" href="group__cpl__error.html#gga49a0c316d52d2afbfd9fd94b95344900a0239c1c63e9d21e98e45221a3ad60406">CPL_ERROR_NONE</a>, <a class="el" href="group__cpl__error.html#gga49a0c316d52d2afbfd9fd94b95344900a7b054cf7927d1bd0a9b3693a6715be84">CPL_ERROR_NULL_INPUT</a>, and <a class="el" href="group__cpl__mask.html#ga462a148e501731a123e573e6f818f8c2">cpl_mask_get_data()</a>.</p>
<p>Referenced by <a class="el" href="group__cpl__image.html#gaceda29961b159f8ae6d19b1759d6b34b">cpl_image_set()</a>, and <a class="el" href="group__cpl__image.html#ga4621604fefc84c57d5f198e02ef49260">cpl_image_set_complex()</a>.</p>
</div>
</div>
<a class="anchor" id="ga035ba167b6776b782e9920335dba5587"></a>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname"><a class="el" href="group__cpl__error.html#ga44b4287e8a7a22122b94c220a1dd9459">cpl_error_code</a> cpl_image_accept_all </td>
<td>(</td>
<td class="paramtype">cpl_image * </td>
<td class="paramname"><em>self</em></td><td>)</td>
<td></td>
</tr>
</table>
</div><div class="memdoc">
<p>Set all pixels in the image as good. </p>
<dl class="params"><dt>Parameters</dt><dd>
<table class="params">
<tr><td class="paramname">self</td><td>the input image </td></tr>
</table>
</dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>the <a class="el" href="group__cpl__error.html#ga49a0c316d52d2afbfd9fd94b95344900" title="Available error codes. ">_cpl_error_code_</a> or CPL_ERROR_NONE</dd></dl>
<p>Possible <a class="el" href="group__cpl__error.html#ga49a0c316d52d2afbfd9fd94b95344900" title="Available error codes. ">_cpl_error_code_</a> set in this function:</p><ul>
<li>CPL_ERROR_NULL_INPUT if an input pointer is NULL </li>
</ul>
<p>References <a class="el" href="group__cpl__error.html#gga49a0c316d52d2afbfd9fd94b95344900a0239c1c63e9d21e98e45221a3ad60406">CPL_ERROR_NONE</a>, <a class="el" href="group__cpl__image.html#gaa78c1412f0efea52c2d6f5e7d5528eca">cpl_image_unset_bpm()</a>, and <a class="el" href="group__cpl__mask.html#gaa312160718b8fdc24de0cd755cf35224">cpl_mask_delete()</a>.</p>
<p>Referenced by <a class="el" href="group__cpl__detector.html#ga83fd1a1d48eeeb444d6a1a84c6d5e2de">cpl_detector_interpolate_rejected()</a>, <a class="el" href="group__cpl__geom__img.html#ga8df5c11aeb84394817af6a0680c2859c">cpl_geom_img_offset_saa()</a>, and <a class="el" href="group__cpl__imagelist.html#ga7781fb428bbd12459bc8ec58ccbf855f">cpl_imagelist_collapse_create()</a>.</p>
</div>
</div>
<a class="anchor" id="gaff601b28e179b3d1e62068e7561a26e8"></a>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname"><a class="el" href="group__cpl__error.html#ga44b4287e8a7a22122b94c220a1dd9459">cpl_error_code</a> cpl_image_add </td>
<td>(</td>
<td class="paramtype">cpl_image * </td>
<td class="paramname"><em>im1</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">const cpl_image * </td>
<td class="paramname"><em>im2</em> </td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td>
</tr>
</table>
</div><div class="memdoc">
<p>Add two images, store the result in the first image. </p>
<dl class="params"><dt>Parameters</dt><dd>
<table class="params">
<tr><td class="paramname">im1</td><td>first operand. </td></tr>
<tr><td class="paramname">im2</td><td>second operand. </td></tr>
</table>
</dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>the <a class="el" href="group__cpl__error.html#ga49a0c316d52d2afbfd9fd94b95344900" title="Available error codes. ">_cpl_error_code_</a> or CPL_ERROR_NONE</dd></dl>
<p>The first input image is modified to contain the result of the operation.</p>
<p>The bad pixel map of the first image becomes the union of the bad pixel maps of the input images.</p>
<p>Possible <a class="el" href="group__cpl__error.html#ga49a0c316d52d2afbfd9fd94b95344900" title="Available error codes. ">_cpl_error_code_</a> set in this function:</p><ul>
<li>CPL_ERROR_NULL_INPUT if an input pointer is NULL</li>
<li>CPL_ERROR_INCOMPATIBLE_INPUT if the input images have different sizes</li>
<li>CPL_ERROR_TYPE_MISMATCH if the second input image has complex type while the first one does not </li>
</ul>
<p>Referenced by <a class="el" href="group__cpl__image.html#ga096a8a3b65ad42f44f6d854c6594a4e1">cpl_image_fill_test_create()</a>, and <a class="el" href="group__cpl__imagelist.html#ga7781fb428bbd12459bc8ec58ccbf855f">cpl_imagelist_collapse_create()</a>.</p>
</div>
</div>
<a class="anchor" id="ga6126fb1c1a32987e3558970aca84a5ec"></a>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">cpl_image* cpl_image_add_create </td>
<td>(</td>
<td class="paramtype">const cpl_image * </td>
<td class="paramname"><em>image1</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">const cpl_image * </td>
<td class="paramname"><em>image2</em> </td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td>
</tr>
</table>
</div><div class="memdoc">
<p>Add two images. </p>
<dl class="params"><dt>Parameters</dt><dd>
<table class="params">
<tr><td class="paramname">image1</td><td>first operand </td></tr>
<tr><td class="paramname">image2</td><td>second operand </td></tr>
</table>
</dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>1 newly allocated image or NULL on error</dd></dl>
<p>Creates a new image, being the result of the operation, and returns it to the caller. The returned image must be deallocated using <a class="el" href="group__cpl__image.html#ga272e4e004716651b94d6d36e575b6841" title="Free memory associated to an cpl_image object. ">cpl_image_delete()</a>. The function supports images with different types among CPL_TYPE_INT, CPL_TYPE_FLOAT and CPL_TYPE_DOUBLE. The returned image type is the one of the first passed image.</p>
<p>The bad pixels map of the result is the union of the bad pixels maps of the input images.</p>
<p>Possible <a class="el" href="group__cpl__error.html#ga49a0c316d52d2afbfd9fd94b95344900" title="Available error codes. ">_cpl_error_code_</a> set in this function:</p><ul>
<li>CPL_ERROR_NULL_INPUT if an input pointer is NULL</li>
<li>CPL_ERROR_INCOMPATIBLE_INPUT if the input images have different sizes</li>
<li>CPL_ERROR_TYPE_MISMATCH if the second input image has complex type while the first one does not </li>
</ul>
</div>
</div>
<a class="anchor" id="ga3bd51e4922065f67d7cdcc4043c6b0cd"></a>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname"><a class="el" href="group__cpl__error.html#ga44b4287e8a7a22122b94c220a1dd9459">cpl_error_code</a> cpl_image_add_scalar </td>
<td>(</td>
<td class="paramtype">cpl_image * </td>
<td class="paramname"><em>self</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">double </td>
<td class="paramname"><em>scalar</em> </td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td>
</tr>
</table>
</div><div class="memdoc">
<p>Elementwise addition of a scalar to an image. </p>
<dl class="params"><dt>Parameters</dt><dd>
<table class="params">
<tr><td class="paramname">self</td><td>Image to be modified in place. </td></tr>
<tr><td class="paramname">scalar</td><td>Number to add </td></tr>
</table>
</dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>CPL_ERROR_NONE or the relevant the <a class="el" href="group__cpl__error.html#ga49a0c316d52d2afbfd9fd94b95344900" title="Available error codes. ">_cpl_error_code_</a> on error</dd></dl>
<p>Modifies the image by adding a number to each of its pixels.</p>
<p>The operation is always performed in double precision, with a final cast of the result to the image pixel type.</p>
<p>Possible <a class="el" href="group__cpl__error.html#ga49a0c316d52d2afbfd9fd94b95344900" title="Available error codes. ">_cpl_error_code_</a> set in this function:</p><ul>
<li>CPL_ERROR_NULL_INPUT if an input pointer is NULL </li>
</ul>
<p>References <a class="el" href="group__cpl__error.html#gaf18e95fbc6fc2cfde2a2cc8a0920b12d">cpl_ensure_code</a>, <a class="el" href="group__cpl__error.html#gga49a0c316d52d2afbfd9fd94b95344900a7907a24014a3a45aebe5ee1842f0c6f3">CPL_ERROR_INVALID_TYPE</a>, <a class="el" href="group__cpl__error.html#gga49a0c316d52d2afbfd9fd94b95344900a0239c1c63e9d21e98e45221a3ad60406">CPL_ERROR_NONE</a>, <a class="el" href="group__cpl__error.html#gga49a0c316d52d2afbfd9fd94b95344900a7b054cf7927d1bd0a9b3693a6715be84">CPL_ERROR_NULL_INPUT</a>, and <a class="el" href="group__cpl__image.html#ga17f97e60794f88e7f06b85cccbecc132">cpl_image_get_type()</a>.</p>
<p>Referenced by <a class="el" href="group__cpl__image.html#ga956c494049f2bff35a254ee2d91a212f">cpl_image_add_scalar_create()</a>, <a class="el" href="group__cpl__imagelist.html#ga27af298cfe9123948061d86c43877ad5">cpl_image_new_from_accepted()</a>, and <a class="el" href="group__cpl__imagelist.html#ga394205194ecc53c9211980f3088f1d95">cpl_imagelist_add_scalar()</a>.</p>
</div>
</div>
<a class="anchor" id="ga956c494049f2bff35a254ee2d91a212f"></a>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">cpl_image* cpl_image_add_scalar_create </td>
<td>(</td>
<td class="paramtype">const cpl_image * </td>
<td class="paramname"><em>image</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">double </td>
<td class="paramname"><em>addend</em> </td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td>
</tr>
</table>
</div><div class="memdoc">
<p>Create a new image by elementwise addition of a scalar to an image. </p>
<dl class="params"><dt>Parameters</dt><dd>
<table class="params">
<tr><td class="paramname">image</td><td>Image to add </td></tr>
<tr><td class="paramname">addend</td><td>Number to add </td></tr>
</table>
</dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>1 newly allocated image or NULL in case of an error </dd></dl>
<dl class="section see"><dt>See also</dt><dd><a class="el" href="group__cpl__image.html#ga3bd51e4922065f67d7cdcc4043c6b0cd" title="Elementwise addition of a scalar to an image. ">cpl_image_add_scalar</a></dd></dl>
<p>Creates a new image, being the result of the operation, and returns it to the caller. The returned image must be deallocated using <a class="el" href="group__cpl__image.html#ga272e4e004716651b94d6d36e575b6841" title="Free memory associated to an cpl_image object. ">cpl_image_delete()</a>. The function supports images with different types among CPL_TYPE_INT, CPL_TYPE_FLOAT and CPL_TYPE_DOUBLE. The type of the created image is that of the passed image. </p>
<p>References <a class="el" href="group__cpl__error.html#gafb123879d8683c6d63681f433dc19bd0">cpl_ensure</a>, <a class="el" href="group__cpl__error.html#ga724de575c31ddf40f42786306f9dbdcb">cpl_error_get_code()</a>, <a class="el" href="group__cpl__image.html#ga3bd51e4922065f67d7cdcc4043c6b0cd">cpl_image_add_scalar()</a>, <a class="el" href="group__cpl__image.html#ga272e4e004716651b94d6d36e575b6841">cpl_image_delete()</a>, and <a class="el" href="group__cpl__image.html#gadebfe1dae2cbd7a59fc09b323c55c10e">cpl_image_duplicate()</a>.</p>
</div>
</div>
<a class="anchor" id="ga6e4e66328086841fcd96e2eec56a7bb7"></a>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname"><a class="el" href="group__cpl__error.html#ga44b4287e8a7a22122b94c220a1dd9459">cpl_error_code</a> cpl_image_and </td>
<td>(</td>
<td class="paramtype">cpl_image * </td>
<td class="paramname"><em>self</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">const cpl_image * </td>
<td class="paramname"><em>first</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">const cpl_image * </td>
<td class="paramname"><em>second</em> </td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td>
</tr>
</table>
</div><div class="memdoc">
<p>The bit-wise and of two images with integer pixels. </p>
<dl class="params"><dt>Parameters</dt><dd>
<table class="params">
<tr><td class="paramname">self</td><td>Pre-allocated image to hold the result </td></tr>
<tr><td class="paramname">first</td><td>First operand, or NULL for an in-place operation </td></tr>
<tr><td class="paramname">second</td><td>Second operand </td></tr>
</table>
</dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>CPL_ERROR_NONE or the relevant the <a class="el" href="group__cpl__error.html#ga49a0c316d52d2afbfd9fd94b95344900" title="Available error codes. ">_cpl_error_code_</a> on error </dd></dl>
<dl class="section note"><dt>Note</dt><dd>CPL_TYPE_INT is required </dd></dl>
<dl class="section see"><dt>See also</dt><dd><a class="el" href="group__cpl__mask.html#ga5e856d16ee1665f5072658967a595c2d" title="Performs a logical AND of one mask onto another. ">cpl_mask_and()</a> for the equivalent logical operation</dd></dl>
<p>Possible <a class="el" href="group__cpl__error.html#ga49a0c316d52d2afbfd9fd94b95344900" title="Available error codes. ">_cpl_error_code_</a> set in this function:</p><ul>
<li>CPL_ERROR_NULL_INPUT if an input pointer is NULL</li>
<li>CPL_ERROR_INCOMPATIBLE_INPUT if the images have different sizes</li>
<li>CPL_ERROR_INVALID_TYPE if the passed image type is as required </li>
</ul>
<p>References <a class="el" href="group__cpl__error.html#gaf18e95fbc6fc2cfde2a2cc8a0920b12d">cpl_ensure_code</a>, <a class="el" href="group__cpl__error.html#gga49a0c316d52d2afbfd9fd94b95344900a67b9f44eb1db1ab12f0575dbb878c0fd">CPL_ERROR_INCOMPATIBLE_INPUT</a>, <a class="el" href="group__cpl__error.html#gga49a0c316d52d2afbfd9fd94b95344900a7907a24014a3a45aebe5ee1842f0c6f3">CPL_ERROR_INVALID_TYPE</a>, <a class="el" href="group__cpl__error.html#gga49a0c316d52d2afbfd9fd94b95344900a0239c1c63e9d21e98e45221a3ad60406">CPL_ERROR_NONE</a>, <a class="el" href="group__cpl__error.html#gga49a0c316d52d2afbfd9fd94b95344900a7b054cf7927d1bd0a9b3693a6715be84">CPL_ERROR_NULL_INPUT</a>, <a class="el" href="group__cpl__image.html#ga17f97e60794f88e7f06b85cccbecc132">cpl_image_get_type()</a>, <a class="el" href="group__cpl__image.html#ga787eff33b78af1e8d6d79189cdcf418b">cpl_image_or_mask()</a>, <a class="el" href="group__cpl__type.html#ga994816f2d7624221964f91e0b9556578">cpl_type_get_name()</a>, <a class="el" href="group__cpl__type.html#ga5098a0d41d12e907e5cacce2052a345e">cpl_type_get_sizeof()</a>, and <a class="el" href="group__cpl__type.html#gga3f03371e201544e9115b40065e47f086ae333db5ccea0813ccd892525b4ba1345">CPL_TYPE_INT</a>.</p>
</div>
</div>
<a class="anchor" id="ga7b1a20dae105755712e56ea22942add5"></a>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname"><a class="el" href="group__cpl__error.html#ga44b4287e8a7a22122b94c220a1dd9459">cpl_error_code</a> cpl_image_and_scalar </td>
<td>(</td>
<td class="paramtype">cpl_image * </td>
<td class="paramname"><em>self</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">const cpl_image * </td>
<td class="paramname"><em>first</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype"><a class="el" href="group__cpl__type.html#ga8d50ea1fd78afcce32f5bcc94a3b8f03">cpl_bitmask</a> </td>
<td class="paramname"><em>second</em> </td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td>
</tr>
</table>
</div><div class="memdoc">
<p>The bit-wise and of a scalar and an image with integer pixels. </p>
<dl class="params"><dt>Parameters</dt><dd>
<table class="params">
<tr><td class="paramname">self</td><td>Pre-allocated image to hold the result </td></tr>
<tr><td class="paramname">first</td><td>First operand, or NULL for an in-place operation </td></tr>
<tr><td class="paramname">second</td><td>Second operand (scalar) </td></tr>
</table>
</dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>CPL_ERROR_NONE or the relevant the <a class="el" href="group__cpl__error.html#ga49a0c316d52d2afbfd9fd94b95344900" title="Available error codes. ">_cpl_error_code_</a> on error </dd></dl>
<dl class="section note"><dt>Note</dt><dd>CPL_TYPE_INT is required</dd></dl>
<p>Possible <a class="el" href="group__cpl__error.html#ga49a0c316d52d2afbfd9fd94b95344900" title="Available error codes. ">_cpl_error_code_</a> set in this function:</p><ul>
<li>CPL_ERROR_NULL_INPUT if an input pointer is NULL</li>
<li>CPL_ERROR_INCOMPATIBLE_INPUT if the images have different sizes</li>
<li>CPL_ERROR_INVALID_TYPE if the passed image type is as required </li>
</ul>
<p>References <a class="el" href="group__cpl__error.html#gaf18e95fbc6fc2cfde2a2cc8a0920b12d">cpl_ensure_code</a>, <a class="el" href="group__cpl__error.html#gga49a0c316d52d2afbfd9fd94b95344900a67b9f44eb1db1ab12f0575dbb878c0fd">CPL_ERROR_INCOMPATIBLE_INPUT</a>, <a class="el" href="group__cpl__error.html#gga49a0c316d52d2afbfd9fd94b95344900a7907a24014a3a45aebe5ee1842f0c6f3">CPL_ERROR_INVALID_TYPE</a>, <a class="el" href="group__cpl__error.html#gga49a0c316d52d2afbfd9fd94b95344900a0239c1c63e9d21e98e45221a3ad60406">CPL_ERROR_NONE</a>, <a class="el" href="group__cpl__error.html#gga49a0c316d52d2afbfd9fd94b95344900a7b054cf7927d1bd0a9b3693a6715be84">CPL_ERROR_NULL_INPUT</a>, <a class="el" href="group__cpl__image.html#ga17f97e60794f88e7f06b85cccbecc132">cpl_image_get_type()</a>, <a class="el" href="group__cpl__image.html#ga6c69e93b4bdfa9d09730d3707a4786b9">cpl_image_or_mask_unary()</a>, <a class="el" href="group__cpl__type.html#ga994816f2d7624221964f91e0b9556578">cpl_type_get_name()</a>, <a class="el" href="group__cpl__type.html#ga5098a0d41d12e907e5cacce2052a345e">cpl_type_get_sizeof()</a>, and <a class="el" href="group__cpl__type.html#gga3f03371e201544e9115b40065e47f086ae333db5ccea0813ccd892525b4ba1345">CPL_TYPE_INT</a>.</p>
</div>
</div>
<a class="anchor" id="gaa171e04962288d941cd599cca86e4311"></a>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">cpl_image* cpl_image_average_create </td>
<td>(</td>
<td class="paramtype">const cpl_image * </td>
<td class="paramname"><em>image_1</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">const cpl_image * </td>
<td class="paramname"><em>image_2</em> </td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td>
</tr>
</table>
</div><div class="memdoc">
<p>Build the average of two images. </p>
<dl class="params"><dt>Parameters</dt><dd>
<table class="params">
<tr><td class="paramname">image_1</td><td>First image operand. </td></tr>
<tr><td class="paramname">image_2</td><td>Second image operand. </td></tr>
</table>
</dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>1 newly allocated image or NULL on error</dd></dl>
<p>Builds the average of two images and returns a newly allocated image, to be deallocated using <a class="el" href="group__cpl__image.html#ga272e4e004716651b94d6d36e575b6841" title="Free memory associated to an cpl_image object. ">cpl_image_delete()</a>. The average is arithmetic, i.e. outpix=(pix1+pix2)/2 Images can be of type CPL_TYPE_INT, CPL_TYPE_FLOAT or CPL_TYPE_DOUBLE.</p>
<p>Possible <a class="el" href="group__cpl__error.html#ga49a0c316d52d2afbfd9fd94b95344900" title="Available error codes. ">_cpl_error_code_</a> set in this function:</p><ul>
<li>CPL_ERROR_NULL_INPUT if an input pointer is NULL</li>
<li>CPL_ERROR_INVALID_TYPE if the passed image type is not supported </li>
</ul>
<p>References <a class="el" href="group__cpl__error.html#gafb123879d8683c6d63681f433dc19bd0">cpl_ensure</a>, <a class="el" href="group__cpl__error.html#gga49a0c316d52d2afbfd9fd94b95344900ae6ab32df318c1af9afcddcb8249cad51">CPL_ERROR_ILLEGAL_INPUT</a>, <a class="el" href="group__cpl__error.html#gga49a0c316d52d2afbfd9fd94b95344900a7907a24014a3a45aebe5ee1842f0c6f3">CPL_ERROR_INVALID_TYPE</a>, <a class="el" href="group__cpl__error.html#gga49a0c316d52d2afbfd9fd94b95344900a7b054cf7927d1bd0a9b3693a6715be84">CPL_ERROR_NULL_INPUT</a>, <a class="el" href="group__cpl__mask.html#ga9eb7b94e28606874356b70be4eedb53d">cpl_mask_duplicate()</a>, and <a class="el" href="group__cpl__mask.html#gaf12dc55fffbbd55e9525bc69f39339a4">cpl_mask_or()</a>.</p>
</div>
</div>
<a class="anchor" id="gad986c25e9250952770f854022e1ffb24"></a>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">cpl_image* cpl_image_cast </td>
<td>(</td>
<td class="paramtype">const cpl_image * </td>
<td class="paramname"><em>self</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype"><a class="el" href="group__cpl__type.html#ga01345c598396c7cd159979734adfb57d">cpl_type</a> </td>
<td class="paramname"><em>type</em> </td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td>
</tr>
</table>
</div><div class="memdoc">
<p>Convert a cpl_image to a given type. </p>
<dl class="params"><dt>Parameters</dt><dd>
<table class="params">
<tr><td class="paramname">self</td><td>The image to convert </td></tr>
<tr><td class="paramname">type</td><td>The destination type </td></tr>
</table>
</dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>the newly allocated cpl_image or NULL on error</dd></dl>
<p>Casting to non-complex types is only supported for non-complex types.</p>
<p>Possible <a class="el" href="group__cpl__error.html#ga49a0c316d52d2afbfd9fd94b95344900" title="Available error codes. ">_cpl_error_code_</a> set in this function:</p><ul>
<li>CPL_ERROR_NULL_INPUT if an input pointer is NULL</li>
<li>CPL_ERROR_ILLEGAL_INPUT if the passed type is invalid</li>
<li>CPL_ERROR_TYPE_MISMATCH if the passed image type is complex and requested casting type is non-complex.</li>
<li>CPL_ERROR_INVALID_TYPE if the passed pixel type is not supported </li>
</ul>
<p>References <a class="el" href="group__cpl__error.html#gafb123879d8683c6d63681f433dc19bd0">cpl_ensure</a>, <a class="el" href="group__cpl__error.html#gga49a0c316d52d2afbfd9fd94b95344900ae6ab32df318c1af9afcddcb8249cad51">CPL_ERROR_ILLEGAL_INPUT</a>, <a class="el" href="group__cpl__error.html#gga49a0c316d52d2afbfd9fd94b95344900a7907a24014a3a45aebe5ee1842f0c6f3">CPL_ERROR_INVALID_TYPE</a>, <a class="el" href="group__cpl__error.html#gga49a0c316d52d2afbfd9fd94b95344900a7b054cf7927d1bd0a9b3693a6715be84">CPL_ERROR_NULL_INPUT</a>, <a class="el" href="group__cpl__error.html#gga49a0c316d52d2afbfd9fd94b95344900a2e9d240c9641519323b3d6d616952482">CPL_ERROR_TYPE_MISMATCH</a>, <a class="el" href="group__cpl__image.html#ga272e4e004716651b94d6d36e575b6841">cpl_image_delete()</a>, <a class="el" href="group__cpl__image.html#gadebfe1dae2cbd7a59fc09b323c55c10e">cpl_image_duplicate()</a>, <a class="el" href="group__cpl__image.html#gab5a6bc059aa1d38c37ab5852b5170e45">cpl_image_get_size_x()</a>, <a class="el" href="group__cpl__image.html#gaf3495f9be1d6892cfed9c5232ccee350">cpl_image_get_size_y()</a>, <a class="el" href="group__cpl__memory.html#gac884edcb0a592489c65239d0e5d08785">cpl_malloc()</a>, <a class="el" href="group__cpl__mask.html#ga9eb7b94e28606874356b70be4eedb53d">cpl_mask_duplicate()</a>, <a class="el" href="group__cpl__type.html#gga3f03371e201544e9115b40065e47f086a4923f03f3a673edd344b0d81835ca69e">CPL_TYPE_DOUBLE</a>, <a class="el" href="group__cpl__type.html#gga3f03371e201544e9115b40065e47f086afc7205e8b040bdfdee6011685cfe4345">CPL_TYPE_DOUBLE_COMPLEX</a>, <a class="el" href="group__cpl__type.html#gga3f03371e201544e9115b40065e47f086aa44c37e26b9040a96e3a49b405946942">CPL_TYPE_FLOAT</a>, <a class="el" href="group__cpl__type.html#gga3f03371e201544e9115b40065e47f086ab2ab0f96a382011a38ee9446626fe1e0">CPL_TYPE_FLOAT_COMPLEX</a>, <a class="el" href="group__cpl__type.html#gga3f03371e201544e9115b40065e47f086ae333db5ccea0813ccd892525b4ba1345">CPL_TYPE_INT</a>, and <a class="el" href="group__cpl__type.html#gga3f03371e201544e9115b40065e47f086a557ce1b89a9acd48254c302ec1eed956">CPL_TYPE_INVALID</a>.</p>
<p>Referenced by <a class="el" href="group__cpl__apertures.html#ga23b66826669fa90caafd5ad3060a116d">cpl_apertures_new_from_image()</a>, <a class="el" href="group__cpl__image.html#ga3cee6b4b3544f5e44d246d31731fedc9">cpl_image_fit_gaussian()</a>, <a class="el" href="group__cpl__imagelist.html#ga279d1cfa700e3da60be0e569e56080c4">cpl_imagelist_cast()</a>, <a class="el" href="group__cpl__plot.html#gac52d4503c66e0878a162909b84120ccd">cpl_plot_image()</a>, <a class="el" href="group__cpl__plot.html#gaef75b77f4d1a0642db7460a7a7569d70">cpl_plot_image_col()</a>, and <a class="el" href="group__cpl__plot.html#ga1f32ac705a1e262a4c415135e8a30103">cpl_plot_image_row()</a>.</p>
</div>
</div>
<a class="anchor" id="ga911a5da41a658e42f43f4c6a30d3f9d5"></a>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">cpl_image* cpl_image_collapse_create </td>
<td>(</td>
<td class="paramtype">const cpl_image * </td>
<td class="paramname"><em>self</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">int </td>
<td class="paramname"><em>direction</em> </td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td>
</tr>
</table>
</div><div class="memdoc">
<p>Collapse an image along its rows or columns. </p>
<dl class="params"><dt>Parameters</dt><dd>
<table class="params">
<tr><td class="paramname">self</td><td>Input image to collapse. </td></tr>
<tr><td class="paramname">direction</td><td>Collapsing direction. </td></tr>
</table>
</dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>1 newly allocated 1D image or NULL on error</dd></dl>
<p>On success the function returns a 1D image, created by adding up all pixels on the same row or column.</p>
<pre class="fragment">Collapse along y (sum of rows):
p7 p8 p9 Input image is a 3x3 image containing 9 pixels.
p4 p5 p6 The output is an image containing one row with
p1 p2 p3 3 pixels A, B, C, where:
----------
A B C A = p1+p4+p7
B = p2+p5+p8
C = p3+p6+p9
If p7 is a bad pixel, A = (p1+p4)*3/2.
If p1, p4, p7 are bad, A is flagged as bad.
</pre><p>Provide the collapsing direction as an int. Give 0 to collapse along y (sum of rows) and get an image with a single row in output, or give 1 to collapse along x (sum of columns) to get an image with a single column in output. Only the good pixels are collapsed. Images can be of type CPL_TYPE_INT, CPL_TYPE_FLOAT or CPL_TYPE_DOUBLE. The returned image must be deallocated using <a class="el" href="group__cpl__image.html#ga272e4e004716651b94d6d36e575b6841" title="Free memory associated to an cpl_image object. ">cpl_image_delete()</a>.</p>
<p>Possible <a class="el" href="group__cpl__error.html#ga49a0c316d52d2afbfd9fd94b95344900" title="Available error codes. ">_cpl_error_code_</a> set in this function:</p><ul>
<li>CPL_ERROR_NULL_INPUT if an input pointer is NULL</li>
<li>CPL_ERROR_INVALID_TYPE if the passed image type is not supported </li>
</ul>
<p>References <a class="el" href="group__cpl__error.html#gafb123879d8683c6d63681f433dc19bd0">cpl_ensure</a>, <a class="el" href="group__cpl__error.html#ga724de575c31ddf40f42786306f9dbdcb">cpl_error_get_code()</a>, <a class="el" href="group__cpl__image.html#gad3951035c6da7fbdf0fa4e8e06e97fe9">cpl_image_collapse_window_create()</a>, <a class="el" href="group__cpl__image.html#gab5a6bc059aa1d38c37ab5852b5170e45">cpl_image_get_size_x()</a>, and <a class="el" href="group__cpl__image.html#gaf3495f9be1d6892cfed9c5232ccee350">cpl_image_get_size_y()</a>.</p>
</div>
</div>
<a class="anchor" id="gaf25ef45754ceba12f04c210202b64405"></a>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">cpl_image* cpl_image_collapse_median_create </td>
<td>(</td>
<td class="paramtype">const cpl_image * </td>
<td class="paramname"><em>self</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">int </td>
<td class="paramname"><em>direction</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype"><a class="el" href="group__cpl__type.html#gacc431432a4fedf19ec6f7668dda3fbf0">cpl_size</a> </td>
<td class="paramname"><em>drop_ll</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype"><a class="el" href="group__cpl__type.html#gacc431432a4fedf19ec6f7668dda3fbf0">cpl_size</a> </td>
<td class="paramname"><em>drop_ur</em> </td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td>
</tr>
</table>
</div><div class="memdoc">
<p>Collapse an image along its rows or columns, with filtering. </p>
<dl class="params"><dt>Parameters</dt><dd>
<table class="params">
<tr><td class="paramname">self</td><td>Input image to collapse. </td></tr>
<tr><td class="paramname">direction</td><td>Collapsing direction. </td></tr>
<tr><td class="paramname">drop_ll</td><td>Ignore this many lower rows/leftmost columns </td></tr>
<tr><td class="paramname">drop_ur</td><td>Ignore this many upper rows/rightmost columns </td></tr>
</table>
</dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>1 newly allocated image having 1 row or 1 column or NULL on error </dd></dl>
<dl class="section see"><dt>See also</dt><dd><a class="el" href="group__cpl__image.html#ga911a5da41a658e42f43f4c6a30d3f9d5" title="Collapse an image along its rows or columns. ">cpl_image_collapse_create()</a></dd></dl>
<p>The collapsing direction is defined as for <a class="el" href="group__cpl__image.html#ga911a5da41a658e42f43f4c6a30d3f9d5" title="Collapse an image along its rows or columns. ">cpl_image_collapse_create()</a>. For each output pixel, the median of the corresponding non-ignored pixels is computed. A combination of bad pixels and drop parameters can cause a median value in the output image to be undefined. Such pixels will be flagged as bad and set to zero.</p>
<p>If the output would contain only bad pixels an error is set.</p>
<p>Images can be of type CPL_TYPE_INT, CPL_TYPE_FLOAT or CPL_TYPE_DOUBLE. The returned image must be deallocated using <a class="el" href="group__cpl__image.html#ga272e4e004716651b94d6d36e575b6841" title="Free memory associated to an cpl_image object. ">cpl_image_delete()</a>.</p>
<p>Possible <a class="el" href="group__cpl__error.html#ga49a0c316d52d2afbfd9fd94b95344900" title="Available error codes. ">_cpl_error_code_</a> set in this function:</p><ul>
<li>CPL_ERROR_NULL_INPUT if an input pointer is NULL</li>
<li>CPL_ERROR_ILLEGAL_INPUT if a rejection parameter is negative, or if the sum of ignored pixels is bigger than the image size in the collapsing direction</li>
<li>CPL_ERROR_INVALID_TYPE if the passed image type is not supported</li>
<li>CPL_ERROR_DATA_NOT_FOUND if the output image would have only bad pixels </li>
</ul>
<p>References <a class="el" href="group__cpl__error.html#gafb123879d8683c6d63681f433dc19bd0">cpl_ensure</a>, <a class="el" href="group__cpl__error.html#gga49a0c316d52d2afbfd9fd94b95344900ae6ab32df318c1af9afcddcb8249cad51">CPL_ERROR_ILLEGAL_INPUT</a>, <a class="el" href="group__cpl__error.html#gga49a0c316d52d2afbfd9fd94b95344900a7907a24014a3a45aebe5ee1842f0c6f3">CPL_ERROR_INVALID_TYPE</a>, and <a class="el" href="group__cpl__error.html#gga49a0c316d52d2afbfd9fd94b95344900a7b054cf7927d1bd0a9b3693a6715be84">CPL_ERROR_NULL_INPUT</a>.</p>
</div>
</div>
<a class="anchor" id="gad3951035c6da7fbdf0fa4e8e06e97fe9"></a>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">cpl_image* cpl_image_collapse_window_create </td>
<td>(</td>
<td class="paramtype">const cpl_image * </td>
<td class="paramname"><em>self</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype"><a class="el" href="group__cpl__type.html#gacc431432a4fedf19ec6f7668dda3fbf0">cpl_size</a> </td>
<td class="paramname"><em>llx</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype"><a class="el" href="group__cpl__type.html#gacc431432a4fedf19ec6f7668dda3fbf0">cpl_size</a> </td>
<td class="paramname"><em>lly</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype"><a class="el" href="group__cpl__type.html#gacc431432a4fedf19ec6f7668dda3fbf0">cpl_size</a> </td>
<td class="paramname"><em>urx</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype"><a class="el" href="group__cpl__type.html#gacc431432a4fedf19ec6f7668dda3fbf0">cpl_size</a> </td>
<td class="paramname"><em>ury</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">int </td>
<td class="paramname"><em>direction</em> </td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td>
</tr>
</table>
</div><div class="memdoc">
<p>Collapse an image region along its rows or columns. </p>
<dl class="params"><dt>Parameters</dt><dd>
<table class="params">
<tr><td class="paramname">self</td><td>Image to collapse. </td></tr>
<tr><td class="paramname">llx</td><td>lower left x coord. </td></tr>
<tr><td class="paramname">lly</td><td>lower left y coord </td></tr>
<tr><td class="paramname">urx</td><td>upper right x coord </td></tr>
<tr><td class="paramname">ury</td><td>upper right y coord </td></tr>
<tr><td class="paramname">direction</td><td>Collapsing direction. </td></tr>
</table>
</dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>a newly allocated image or NULL on error </dd></dl>
<dl class="section see"><dt>See also</dt><dd><a class="el" href="group__cpl__image.html#ga911a5da41a658e42f43f4c6a30d3f9d5" title="Collapse an image along its rows or columns. ">cpl_image_collapse_create()</a></dd></dl>
<p>llx, lly, urx, ury are the image region coordinates in FITS convention. Those specified bounds are included in the collapsed region.</p>
<p>Possible <a class="el" href="group__cpl__error.html#ga49a0c316d52d2afbfd9fd94b95344900" title="Available error codes. ">_cpl_error_code_</a> set in this function:</p><ul>
<li>CPL_ERROR_NULL_INPUT if an input pointer is NULL</li>
<li>CPL_ERROR_ILLEGAL_INPUT if the specified window is not valid </li>
</ul>
<p>References <a class="el" href="group__cpl__image.html#ga17f97e60794f88e7f06b85cccbecc132">cpl_image_get_type()</a>, <a class="el" href="group__cpl__type.html#gga3f03371e201544e9115b40065e47f086a4923f03f3a673edd344b0d81835ca69e">CPL_TYPE_DOUBLE</a>, <a class="el" href="group__cpl__type.html#gga3f03371e201544e9115b40065e47f086aa44c37e26b9040a96e3a49b405946942">CPL_TYPE_FLOAT</a>, and <a class="el" href="group__cpl__type.html#gga3f03371e201544e9115b40065e47f086ae333db5ccea0813ccd892525b4ba1345">CPL_TYPE_INT</a>.</p>
<p>Referenced by <a class="el" href="group__cpl__image.html#ga911a5da41a658e42f43f4c6a30d3f9d5">cpl_image_collapse_create()</a>.</p>
</div>
</div>
<a class="anchor" id="gae1687997cfd9e1217d86166f9356147e"></a>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname"><a class="el" href="group__cpl__error.html#ga44b4287e8a7a22122b94c220a1dd9459">cpl_error_code</a> cpl_image_conjugate </td>
<td>(</td>
<td class="paramtype">cpl_image * </td>
<td class="paramname"><em>self</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">const cpl_image * </td>
<td class="paramname"><em>other</em> </td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td>
</tr>
</table>
</div><div class="memdoc">
<p>Complex conjugate the pixels in a complex image. </p>
<dl class="params"><dt>Parameters</dt><dd>
<table class="params">
<tr><td class="paramname">self</td><td>Pre-allocated complex image to hold the result </td></tr>
<tr><td class="paramname">other</td><td>The complex image to conjugate, may equal self </td></tr>
</table>
</dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>CPL_ERROR_NONE or <a class="el" href="group__cpl__error.html#ga49a0c316d52d2afbfd9fd94b95344900" title="Available error codes. ">_cpl_error_code_</a> on error </dd></dl>
<dl class="section note"><dt>Note</dt><dd>The two images must match in size and precision</dd></dl>
<p>Any bad pixels are also conjugated.</p>
<p>Possible <a class="el" href="group__cpl__error.html#ga49a0c316d52d2afbfd9fd94b95344900" title="Available error codes. ">_cpl_error_code_</a> set in this function:</p><ul>
<li>CPL_ERROR_NULL_INPUT If an input pointer is NULL</li>
<li>CPL_ERROR_INCOMPATIBLE_INPUT If the images have different sizes</li>
<li>CPL_ERROR_INVALID_TYPE If an input image is not of complex type</li>
<li>CPL_ERROR_TYPE_MISMATCH If the images have different precision </li>
</ul>
<p>References <a class="el" href="group__cpl__error.html#gaf18e95fbc6fc2cfde2a2cc8a0920b12d">cpl_ensure_code</a>, <a class="el" href="group__cpl__error.html#gga49a0c316d52d2afbfd9fd94b95344900a67b9f44eb1db1ab12f0575dbb878c0fd">CPL_ERROR_INCOMPATIBLE_INPUT</a>, <a class="el" href="group__cpl__error.html#gga49a0c316d52d2afbfd9fd94b95344900a7907a24014a3a45aebe5ee1842f0c6f3">CPL_ERROR_INVALID_TYPE</a>, <a class="el" href="group__cpl__error.html#gga49a0c316d52d2afbfd9fd94b95344900a0239c1c63e9d21e98e45221a3ad60406">CPL_ERROR_NONE</a>, <a class="el" href="group__cpl__error.html#gga49a0c316d52d2afbfd9fd94b95344900a7b054cf7927d1bd0a9b3693a6715be84">CPL_ERROR_NULL_INPUT</a>, <a class="el" href="group__cpl__error.html#gga49a0c316d52d2afbfd9fd94b95344900a2e9d240c9641519323b3d6d616952482">CPL_ERROR_TYPE_MISMATCH</a>, <a class="el" href="group__cpl__type.html#gga3f03371e201544e9115b40065e47f086afc7205e8b040bdfdee6011685cfe4345">CPL_TYPE_DOUBLE_COMPLEX</a>, and <a class="el" href="group__cpl__type.html#gga3f03371e201544e9115b40065e47f086ab2ab0f96a382011a38ee9446626fe1e0">CPL_TYPE_FLOAT_COMPLEX</a>.</p>
</div>
</div>
<a class="anchor" id="ga13a42c86638d087b5a097c87e36ea7bc"></a>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname"><a class="el" href="group__cpl__error.html#ga44b4287e8a7a22122b94c220a1dd9459">cpl_error_code</a> cpl_image_copy </td>
<td>(</td>
<td class="paramtype">cpl_image * </td>
<td class="paramname"><em>im1</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">const cpl_image * </td>
<td class="paramname"><em>im2</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype"><a class="el" href="group__cpl__type.html#gacc431432a4fedf19ec6f7668dda3fbf0">cpl_size</a> </td>
<td class="paramname"><em>xpos</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype"><a class="el" href="group__cpl__type.html#gacc431432a4fedf19ec6f7668dda3fbf0">cpl_size</a> </td>
<td class="paramname"><em>ypos</em> </td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td>
</tr>
</table>
</div><div class="memdoc">
<p>Copy one image into another. </p>
<dl class="params"><dt>Parameters</dt><dd>
<table class="params">
<tr><td class="paramname">im1</td><td>the image in which im2 is inserted </td></tr>
<tr><td class="paramname">im2</td><td>the inserted image </td></tr>
<tr><td class="paramname">xpos</td><td>the x pixel position in im1 where the lower left pixel of im2 should go (from 1 to the x size of im1) </td></tr>
<tr><td class="paramname">ypos</td><td>the y pixel position in im1 where the lower left pixel of im2 should go (from 1 to the y size of im1) </td></tr>
</table>
</dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>CPL_ERROR_NONE or the relevant <a class="el" href="group__cpl__error.html#ga49a0c316d52d2afbfd9fd94b95344900" title="Available error codes. ">_cpl_error_code_</a> on error. </dd></dl>
<dl class="section note"><dt>Note</dt><dd>The two pixel buffers may not overlap</dd></dl>
<p>(xpos, ypos) must be a valid position in im1. If im2 is bigger than the place left in im1, the part that falls outside of im1 is simply ignored, an no error is raised. The bad pixels are inherited from im2 in the concerned im1 zone.</p>
<p>The two input images must be of the same type, namely one of CPL_TYPE_INT, CPL_TYPE_FLOAT, CPL_TYPE_DOUBLE.</p>
<p>Possible <a class="el" href="group__cpl__error.html#ga49a0c316d52d2afbfd9fd94b95344900" title="Available error codes. ">_cpl_error_code_</a> set in this function:</p><ul>
<li>CPL_ERROR_TYPE_MISMATCH if the input images are of different types</li>
<li>CPL_ERROR_INVALID_TYPE if the passed image type is not supported</li>
<li>CPL_ERROR_ACCESS_OUT_OF_RANGE if xpos or ypos are outside the specified range </li>
</ul>
<p>References <a class="el" href="group__cpl__error.html#gaf18e95fbc6fc2cfde2a2cc8a0920b12d">cpl_ensure_code</a>, <a class="el" href="group__cpl__error.html#gga49a0c316d52d2afbfd9fd94b95344900a0d916ea6a7e198a74863ecd9ea03d733">CPL_ERROR_ACCESS_OUT_OF_RANGE</a>, <a class="el" href="group__cpl__error.html#gga49a0c316d52d2afbfd9fd94b95344900a0239c1c63e9d21e98e45221a3ad60406">CPL_ERROR_NONE</a>, <a class="el" href="group__cpl__error.html#gga49a0c316d52d2afbfd9fd94b95344900a7b054cf7927d1bd0a9b3693a6715be84">CPL_ERROR_NULL_INPUT</a>, <a class="el" href="group__cpl__error.html#gga49a0c316d52d2afbfd9fd94b95344900a2e9d240c9641519323b3d6d616952482">CPL_ERROR_TYPE_MISMATCH</a>, <a class="el" href="group__cpl__image.html#ga0b497875edfee08e540e69c2baea1ab4">cpl_image_get_data()</a>, <a class="el" href="group__cpl__image.html#gab5a6bc059aa1d38c37ab5852b5170e45">cpl_image_get_size_x()</a>, <a class="el" href="group__cpl__image.html#gaf3495f9be1d6892cfed9c5232ccee350">cpl_image_get_size_y()</a>, <a class="el" href="group__cpl__image.html#ga17f97e60794f88e7f06b85cccbecc132">cpl_image_get_type()</a>, <a class="el" href="group__cpl__mask.html#ga53baa443039ca40d078fae26ca9e2fac">cpl_mask_copy()</a>, <a class="el" href="group__cpl__mask.html#gaa312160718b8fdc24de0cd755cf35224">cpl_mask_delete()</a>, <a class="el" href="group__cpl__mask.html#gab67918578893ea4a0e005cb4397f8754">cpl_mask_new()</a>, and <a class="el" href="group__cpl__type.html#ga5098a0d41d12e907e5cacce2052a345e">cpl_type_get_sizeof()</a>.</p>
<p>Referenced by <a class="el" href="group__cpl__image.html#ga09c5ec8125d5ad2d14824106ac78061c">cpl_image_filter_mask()</a>.</p>
</div>
</div>
<a class="anchor" id="gafc771042281af33e78b366ef2f8e95e7"></a>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname"><a class="el" href="group__cpl__type.html#gacc431432a4fedf19ec6f7668dda3fbf0">cpl_size</a> cpl_image_count_rejected </td>
<td>(</td>
<td class="paramtype">const cpl_image * </td>
<td class="paramname"><em>im</em></td><td>)</td>
<td></td>
</tr>
</table>
</div><div class="memdoc">
<p>Count the number of bad pixels declared in an image. </p>
<dl class="params"><dt>Parameters</dt><dd>
<table class="params">
<tr><td class="paramname">im</td><td>the input image </td></tr>
</table>
</dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>the number of bad pixels or -1 if the input image is NULL</dd></dl>
<p>Possible <a class="el" href="group__cpl__error.html#ga49a0c316d52d2afbfd9fd94b95344900" title="Available error codes. ">_cpl_error_code_</a> set in this function:</p><ul>
<li>CPL_ERROR_NULL_INPUT if an input pointer is NULL </li>
</ul>
<p>References <a class="el" href="group__cpl__error.html#gafb123879d8683c6d63681f433dc19bd0">cpl_ensure</a>, <a class="el" href="group__cpl__error.html#gga49a0c316d52d2afbfd9fd94b95344900a7b054cf7927d1bd0a9b3693a6715be84">CPL_ERROR_NULL_INPUT</a>, and <a class="el" href="group__cpl__mask.html#ga38f7063792f43c2ca0955e5188d0b66d">cpl_mask_count()</a>.</p>
<p>Referenced by <a class="el" href="group__cpl__fit.html#ga8004d897c449d503c56f14ca99cf475b">cpl_fit_image_gaussian()</a>.</p>
</div>
</div>
<a class="anchor" id="ga272e4e004716651b94d6d36e575b6841"></a>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">void cpl_image_delete </td>
<td>(</td>
<td class="paramtype">cpl_image * </td>
<td class="paramname"><em>d</em></td><td>)</td>
<td></td>
</tr>
</table>
</div><div class="memdoc">
<p>Free memory associated to an cpl_image object. </p>
<dl class="params"><dt>Parameters</dt><dd>
<table class="params">
<tr><td class="paramname">d</td><td>Image to destroy. </td></tr>
</table>
</dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>void</dd></dl>
<p>Frees all memory associated with a cpl_image. If the passed image is NULL, the function returns without doing anything. </p>
<p>References <a class="el" href="group__cpl__memory.html#ga9cd2b64cbbe05ec9f34fda048184b4d1">cpl_free()</a>, and <a class="el" href="group__cpl__mask.html#gaa312160718b8fdc24de0cd755cf35224">cpl_mask_delete()</a>.</p>
<p>Referenced by <a class="el" href="group__cpl__apertures.html#ga6d1a9d2831508426141c99b425e9dcc6">cpl_apertures_extract_mask()</a>, <a class="el" href="group__cpl__apertures.html#ga81a3c7ab107e852bba7751b23d551095">cpl_apertures_extract_window()</a>, <a class="el" href="group__cpl__apertures.html#ga23b66826669fa90caafd5ad3060a116d">cpl_apertures_new_from_image()</a>, <a class="el" href="group__cpl__fit.html#ga8004d897c449d503c56f14ca99cf475b">cpl_fit_image_gaussian()</a>, <a class="el" href="group__cpl__geom__img.html#ga135df3510913add18d5550a8aa356923">cpl_geom_img_offset_fine()</a>, <a class="el" href="group__cpl__geom__img.html#ga8df5c11aeb84394817af6a0680c2859c">cpl_geom_img_offset_saa()</a>, <a class="el" href="group__cpl__image.html#gab6254d75952598d70fea6ce6276de572">cpl_image_abs_create()</a>, <a class="el" href="group__cpl__image.html#ga956c494049f2bff35a254ee2d91a212f">cpl_image_add_scalar_create()</a>, <a class="el" href="group__cpl__image.html#gad986c25e9250952770f854022e1ffb24">cpl_image_cast()</a>, <a class="el" href="group__cpl__image.html#gafad621e6d1960251ec23984039e838c6">cpl_image_divide_create()</a>, <a class="el" href="group__cpl__image.html#ga7315eb906f516eae42b75a9c3f50cea1">cpl_image_divide_scalar_create()</a>, <a class="el" href="group__cpl__image.html#ga17a0d77d099e9b74550a1de5680939df">cpl_image_exponential_create()</a>, <a class="el" href="group__cpl__image.html#ga3a2ac9628c7dd3d8bc8355980474af72">cpl_image_fill_jacobian()</a>, <a class="el" href="group__cpl__image.html#ga096a8a3b65ad42f44f6d854c6594a4e1">cpl_image_fill_test_create()</a>, <a class="el" href="group__cpl__image.html#gab4b4d2c7ec03d2f0e9f0abae612927b5">cpl_image_filter_linear()</a>, <a class="el" href="group__cpl__image.html#ga52d2e5aa1ce2c9bc3c560209e344ba40">cpl_image_filter_median()</a>, <a class="el" href="group__cpl__image.html#ga22149f62af2c9c0c02ac7a5bf9c259c1">cpl_image_filter_morpho()</a>, <a class="el" href="group__cpl__image.html#ga19d4e60abbeaf99717d3985c76aaadbd">cpl_image_filter_stdev()</a>, <a class="el" href="group__cpl__image.html#ga3cee6b4b3544f5e44d246d31731fedc9">cpl_image_fit_gaussian()</a>, <a class="el" href="group__cpl__image.html#gaa81c4cf5dca4516e8423dde705cff48b">cpl_image_iqe()</a>, <a class="el" href="group__cpl__image.html#gabfcae6086e5678420f1e69bc7917a4bd">cpl_image_logarithm_create()</a>, <a class="el" href="group__cpl__image.html#ga0b9c44f684a3e7781ccb5777ef001b3f">cpl_image_multiply_scalar_create()</a>, <a class="el" href="group__cpl__image.html#ga995346cf9ad364225c3eb6f81ae32f84">cpl_image_normalise_create()</a>, <a class="el" href="group__cpl__image.html#ga2f5949377b34ba90b60a9335a9cc0c1a">cpl_image_power_create()</a>, <a class="el" href="group__cpl__image.html#ga07f1a13958fb9f1d3bba6e1a28b618f8">cpl_image_subtract_scalar_create()</a>, <a class="el" href="group__cpl__imagelist.html#ga279d1cfa700e3da60be0e569e56080c4">cpl_imagelist_cast()</a>, <a class="el" href="group__cpl__imagelist.html#ga7781fb428bbd12459bc8ec58ccbf855f">cpl_imagelist_collapse_create()</a>, <a class="el" href="group__cpl__imagelist.html#gaeb30a698e9bf61b0a52e240c2e2d4076">cpl_imagelist_empty()</a>, <a class="el" href="group__cpl__imagelist.html#gacd75e9eed1780f9b63807be2d2fd0803">cpl_imagelist_erase()</a>, <a class="el" href="group__cpl__frameset__io.html#ga1753d4632e6d97a3adf0ba73c9594ecd">cpl_imagelist_load_frameset()</a>, <a class="el" href="group__cpl__imagelist.html#gad6bce4e990300800fa351fe73d0865b6">cpl_imagelist_set()</a>, <a class="el" href="group__cpl__plot.html#gac52d4503c66e0878a162909b84120ccd">cpl_plot_image()</a>, <a class="el" href="group__cpl__plot.html#gaef75b77f4d1a0642db7460a7a7569d70">cpl_plot_image_col()</a>, and <a class="el" href="group__cpl__plot.html#ga1f32ac705a1e262a4c415135e8a30103">cpl_plot_image_row()</a>.</p>
</div>
</div>
<a class="anchor" id="gaf84f969c52240629187d1a5e65411435"></a>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname"><a class="el" href="group__cpl__error.html#ga44b4287e8a7a22122b94c220a1dd9459">cpl_error_code</a> cpl_image_divide </td>
<td>(</td>
<td class="paramtype">cpl_image * </td>
<td class="paramname"><em>im1</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">const cpl_image * </td>
<td class="paramname"><em>im2</em> </td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td>
</tr>
</table>
</div><div class="memdoc">
<p>Divide two images, store the result in the first image. </p>
<dl class="params"><dt>Parameters</dt><dd>
<table class="params">
<tr><td class="paramname">im1</td><td>first operand. </td></tr>
<tr><td class="paramname">im2</td><td>second operand. </td></tr>
</table>
</dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>the <a class="el" href="group__cpl__error.html#ga49a0c316d52d2afbfd9fd94b95344900" title="Available error codes. ">_cpl_error_code_</a> or CPL_ERROR_NONE </dd></dl>
<dl class="section see"><dt>See also</dt><dd><a class="el" href="group__cpl__image.html#gaff601b28e179b3d1e62068e7561a26e8" title="Add two images, store the result in the first image. ">cpl_image_add()</a> </dd></dl>
<dl class="section note"><dt>Note</dt><dd>The result of division with a zero-valued pixel is marked as a bad pixel.</dd></dl>
<p>Possible <a class="el" href="group__cpl__error.html#ga49a0c316d52d2afbfd9fd94b95344900" title="Available error codes. ">_cpl_error_code_</a> set in this function:</p><ul>
<li>CPL_ERROR_NULL_INPUT if an input pointer is NULL</li>
<li>CPL_ERROR_INCOMPATIBLE_INPUT if the input images have different sizes</li>
<li>CPL_ERROR_TYPE_MISMATCH if the second input image has complex type while the first one does not</li>
<li>CPL_ERROR_DIVISION_BY_ZERO is all pixels in the divisor are zero </li>
</ul>
<p>References <a class="el" href="group__cpl__error.html#gaf18e95fbc6fc2cfde2a2cc8a0920b12d">cpl_ensure_code</a>, <a class="el" href="group__cpl__error.html#gga49a0c316d52d2afbfd9fd94b95344900afbc03558f2ea2b19e48a2af5901d19d1">CPL_ERROR_DIVISION_BY_ZERO</a>, <a class="el" href="group__cpl__error.html#gga49a0c316d52d2afbfd9fd94b95344900a67b9f44eb1db1ab12f0575dbb878c0fd">CPL_ERROR_INCOMPATIBLE_INPUT</a>, <a class="el" href="group__cpl__error.html#gga49a0c316d52d2afbfd9fd94b95344900a7907a24014a3a45aebe5ee1842f0c6f3">CPL_ERROR_INVALID_TYPE</a>, <a class="el" href="group__cpl__error.html#gga49a0c316d52d2afbfd9fd94b95344900a0239c1c63e9d21e98e45221a3ad60406">CPL_ERROR_NONE</a>, <a class="el" href="group__cpl__error.html#gga49a0c316d52d2afbfd9fd94b95344900a7b054cf7927d1bd0a9b3693a6715be84">CPL_ERROR_NULL_INPUT</a>, <a class="el" href="group__cpl__error.html#gga49a0c316d52d2afbfd9fd94b95344900a2e9d240c9641519323b3d6d616952482">CPL_ERROR_TYPE_MISMATCH</a>, <a class="el" href="group__cpl__mask.html#gaa312160718b8fdc24de0cd755cf35224">cpl_mask_delete()</a>, <a class="el" href="group__cpl__mask.html#ga9eb7b94e28606874356b70be4eedb53d">cpl_mask_duplicate()</a>, <a class="el" href="group__cpl__mask.html#ga462a148e501731a123e573e6f818f8c2">cpl_mask_get_data()</a>, <a class="el" href="group__cpl__mask.html#gab67918578893ea4a0e005cb4397f8754">cpl_mask_new()</a>, <a class="el" href="group__cpl__mask.html#gaf12dc55fffbbd55e9525bc69f39339a4">cpl_mask_or()</a>, <a class="el" href="group__cpl__type.html#gga3f03371e201544e9115b40065e47f086a4923f03f3a673edd344b0d81835ca69e">CPL_TYPE_DOUBLE</a>, <a class="el" href="group__cpl__type.html#gga3f03371e201544e9115b40065e47f086afc7205e8b040bdfdee6011685cfe4345">CPL_TYPE_DOUBLE_COMPLEX</a>, <a class="el" href="group__cpl__type.html#gga3f03371e201544e9115b40065e47f086aa44c37e26b9040a96e3a49b405946942">CPL_TYPE_FLOAT</a>, <a class="el" href="group__cpl__type.html#gga3f03371e201544e9115b40065e47f086ab2ab0f96a382011a38ee9446626fe1e0">CPL_TYPE_FLOAT_COMPLEX</a>, and <a class="el" href="group__cpl__type.html#gga3f03371e201544e9115b40065e47f086ae333db5ccea0813ccd892525b4ba1345">CPL_TYPE_INT</a>.</p>
<p>Referenced by <a class="el" href="group__cpl__imagelist.html#ga7781fb428bbd12459bc8ec58ccbf855f">cpl_imagelist_collapse_create()</a>.</p>
</div>
</div>
<a class="anchor" id="gafad621e6d1960251ec23984039e838c6"></a>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">cpl_image* cpl_image_divide_create </td>
<td>(</td>
<td class="paramtype">const cpl_image * </td>
<td class="paramname"><em>image1</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">const cpl_image * </td>
<td class="paramname"><em>image2</em> </td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td>
</tr>
</table>
</div><div class="memdoc">
<p>Divide two images. </p>
<dl class="params"><dt>Parameters</dt><dd>
<table class="params">
<tr><td class="paramname">image1</td><td>first operand </td></tr>
<tr><td class="paramname">image2</td><td>second operand </td></tr>
</table>
</dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>1 newly allocated image or NULL on error </dd></dl>
<dl class="section see"><dt>See also</dt><dd><a class="el" href="group__cpl__image.html#ga6126fb1c1a32987e3558970aca84a5ec" title="Add two images. ">cpl_image_add_create()</a> </dd>
<dd>
<a class="el" href="group__cpl__image.html#gaf84f969c52240629187d1a5e65411435" title="Divide two images, store the result in the first image. ">cpl_image_divide()</a> The result of division with a zero-valued pixel is marked as a bad pixel.</dd></dl>
<p>Possible <a class="el" href="group__cpl__error.html#ga49a0c316d52d2afbfd9fd94b95344900" title="Available error codes. ">_cpl_error_code_</a> set in this function:</p><ul>
<li>CPL_ERROR_NULL_INPUT if an input pointer is NULL</li>
<li>CPL_ERROR_INCOMPATIBLE_INPUT if the input images have different sizes</li>
<li>CPL_ERROR_TYPE_MISMATCH if the second input image has complex type while the first one does not</li>
<li>CPL_ERROR_DIVISION_BY_ZERO is all pixels in the divisor are zero </li>
</ul>
<p>References <a class="el" href="group__cpl__error.html#gafb123879d8683c6d63681f433dc19bd0">cpl_ensure</a>, <a class="el" href="group__cpl__error.html#gga49a0c316d52d2afbfd9fd94b95344900afbc03558f2ea2b19e48a2af5901d19d1">CPL_ERROR_DIVISION_BY_ZERO</a>, <a class="el" href="group__cpl__error.html#gga49a0c316d52d2afbfd9fd94b95344900a67b9f44eb1db1ab12f0575dbb878c0fd">CPL_ERROR_INCOMPATIBLE_INPUT</a>, <a class="el" href="group__cpl__error.html#gga49a0c316d52d2afbfd9fd94b95344900a7907a24014a3a45aebe5ee1842f0c6f3">CPL_ERROR_INVALID_TYPE</a>, <a class="el" href="group__cpl__error.html#gga49a0c316d52d2afbfd9fd94b95344900a7b054cf7927d1bd0a9b3693a6715be84">CPL_ERROR_NULL_INPUT</a>, <a class="el" href="group__cpl__error.html#gga49a0c316d52d2afbfd9fd94b95344900a2e9d240c9641519323b3d6d616952482">CPL_ERROR_TYPE_MISMATCH</a>, <a class="el" href="group__cpl__memory.html#ga9cd2b64cbbe05ec9f34fda048184b4d1">cpl_free()</a>, <a class="el" href="group__cpl__image.html#ga272e4e004716651b94d6d36e575b6841">cpl_image_delete()</a>, <a class="el" href="group__cpl__image.html#ga1d73459cb0b071aac6892e2152aa5be7">cpl_image_wrap_double()</a>, <a class="el" href="group__cpl__image.html#ga54e215dd1d59d52dd131c855073bdbd1">cpl_image_wrap_double_complex()</a>, <a class="el" href="group__cpl__image.html#ga63e10a27014ea9ea425889a12e49ebf5">cpl_image_wrap_float()</a>, <a class="el" href="group__cpl__image.html#ga6fa6e6bded41fb636fd868a40e3fd8be">cpl_image_wrap_float_complex()</a>, <a class="el" href="group__cpl__image.html#ga9ccaf8ab0d6e20c7aba7b3da1bade322">cpl_image_wrap_int()</a>, <a class="el" href="group__cpl__memory.html#gac884edcb0a592489c65239d0e5d08785">cpl_malloc()</a>, <a class="el" href="group__cpl__mask.html#gaa312160718b8fdc24de0cd755cf35224">cpl_mask_delete()</a>, <a class="el" href="group__cpl__mask.html#ga9eb7b94e28606874356b70be4eedb53d">cpl_mask_duplicate()</a>, <a class="el" href="group__cpl__mask.html#ga462a148e501731a123e573e6f818f8c2">cpl_mask_get_data()</a>, <a class="el" href="group__cpl__mask.html#gab67918578893ea4a0e005cb4397f8754">cpl_mask_new()</a>, <a class="el" href="group__cpl__mask.html#gaf12dc55fffbbd55e9525bc69f39339a4">cpl_mask_or()</a>, <a class="el" href="group__cpl__type.html#gga3f03371e201544e9115b40065e47f086a4923f03f3a673edd344b0d81835ca69e">CPL_TYPE_DOUBLE</a>, <a class="el" href="group__cpl__type.html#gga3f03371e201544e9115b40065e47f086afc7205e8b040bdfdee6011685cfe4345">CPL_TYPE_DOUBLE_COMPLEX</a>, <a class="el" href="group__cpl__type.html#gga3f03371e201544e9115b40065e47f086aa44c37e26b9040a96e3a49b405946942">CPL_TYPE_FLOAT</a>, <a class="el" href="group__cpl__type.html#gga3f03371e201544e9115b40065e47f086ab2ab0f96a382011a38ee9446626fe1e0">CPL_TYPE_FLOAT_COMPLEX</a>, and <a class="el" href="group__cpl__type.html#gga3f03371e201544e9115b40065e47f086ae333db5ccea0813ccd892525b4ba1345">CPL_TYPE_INT</a>.</p>
</div>
</div>
<a class="anchor" id="gaa5075dc76993fd8a36b7b11b682be3e6"></a>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname"><a class="el" href="group__cpl__error.html#ga44b4287e8a7a22122b94c220a1dd9459">cpl_error_code</a> cpl_image_divide_scalar </td>
<td>(</td>
<td class="paramtype">cpl_image * </td>
<td class="paramname"><em>self</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">double </td>
<td class="paramname"><em>scalar</em> </td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td>
</tr>
</table>
</div><div class="memdoc">
<p>Elementwise division of an image with a scalar. </p>
<dl class="params"><dt>Parameters</dt><dd>
<table class="params">
<tr><td class="paramname">self</td><td>Image to be modified in place. </td></tr>
<tr><td class="paramname">scalar</td><td>Non-zero number to divide with </td></tr>
</table>
</dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>CPL_ERROR_NONE or the relevant the <a class="el" href="group__cpl__error.html#ga49a0c316d52d2afbfd9fd94b95344900" title="Available error codes. ">_cpl_error_code_</a> on error </dd></dl>
<dl class="section see"><dt>See also</dt><dd><a class="el" href="group__cpl__image.html#ga3bd51e4922065f67d7cdcc4043c6b0cd" title="Elementwise addition of a scalar to an image. ">cpl_image_add_scalar()</a></dd></dl>
<p>Modifies the image by dividing each of its pixels with a number.</p>
<p>If the scalar is zero the image is not modified and an error is returned.</p>
<p>Possible <a class="el" href="group__cpl__error.html#ga49a0c316d52d2afbfd9fd94b95344900" title="Available error codes. ">_cpl_error_code_</a> set in this function:</p><ul>
<li>CPL_ERROR_NULL_INPUT if an input pointer is NULL</li>
<li>CPL_ERROR_DIVISION_BY_ZERO a division by 0 occurs </li>
</ul>
<p>References <a class="el" href="group__cpl__error.html#gaf18e95fbc6fc2cfde2a2cc8a0920b12d">cpl_ensure_code</a>, <a class="el" href="group__cpl__error.html#gga49a0c316d52d2afbfd9fd94b95344900afbc03558f2ea2b19e48a2af5901d19d1">CPL_ERROR_DIVISION_BY_ZERO</a>, <a class="el" href="group__cpl__error.html#gga49a0c316d52d2afbfd9fd94b95344900a7907a24014a3a45aebe5ee1842f0c6f3">CPL_ERROR_INVALID_TYPE</a>, <a class="el" href="group__cpl__error.html#gga49a0c316d52d2afbfd9fd94b95344900a0239c1c63e9d21e98e45221a3ad60406">CPL_ERROR_NONE</a>, <a class="el" href="group__cpl__error.html#gga49a0c316d52d2afbfd9fd94b95344900a7b054cf7927d1bd0a9b3693a6715be84">CPL_ERROR_NULL_INPUT</a>, and <a class="el" href="group__cpl__image.html#ga17f97e60794f88e7f06b85cccbecc132">cpl_image_get_type()</a>.</p>
<p>Referenced by <a class="el" href="group__cpl__image.html#ga7315eb906f516eae42b75a9c3f50cea1">cpl_image_divide_scalar_create()</a>, <a class="el" href="group__cpl__image.html#gaf5d991abde7579d8c3ef59bb372b1df8">cpl_image_fft()</a>, <a class="el" href="group__cpl__image.html#gaa1a902191405d8bd33e1bc5b239dfef0">cpl_image_normalise()</a>, and <a class="el" href="group__cpl__imagelist.html#ga7aad23bb458db1522ece9796488cb699">cpl_imagelist_divide_scalar()</a>.</p>
</div>
</div>
<a class="anchor" id="ga7315eb906f516eae42b75a9c3f50cea1"></a>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">cpl_image* cpl_image_divide_scalar_create </td>
<td>(</td>
<td class="paramtype">const cpl_image * </td>
<td class="paramname"><em>image</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">double </td>
<td class="paramname"><em>divisor</em> </td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td>
</tr>
</table>
</div><div class="memdoc">
<p>Create a new image by elementwise division of an image with a scalar. </p>
<dl class="params"><dt>Parameters</dt><dd>
<table class="params">
<tr><td class="paramname">image</td><td>Image to divide </td></tr>
<tr><td class="paramname">divisor</td><td>Non-zero number to divide with </td></tr>
</table>
</dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>1 newly allocated image or NULL in case of an error </dd></dl>
<dl class="section see"><dt>See also</dt><dd><a class="el" href="group__cpl__image.html#gaa5075dc76993fd8a36b7b11b682be3e6" title="Elementwise division of an image with a scalar. ">cpl_image_divide_scalar</a> </dd>
<dd>
<a class="el" href="group__cpl__image.html#ga956c494049f2bff35a254ee2d91a212f" title="Create a new image by elementwise addition of a scalar to an image. ">cpl_image_add_scalar_create</a> </dd></dl>
<p>References <a class="el" href="group__cpl__error.html#gafb123879d8683c6d63681f433dc19bd0">cpl_ensure</a>, <a class="el" href="group__cpl__error.html#ga724de575c31ddf40f42786306f9dbdcb">cpl_error_get_code()</a>, <a class="el" href="group__cpl__image.html#ga272e4e004716651b94d6d36e575b6841">cpl_image_delete()</a>, <a class="el" href="group__cpl__image.html#gaa5075dc76993fd8a36b7b11b682be3e6">cpl_image_divide_scalar()</a>, and <a class="el" href="group__cpl__image.html#gadebfe1dae2cbd7a59fc09b323c55c10e">cpl_image_duplicate()</a>.</p>
</div>
</div>
<a class="anchor" id="ga41844eae7e6bfd6594c3fbfe4b1e481e"></a>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname"><a class="el" href="group__cpl__error.html#ga44b4287e8a7a22122b94c220a1dd9459">cpl_error_code</a> cpl_image_dump_structure </td>
<td>(</td>
<td class="paramtype">const cpl_image * </td>
<td class="paramname"><em>self</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">FILE * </td>
<td class="paramname"><em>stream</em> </td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td>
</tr>
</table>
</div><div class="memdoc">
<p>Dump structural information of a CPL image. </p>
<dl class="params"><dt>Parameters</dt><dd>
<table class="params">
<tr><td class="paramname">self</td><td>Image to dump </td></tr>
<tr><td class="paramname">stream</td><td>Output stream, accepts <code>stdout</code> or <code>stderr</code> </td></tr>
</table>
</dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>CPL_ERROR_NONE or the relevant <a class="el" href="group__cpl__error.html#ga49a0c316d52d2afbfd9fd94b95344900" title="Available error codes. ">_cpl_error_code_</a> on error</dd></dl>
<p>Possible <a class="el" href="group__cpl__error.html#ga49a0c316d52d2afbfd9fd94b95344900" title="Available error codes. ">_cpl_error_code_</a> set in this function:</p><ul>
<li>CPL_ERROR_NULL_INPUT if an input pointer is NULL</li>
<li>CPL_ERROR_FILE_IO if a write operation fails </li>
</ul>
<p>References <a class="el" href="group__cpl__error.html#gaf18e95fbc6fc2cfde2a2cc8a0920b12d">cpl_ensure_code</a>, <a class="el" href="group__cpl__error.html#gga49a0c316d52d2afbfd9fd94b95344900aa54303ad2fb0efc3f8c57c788b342c81">CPL_ERROR_FILE_IO</a>, <a class="el" href="group__cpl__error.html#gga49a0c316d52d2afbfd9fd94b95344900a0239c1c63e9d21e98e45221a3ad60406">CPL_ERROR_NONE</a>, <a class="el" href="group__cpl__error.html#gga49a0c316d52d2afbfd9fd94b95344900a7b054cf7927d1bd0a9b3693a6715be84">CPL_ERROR_NULL_INPUT</a>, <a class="el" href="group__cpl__mask.html#ga38f7063792f43c2ca0955e5188d0b66d">cpl_mask_count()</a>, <a class="el" href="group__cpl__type.html#ga4f6c44a14bbc3aea87b1f47acf8dfd02">CPL_SIZE_FORMAT</a>, and <a class="el" href="group__cpl__type.html#ga994816f2d7624221964f91e0b9556578">cpl_type_get_name()</a>.</p>
<p>Referenced by <a class="el" href="group__cpl__imagelist.html#ga725b6005a2af16eae7eca9bcad8a79a2">cpl_imagelist_dump_structure()</a>.</p>
</div>
</div>
<a class="anchor" id="ga4f350c4251a89dc2c6792faa1028cab8"></a>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname"><a class="el" href="group__cpl__error.html#ga44b4287e8a7a22122b94c220a1dd9459">cpl_error_code</a> cpl_image_dump_window </td>
<td>(</td>
<td class="paramtype">const cpl_image * </td>
<td class="paramname"><em>self</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype"><a class="el" href="group__cpl__type.html#gacc431432a4fedf19ec6f7668dda3fbf0">cpl_size</a> </td>
<td class="paramname"><em>llx</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype"><a class="el" href="group__cpl__type.html#gacc431432a4fedf19ec6f7668dda3fbf0">cpl_size</a> </td>
<td class="paramname"><em>lly</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype"><a class="el" href="group__cpl__type.html#gacc431432a4fedf19ec6f7668dda3fbf0">cpl_size</a> </td>
<td class="paramname"><em>urx</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype"><a class="el" href="group__cpl__type.html#gacc431432a4fedf19ec6f7668dda3fbf0">cpl_size</a> </td>
<td class="paramname"><em>ury</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">FILE * </td>
<td class="paramname"><em>stream</em> </td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td>
</tr>
</table>
</div><div class="memdoc">
<p>Dump pixel values in a CPL image. </p>
<dl class="params"><dt>Parameters</dt><dd>
<table class="params">
<tr><td class="paramname">self</td><td>Image to dump </td></tr>
<tr><td class="paramname">llx</td><td>Lower left x position (FITS convention, 1 for leftmost) </td></tr>
<tr><td class="paramname">lly</td><td>Lower left y position (FITS convention, 1 for lowest) </td></tr>
<tr><td class="paramname">urx</td><td>Specifies the window position </td></tr>
<tr><td class="paramname">ury</td><td>Specifies the window position </td></tr>
<tr><td class="paramname">stream</td><td>Output stream, accepts <code>stdout</code> or <code>stderr</code> </td></tr>
</table>
</dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>CPL_ERROR_NONE or the relevant <a class="el" href="group__cpl__error.html#ga49a0c316d52d2afbfd9fd94b95344900" title="Available error codes. ">_cpl_error_code_</a> on error</dd></dl>
<p>Possible <a class="el" href="group__cpl__error.html#ga49a0c316d52d2afbfd9fd94b95344900" title="Available error codes. ">_cpl_error_code_</a> set in this function:</p><ul>
<li>CPL_ERROR_NULL_INPUT if an input pointer is NULL</li>
<li>CPL_ERROR_FILE_IO if a write operation fails</li>
<li>CPL_ERROR_ACCESS_OUT_OF_RANGE if the defined window is not in the image</li>
<li>CPL_ERROR_ILLEGAL_INPUT if the window definition is wrong (e.g llx > urx) </li>
</ul>
<p>References <a class="el" href="group__cpl__error.html#gaf18e95fbc6fc2cfde2a2cc8a0920b12d">cpl_ensure_code</a>, <a class="el" href="group__cpl__error.html#gga49a0c316d52d2afbfd9fd94b95344900a0d916ea6a7e198a74863ecd9ea03d733">CPL_ERROR_ACCESS_OUT_OF_RANGE</a>, <a class="el" href="group__cpl__error.html#gga49a0c316d52d2afbfd9fd94b95344900aa54303ad2fb0efc3f8c57c788b342c81">CPL_ERROR_FILE_IO</a>, <a class="el" href="group__cpl__error.html#gga49a0c316d52d2afbfd9fd94b95344900ae6ab32df318c1af9afcddcb8249cad51">CPL_ERROR_ILLEGAL_INPUT</a>, <a class="el" href="group__cpl__error.html#gga49a0c316d52d2afbfd9fd94b95344900a0239c1c63e9d21e98e45221a3ad60406">CPL_ERROR_NONE</a>, <a class="el" href="group__cpl__error.html#gga49a0c316d52d2afbfd9fd94b95344900a7b054cf7927d1bd0a9b3693a6715be84">CPL_ERROR_NULL_INPUT</a>, <a class="el" href="group__cpl__image.html#gacff07271c74fa513b507d886935abdc6">cpl_image_get()</a>, <a class="el" href="group__cpl__image.html#ga3adcb937ee2f58e610ff65f8433a7126">cpl_image_get_complex()</a>, <a class="el" href="group__cpl__mask.html#gabc90bc577ad09eb79cbd702cbd69dec2">cpl_mask_get()</a>, <a class="el" href="group__cpl__mask.html#ga0009ad4c6aed58343b09e47ef38ef9e4">cpl_mask_is_empty()</a>, <a class="el" href="group__cpl__type.html#ga4f6c44a14bbc3aea87b1f47acf8dfd02">CPL_SIZE_FORMAT</a>, <a class="el" href="group__cpl__type.html#gga3f03371e201544e9115b40065e47f086afc7205e8b040bdfdee6011685cfe4345">CPL_TYPE_DOUBLE_COMPLEX</a>, <a class="el" href="group__cpl__type.html#gga3f03371e201544e9115b40065e47f086ab2ab0f96a382011a38ee9446626fe1e0">CPL_TYPE_FLOAT_COMPLEX</a>, and <a class="el" href="group__cpl__type.html#gga3f03371e201544e9115b40065e47f086ae333db5ccea0813ccd892525b4ba1345">CPL_TYPE_INT</a>.</p>
<p>Referenced by <a class="el" href="group__cpl__imagelist.html#gab5cd426665d0f05848c4474497e21093">cpl_imagelist_dump_window()</a>.</p>
</div>
</div>
<a class="anchor" id="gadebfe1dae2cbd7a59fc09b323c55c10e"></a>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">cpl_image* cpl_image_duplicate </td>
<td>(</td>
<td class="paramtype">const cpl_image * </td>
<td class="paramname"><em>src</em></td><td>)</td>
<td></td>
</tr>
</table>
</div><div class="memdoc">
<p>Copy an image. </p>
<dl class="params"><dt>Parameters</dt><dd>
<table class="params">
<tr><td class="paramname">src</td><td>Source image. </td></tr>
</table>
</dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>1 newly allocated image, or NULL on error.</dd></dl>
<p>Copy an image into a new image object. The pixels and the bad pixel map are also copied. The returned image must be deallocated using <a class="el" href="group__cpl__image.html#ga272e4e004716651b94d6d36e575b6841" title="Free memory associated to an cpl_image object. ">cpl_image_delete()</a>.</p>
<p>Possible <a class="el" href="group__cpl__error.html#ga49a0c316d52d2afbfd9fd94b95344900" title="Available error codes. ">_cpl_error_code_</a> set in this function:</p><ul>
<li>CPL_ERROR_NULL_INPUT if an input pointer is NULL </li>
</ul>
<p>References <a class="el" href="group__cpl__error.html#gafb123879d8683c6d63681f433dc19bd0">cpl_ensure</a>, <a class="el" href="group__cpl__error.html#gga49a0c316d52d2afbfd9fd94b95344900a7b054cf7927d1bd0a9b3693a6715be84">CPL_ERROR_NULL_INPUT</a>, <a class="el" href="group__cpl__memory.html#gac884edcb0a592489c65239d0e5d08785">cpl_malloc()</a>, <a class="el" href="group__cpl__mask.html#ga9eb7b94e28606874356b70be4eedb53d">cpl_mask_duplicate()</a>, and <a class="el" href="group__cpl__type.html#ga5098a0d41d12e907e5cacce2052a345e">cpl_type_get_sizeof()</a>.</p>
<p>Referenced by <a class="el" href="group__cpl__apertures.html#ga23b66826669fa90caafd5ad3060a116d">cpl_apertures_new_from_image()</a>, <a class="el" href="group__cpl__geom__img.html#ga8df5c11aeb84394817af6a0680c2859c">cpl_geom_img_offset_saa()</a>, <a class="el" href="group__cpl__image.html#gab6254d75952598d70fea6ce6276de572">cpl_image_abs_create()</a>, <a class="el" href="group__cpl__image.html#ga956c494049f2bff35a254ee2d91a212f">cpl_image_add_scalar_create()</a>, <a class="el" href="group__cpl__image.html#gad986c25e9250952770f854022e1ffb24">cpl_image_cast()</a>, <a class="el" href="group__cpl__image.html#ga7315eb906f516eae42b75a9c3f50cea1">cpl_image_divide_scalar_create()</a>, <a class="el" href="group__cpl__image.html#ga17a0d77d099e9b74550a1de5680939df">cpl_image_exponential_create()</a>, <a class="el" href="group__cpl__image.html#gabfcae6086e5678420f1e69bc7917a4bd">cpl_image_logarithm_create()</a>, <a class="el" href="group__cpl__image.html#ga0b9c44f684a3e7781ccb5777ef001b3f">cpl_image_multiply_scalar_create()</a>, <a class="el" href="group__cpl__image.html#ga995346cf9ad364225c3eb6f81ae32f84">cpl_image_normalise_create()</a>, <a class="el" href="group__cpl__image.html#ga2f5949377b34ba90b60a9335a9cc0c1a">cpl_image_power_create()</a>, <a class="el" href="group__cpl__image.html#ga07f1a13958fb9f1d3bba6e1a28b618f8">cpl_image_subtract_scalar_create()</a>, <a class="el" href="group__cpl__imagelist.html#ga7781fb428bbd12459bc8ec58ccbf855f">cpl_imagelist_collapse_create()</a>, and <a class="el" href="group__cpl__imagelist.html#gac5decb29eb4df1071c42877b35bc57df">cpl_imagelist_duplicate()</a>.</p>
</div>
</div>
<a class="anchor" id="gaf7cf65200a127f8cfb2c8deb635791d6"></a>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname"><a class="el" href="group__cpl__error.html#ga44b4287e8a7a22122b94c220a1dd9459">cpl_error_code</a> cpl_image_exponential </td>
<td>(</td>
<td class="paramtype">cpl_image * </td>
<td class="paramname"><em>self</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">double </td>
<td class="paramname"><em>base</em> </td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td>
</tr>
</table>
</div><div class="memdoc">
<p>Compute the elementwise exponential of the image. </p>
<dl class="params"><dt>Parameters</dt><dd>
<table class="params">
<tr><td class="paramname">self</td><td>Image to be modified in place. </td></tr>
<tr><td class="paramname">base</td><td>Base of the exponential. </td></tr>
</table>
</dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>CPL_ERROR_NONE or the relevant the <a class="el" href="group__cpl__error.html#ga49a0c316d52d2afbfd9fd94b95344900" title="Available error codes. ">_cpl_error_code_</a> on error</dd></dl>
<p>Modifies the image by computing the base-scalar exponential of each of its pixels.</p>
<p>Images can be of type CPL_TYPE_INT, CPL_TYPE_FLOAT or CPL_TYPE_DOUBLE.</p>
<p>Pixels for which the power of the given base is not defined are rejected and set to zero.</p>
<p>Possible <a class="el" href="group__cpl__error.html#ga49a0c316d52d2afbfd9fd94b95344900" title="Available error codes. ">_cpl_error_code_</a> set in this function:</p><ul>
<li>CPL_ERROR_NULL_INPUT if an input pointer is NULL</li>
<li>CPL_ERROR_INVALID_TYPE if the passed image type is not supported </li>
</ul>
<p>References <a class="el" href="group__cpl__error.html#gaf18e95fbc6fc2cfde2a2cc8a0920b12d">cpl_ensure_code</a>, <a class="el" href="group__cpl__error.html#gga49a0c316d52d2afbfd9fd94b95344900a7907a24014a3a45aebe5ee1842f0c6f3">CPL_ERROR_INVALID_TYPE</a>, <a class="el" href="group__cpl__error.html#gga49a0c316d52d2afbfd9fd94b95344900a0239c1c63e9d21e98e45221a3ad60406">CPL_ERROR_NONE</a>, <a class="el" href="group__cpl__error.html#gga49a0c316d52d2afbfd9fd94b95344900a7b054cf7927d1bd0a9b3693a6715be84">CPL_ERROR_NULL_INPUT</a>, <a class="el" href="group__cpl__image.html#ga17f97e60794f88e7f06b85cccbecc132">cpl_image_get_type()</a>, <a class="el" href="group__cpl__type.html#gga3f03371e201544e9115b40065e47f086a4923f03f3a673edd344b0d81835ca69e">CPL_TYPE_DOUBLE</a>, <a class="el" href="group__cpl__type.html#gga3f03371e201544e9115b40065e47f086aa44c37e26b9040a96e3a49b405946942">CPL_TYPE_FLOAT</a>, <a class="el" href="group__cpl__type.html#ga994816f2d7624221964f91e0b9556578">cpl_type_get_name()</a>, and <a class="el" href="group__cpl__type.html#gga3f03371e201544e9115b40065e47f086ae333db5ccea0813ccd892525b4ba1345">CPL_TYPE_INT</a>.</p>
<p>Referenced by <a class="el" href="group__cpl__image.html#ga17a0d77d099e9b74550a1de5680939df">cpl_image_exponential_create()</a>, and <a class="el" href="group__cpl__imagelist.html#gaec68fe0ea0285babd2a599455a91228e">cpl_imagelist_exponential()</a>.</p>
</div>
</div>
<a class="anchor" id="ga17a0d77d099e9b74550a1de5680939df"></a>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">cpl_image* cpl_image_exponential_create </td>
<td>(</td>
<td class="paramtype">const cpl_image * </td>
<td class="paramname"><em>image</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">double </td>
<td class="paramname"><em>base</em> </td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td>
</tr>
</table>
</div><div class="memdoc">
<p>Create a new image by elementwise exponentiation of an image. </p>
<dl class="params"><dt>Parameters</dt><dd>
<table class="params">
<tr><td class="paramname">image</td><td>Image to exponentiate </td></tr>
<tr><td class="paramname">base</td><td>Base of the exponential </td></tr>
</table>
</dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>1 newly allocated image or NULL in case of an error </dd></dl>
<dl class="section see"><dt>See also</dt><dd><a class="el" href="group__cpl__image.html#ga459e938fdb606d6b8309cd52ef5e42fd" title="Compute the elementwise logarithm of the image. ">cpl_image_logarithm</a> </dd>
<dd>
<a class="el" href="group__cpl__image.html#ga956c494049f2bff35a254ee2d91a212f" title="Create a new image by elementwise addition of a scalar to an image. ">cpl_image_add_scalar_create</a> </dd></dl>
<p>References <a class="el" href="group__cpl__error.html#gafb123879d8683c6d63681f433dc19bd0">cpl_ensure</a>, <a class="el" href="group__cpl__error.html#ga724de575c31ddf40f42786306f9dbdcb">cpl_error_get_code()</a>, <a class="el" href="group__cpl__image.html#ga272e4e004716651b94d6d36e575b6841">cpl_image_delete()</a>, <a class="el" href="group__cpl__image.html#gadebfe1dae2cbd7a59fc09b323c55c10e">cpl_image_duplicate()</a>, and <a class="el" href="group__cpl__image.html#gaf7cf65200a127f8cfb2c8deb635791d6">cpl_image_exponential()</a>.</p>
</div>
</div>
<a class="anchor" id="ga2f0f5804717110451f74d3b9e1bdf8c7"></a>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">cpl_image* cpl_image_extract </td>
<td>(</td>
<td class="paramtype">const cpl_image * </td>
<td class="paramname"><em>in</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype"><a class="el" href="group__cpl__type.html#gacc431432a4fedf19ec6f7668dda3fbf0">cpl_size</a> </td>
<td class="paramname"><em>llx</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype"><a class="el" href="group__cpl__type.html#gacc431432a4fedf19ec6f7668dda3fbf0">cpl_size</a> </td>
<td class="paramname"><em>lly</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype"><a class="el" href="group__cpl__type.html#gacc431432a4fedf19ec6f7668dda3fbf0">cpl_size</a> </td>
<td class="paramname"><em>urx</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype"><a class="el" href="group__cpl__type.html#gacc431432a4fedf19ec6f7668dda3fbf0">cpl_size</a> </td>
<td class="paramname"><em>ury</em> </td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td>
</tr>
</table>
</div><div class="memdoc">
<p>Extract a rectangular zone from an image into another image. </p>
<dl class="params"><dt>Parameters</dt><dd>
<table class="params">
<tr><td class="paramname">in</td><td>Input image </td></tr>
<tr><td class="paramname">llx</td><td>Lower left X coordinate </td></tr>
<tr><td class="paramname">lly</td><td>Lower left Y coordinate </td></tr>
<tr><td class="paramname">urx</td><td>Upper right X coordinate </td></tr>
<tr><td class="paramname">ury</td><td>Upper right Y coordinate </td></tr>
</table>
</dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>1 newly allocated image or NULL on error </dd></dl>
<dl class="section note"><dt>Note</dt><dd>The returned image must be deallocated using <a class="el" href="group__cpl__image.html#ga272e4e004716651b94d6d36e575b6841" title="Free memory associated to an cpl_image object. ">cpl_image_delete()</a></dd></dl>
<p>The input coordinates define the extracted region by giving the coordinates of the lower left and upper right corners (inclusive).</p>
<p>Coordinates must be provided in the FITS convention: lower left corner of the image is at (1,1), x increasing from left to right, y increasing from bottom to top. Images can be of type CPL_TYPE_INT, CPL_TYPE_FLOAT or CPL_TYPE_DOUBLE.</p>
<p>Possible <a class="el" href="group__cpl__error.html#ga49a0c316d52d2afbfd9fd94b95344900" title="Available error codes. ">_cpl_error_code_</a> set in this function:</p><ul>
<li>CPL_ERROR_NULL_INPUT if an input pointer is NULL</li>
<li>CPL_ERROR_ILLEGAL_INPUT if the window coordinates are not valid</li>
<li>CPL_ERROR_INVALID_TYPE if the passed image type is not supported </li>
</ul>
<p>References <a class="el" href="group__cpl__error.html#gafb123879d8683c6d63681f433dc19bd0">cpl_ensure</a>, <a class="el" href="group__cpl__error.html#gga49a0c316d52d2afbfd9fd94b95344900ae6ab32df318c1af9afcddcb8249cad51">CPL_ERROR_ILLEGAL_INPUT</a>, <a class="el" href="group__cpl__error.html#gga49a0c316d52d2afbfd9fd94b95344900a7907a24014a3a45aebe5ee1842f0c6f3">CPL_ERROR_INVALID_TYPE</a>, <a class="el" href="group__cpl__error.html#gga49a0c316d52d2afbfd9fd94b95344900a7b054cf7927d1bd0a9b3693a6715be84">CPL_ERROR_NULL_INPUT</a>, and <a class="el" href="group__cpl__mask.html#ga8fd7d6feabd3a80f239650fa4eb6db4f">cpl_mask_extract()</a>.</p>
<p>Referenced by <a class="el" href="group__cpl__apertures.html#ga81a3c7ab107e852bba7751b23d551095">cpl_apertures_extract_window()</a>, <a class="el" href="group__cpl__fit.html#ga8004d897c449d503c56f14ca99cf475b">cpl_fit_image_gaussian()</a>, and <a class="el" href="group__cpl__image.html#gaa81c4cf5dca4516e8423dde705cff48b">cpl_image_iqe()</a>.</p>
</div>
</div>
<a class="anchor" id="ga5e8ab59e3dabbcddf5da4e9c8aad659f"></a>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">cpl_image* cpl_image_extract_subsample </td>
<td>(</td>
<td class="paramtype">const cpl_image * </td>
<td class="paramname"><em>image</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype"><a class="el" href="group__cpl__type.html#gacc431432a4fedf19ec6f7668dda3fbf0">cpl_size</a> </td>
<td class="paramname"><em>xstep</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype"><a class="el" href="group__cpl__type.html#gacc431432a4fedf19ec6f7668dda3fbf0">cpl_size</a> </td>
<td class="paramname"><em>ystep</em> </td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td>
</tr>
</table>
</div><div class="memdoc">
<p>Sub-sample an image. </p>
<dl class="params"><dt>Parameters</dt><dd>
<table class="params">
<tr><td class="paramname">image</td><td>The image to subsample </td></tr>
<tr><td class="paramname">xstep</td><td>Take every xstep pixel in x </td></tr>
<tr><td class="paramname">ystep</td><td>Take every ystep pixel in y </td></tr>
</table>
</dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>The newly allocated sub-sampled image or NULL in error case </dd></dl>
<dl class="section see"><dt>See also</dt><dd><a class="el" href="group__cpl__image.html#ga2f0f5804717110451f74d3b9e1bdf8c7" title="Extract a rectangular zone from an image into another image. ">cpl_image_extract</a></dd></dl>
<p>step represents the sampling step in x and y: both steps = 2 will create an image with a quarter of the pixels of the input image.</p>
<p>image type can be CPL_TYPE_INT, CPL_TYPE_FLOAT and CPL_TYPE_DOUBLE. If the image has bad pixels, they will be resampled in the same way.</p>
<p>The flux of the sampled pixels will be preserved, while the flux of the pixels not sampled will be lost. Using steps = 2 in each direction on a uniform image will thus create an image with a quarter of the flux.</p>
<p>The returned image must be deallocated using <a class="el" href="group__cpl__image.html#ga272e4e004716651b94d6d36e575b6841" title="Free memory associated to an cpl_image object. ">cpl_image_delete()</a>.</p>
<p>Possible <a class="el" href="group__cpl__error.html#ga49a0c316d52d2afbfd9fd94b95344900" title="Available error codes. ">_cpl_error_code_</a> set in this function:</p><ul>
<li>CPL_ERROR_NULL_INPUT if the input pointer is NULL</li>
<li>CPL_ERROR_ILLEGAL_INPUT if xstep, ystep are not positive</li>
<li>CPL_ERROR_INVALID_TYPE if the passed image type is not supported </li>
</ul>
<p>References <a class="el" href="group__cpl__error.html#gafb123879d8683c6d63681f433dc19bd0">cpl_ensure</a>, <a class="el" href="group__cpl__error.html#gga49a0c316d52d2afbfd9fd94b95344900ae6ab32df318c1af9afcddcb8249cad51">CPL_ERROR_ILLEGAL_INPUT</a>, <a class="el" href="group__cpl__error.html#gga49a0c316d52d2afbfd9fd94b95344900a7907a24014a3a45aebe5ee1842f0c6f3">CPL_ERROR_INVALID_TYPE</a>, <a class="el" href="group__cpl__error.html#gga49a0c316d52d2afbfd9fd94b95344900a7b054cf7927d1bd0a9b3693a6715be84">CPL_ERROR_NULL_INPUT</a>, and <a class="el" href="group__cpl__mask.html#gac7eff859335d64ef228ff51d9fcde05d">cpl_mask_extract_subsample()</a>.</p>
</div>
</div>
<a class="anchor" id="gaf5d991abde7579d8c3ef59bb372b1df8"></a>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname"><a class="el" href="group__cpl__error.html#ga44b4287e8a7a22122b94c220a1dd9459">cpl_error_code</a> cpl_image_fft </td>
<td>(</td>
<td class="paramtype">cpl_image * </td>
<td class="paramname"><em>img_real</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">cpl_image * </td>
<td class="paramname"><em>img_imag</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">unsigned </td>
<td class="paramname"><em>mode</em> </td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td>
</tr>
</table>
</div><div class="memdoc">
<p>Fast Fourier Transform a square, power-of-two sized image. </p>
<dl class="params"><dt>Parameters</dt><dd>
<table class="params">
<tr><td class="paramname">img_real</td><td>The image real part to be transformed in place </td></tr>
<tr><td class="paramname">img_imag</td><td>The image imaginary part to be transformed in place </td></tr>
<tr><td class="paramname">mode</td><td>The desired FFT options (combined with bitwise or) </td></tr>
</table>
</dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>CPL_ERROR_NONE or the relevant <a class="el" href="group__cpl__error.html#ga49a0c316d52d2afbfd9fd94b95344900" title="Available error codes. ">_cpl_error_code_</a> on error</dd></dl>
<p>The input images must be of double type.</p>
<p>If the second passed image is NULL, the resulting imaginary part cannot be returned. This can be useful if the input is real and the output is known to also be real. But if the output has a significant imaginary part, you might want to pass a 0-valued image as the second parameter.</p>
<p>Any rejected pixel is used as if it were a good pixel.</p>
<p>The image must be square with a size that is a power of two.</p>
<p>These are the supported FFT modes: CPL_FFT_DEFAULT: Default, forward FFT transform CPL_FFT_INVERSE: Inverse FFT transform CPL_FFT_UNNORMALIZED: Do not normalize (with N*N for N-by-N image) on inverse. Has no effect on forward transform. CPL_FFT_SWAP_HALVES: Swap the four quadrants of the result image.</p>
<p>Possible <a class="el" href="group__cpl__error.html#ga49a0c316d52d2afbfd9fd94b95344900" title="Available error codes. ">_cpl_error_code_</a> set in this function:</p><ul>
<li>CPL_ERROR_NULL_INPUT if (one of) the input pointer(s) is NULL</li>
<li>CPL_ERROR_ILLEGAL_INPUT if the image is not square or if the image size is not a power of 2.</li>
<li>CPL_ERROR_INVALID_TYPE if mode is 1, e.g. due to a logical or (||) of the allowed FFT options.</li>
<li>CPL_ERROR_UNSUPPORTED_MODE if mode is otherwise different from the allowed FFT options.</li>
<li>CPL_ERROR_INVALID_TYPE if the passed image type is not supported </li>
</ul>
<p>References <a class="el" href="group__cpl__memory.html#gab672473d6f7d0d933e06c2e8c456bd3b">cpl_calloc()</a>, <a class="el" href="group__cpl__error.html#gaf18e95fbc6fc2cfde2a2cc8a0920b12d">cpl_ensure_code</a>, <a class="el" href="group__cpl__error.html#ga724de575c31ddf40f42786306f9dbdcb">cpl_error_get_code()</a>, <a class="el" href="group__cpl__error.html#gga49a0c316d52d2afbfd9fd94b95344900ae6ab32df318c1af9afcddcb8249cad51">CPL_ERROR_ILLEGAL_INPUT</a>, <a class="el" href="group__cpl__error.html#gga49a0c316d52d2afbfd9fd94b95344900a7907a24014a3a45aebe5ee1842f0c6f3">CPL_ERROR_INVALID_TYPE</a>, <a class="el" href="group__cpl__error.html#gga49a0c316d52d2afbfd9fd94b95344900a0239c1c63e9d21e98e45221a3ad60406">CPL_ERROR_NONE</a>, <a class="el" href="group__cpl__error.html#gga49a0c316d52d2afbfd9fd94b95344900a7b054cf7927d1bd0a9b3693a6715be84">CPL_ERROR_NULL_INPUT</a>, <a class="el" href="group__cpl__error.html#gga49a0c316d52d2afbfd9fd94b95344900a74ef8e37f3412e85cfc22840d13bdd0c">CPL_ERROR_UNSUPPORTED_MODE</a>, <a class="el" href="group__cpl__memory.html#ga9cd2b64cbbe05ec9f34fda048184b4d1">cpl_free()</a>, <a class="el" href="group__cpl__image.html#gaa5075dc76993fd8a36b7b11b682be3e6">cpl_image_divide_scalar()</a>, <a class="el" href="group__cpl__image.html#gaf2e8ea696ca2967a4b57d0e7940286a2">cpl_image_move()</a>, and <a class="el" href="group__cpl__type.html#gga3f03371e201544e9115b40065e47f086a4923f03f3a673edd344b0d81835ca69e">CPL_TYPE_DOUBLE</a>.</p>
</div>
</div>
<a class="anchor" id="gaa5f1f46cc7b349834c229e7192e96f5f"></a>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname"><a class="el" href="group__cpl__error.html#ga44b4287e8a7a22122b94c220a1dd9459">cpl_error_code</a> cpl_image_fill_abs_arg </td>
<td>(</td>
<td class="paramtype">cpl_image * </td>
<td class="paramname"><em>im_abs</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">cpl_image * </td>
<td class="paramname"><em>im_arg</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">const cpl_image * </td>
<td class="paramname"><em>self</em> </td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td>
</tr>
</table>
</div><div class="memdoc">
<p>Split a complex image into its absolute and argument part(s) </p>
<dl class="params"><dt>Parameters</dt><dd>
<table class="params">
<tr><td class="paramname">im_abs</td><td>Pre-allocated image to hold the absolute part, or <code>NULL</code> </td></tr>
<tr><td class="paramname">im_arg</td><td>Pre-allocated image to hold the argument part, or <code>NULL</code> </td></tr>
<tr><td class="paramname">self</td><td>Complex image to process </td></tr>
</table>
</dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>CPL_ERROR_NONE or <a class="el" href="group__cpl__error.html#ga49a0c316d52d2afbfd9fd94b95344900" title="Available error codes. ">_cpl_error_code_</a> on error </dd></dl>
<dl class="section note"><dt>Note</dt><dd>At least one output image must be non-NULL. The images must match in size and precision</dd></dl>
<p>Any bad pixels are also processed.</p>
<p>Possible <a class="el" href="group__cpl__error.html#ga49a0c316d52d2afbfd9fd94b95344900" title="Available error codes. ">_cpl_error_code_</a> set in this function:</p><ul>
<li>CPL_ERROR_NULL_INPUT If the input image or both output images are <code>NULL</code> </li>
<li>CPL_ERROR_INCOMPATIBLE_INPUT If the images have different sizes</li>
<li>CPL_ERROR_INVALID_TYPE If the input image is not of complex type</li>
<li>CPL_ERROR_TYPE_MISMATCH If the images have different precision </li>
</ul>
<p>References <a class="el" href="group__cpl__error.html#gaf18e95fbc6fc2cfde2a2cc8a0920b12d">cpl_ensure_code</a>, <a class="el" href="group__cpl__error.html#gga49a0c316d52d2afbfd9fd94b95344900a67b9f44eb1db1ab12f0575dbb878c0fd">CPL_ERROR_INCOMPATIBLE_INPUT</a>, <a class="el" href="group__cpl__error.html#gga49a0c316d52d2afbfd9fd94b95344900a7907a24014a3a45aebe5ee1842f0c6f3">CPL_ERROR_INVALID_TYPE</a>, <a class="el" href="group__cpl__error.html#gga49a0c316d52d2afbfd9fd94b95344900a0239c1c63e9d21e98e45221a3ad60406">CPL_ERROR_NONE</a>, <a class="el" href="group__cpl__error.html#gga49a0c316d52d2afbfd9fd94b95344900a7b054cf7927d1bd0a9b3693a6715be84">CPL_ERROR_NULL_INPUT</a>, <a class="el" href="group__cpl__type.html#gga3f03371e201544e9115b40065e47f086afdb64c4139e093575cc20d6abc35eaf8">CPL_TYPE_COMPLEX</a>, <a class="el" href="group__cpl__type.html#gga3f03371e201544e9115b40065e47f086afc7205e8b040bdfdee6011685cfe4345">CPL_TYPE_DOUBLE_COMPLEX</a>, and <a class="el" href="group__cpl__type.html#gga3f03371e201544e9115b40065e47f086ab2ab0f96a382011a38ee9446626fe1e0">CPL_TYPE_FLOAT_COMPLEX</a>.</p>
</div>
</div>
<a class="anchor" id="ga0e15ac361e648652fda6f1d2b63523ec"></a>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname"><a class="el" href="group__cpl__error.html#ga44b4287e8a7a22122b94c220a1dd9459">cpl_error_code</a> cpl_image_fill_gaussian </td>
<td>(</td>
<td class="paramtype">cpl_image * </td>
<td class="paramname"><em>ima</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">double </td>
<td class="paramname"><em>xcen</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">double </td>
<td class="paramname"><em>ycen</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">double </td>
<td class="paramname"><em>norm</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">double </td>
<td class="paramname"><em>sig_x</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">double </td>
<td class="paramname"><em>sig_y</em> </td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td>
</tr>
</table>
</div><div class="memdoc">
<p>Generate an image from a 2d gaussian function. </p>
<dl class="params"><dt>Parameters</dt><dd>
<table class="params">
<tr><td class="paramname">ima</td><td>the gaussian image to generate </td></tr>
<tr><td class="paramname">xcen</td><td>x position of the center (1 for the first pixel) </td></tr>
<tr><td class="paramname">ycen</td><td>y position of the center (1 for the first pixel) </td></tr>
<tr><td class="paramname">norm</td><td>norm of the gaussian. </td></tr>
<tr><td class="paramname">sig_x</td><td>Sigma in x for the gaussian distribution. </td></tr>
<tr><td class="paramname">sig_y</td><td>Sigma in y for the gaussian distribution. </td></tr>
</table>
</dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>the <a class="el" href="group__cpl__error.html#ga49a0c316d52d2afbfd9fd94b95344900" title="Available error codes. ">_cpl_error_code_</a> or CPL_ERROR_NONE</dd></dl>
<p>This function expects an already allocated image. This function generates an image of a 2d gaussian. The gaussian is defined by the position of its centre, given in pixel coordinates inside the image with the FITS convention (x from 1 to nx, y from 1 to ny), its norm and the value of sigma in x and y.</p>
<p>f(x, y) = (norm/(2*pi*sig_x*sig_y)) * exp(-(x-xcen)^2/(2*sig_x^2)) * exp(-(y-ycen)^2/(2*sig_y^2))</p>
<p>The input image type can be CPL_TYPE_FLOAT or CPL_TYPE_DOUBLE.</p>
<p>Possible <a class="el" href="group__cpl__error.html#ga49a0c316d52d2afbfd9fd94b95344900" title="Available error codes. ">_cpl_error_code_</a> set in this function:</p><ul>
<li>CPL_ERROR_NULL_INPUT if (one of) the input pointer(s) is NULL</li>
<li>CPL_ERROR_INVALID_TYPE if the passed image type is not supported </li>
</ul>
<p>References <a class="el" href="group__cpl__error.html#gaf18e95fbc6fc2cfde2a2cc8a0920b12d">cpl_ensure_code</a>, <a class="el" href="group__cpl__error.html#gga49a0c316d52d2afbfd9fd94b95344900a7907a24014a3a45aebe5ee1842f0c6f3">CPL_ERROR_INVALID_TYPE</a>, <a class="el" href="group__cpl__error.html#gga49a0c316d52d2afbfd9fd94b95344900a0239c1c63e9d21e98e45221a3ad60406">CPL_ERROR_NONE</a>, and <a class="el" href="group__cpl__error.html#gga49a0c316d52d2afbfd9fd94b95344900a7b054cf7927d1bd0a9b3693a6715be84">CPL_ERROR_NULL_INPUT</a>.</p>
<p>Referenced by <a class="el" href="group__cpl__image.html#ga096a8a3b65ad42f44f6d854c6594a4e1">cpl_image_fill_test_create()</a>.</p>
</div>
</div>
<a class="anchor" id="ga3a2ac9628c7dd3d8bc8355980474af72"></a>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname"><a class="el" href="group__cpl__error.html#ga44b4287e8a7a22122b94c220a1dd9459">cpl_error_code</a> cpl_image_fill_jacobian </td>
<td>(</td>
<td class="paramtype">cpl_image * </td>
<td class="paramname"><em>out</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">const cpl_image * </td>
<td class="paramname"><em>deltax</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">const cpl_image * </td>
<td class="paramname"><em>deltay</em> </td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td>
</tr>
</table>
</div><div class="memdoc">
<p>Compute area change ratio for a transformation map. </p>
<dl class="params"><dt>Parameters</dt><dd>
<table class="params">
<tr><td class="paramname">out</td><td>Pre-allocated image to hold the result </td></tr>
<tr><td class="paramname">deltax</td><td>The x shifts for each pixel </td></tr>
<tr><td class="paramname">deltay</td><td>The y shifts for each pixel</td></tr>
</table>
</dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>CPL_ERROR_NONE or the relevant <a class="el" href="group__cpl__error.html#ga49a0c316d52d2afbfd9fd94b95344900" title="Available error codes. ">_cpl_error_code_</a> on error</dd></dl>
<dl class="section see"><dt>See also</dt><dd><a class="el" href="group__cpl__image.html#ga53d75eb2e23114e4870c4d523081bfda" title="Warp an image. ">cpl_image_warp()</a></dd></dl>
<p>The shifts images <em>deltax</em> and <em>deltay</em>, describing the transformation, must be of type CPL_TYPE_DOUBLE and of the same size as <em>out</em>. For each pixel (u, v) of the <em>out</em> image, the deltax and deltay code the following transformation:</p>
<pre class="fragment">* u - deltax(u,v) = x
* v - deltay(u,v) = y
* </pre><p>This function writes the density of the (u, v) coordinate system relative to the (x, y) coordinates for each (u, v) pixel of image <em>out</em>.</p>
<p>This is trivially obtained by computing the absolute value of the determinant of the Jacobian of the transformation for each pixel of the (u, v) image <em>out</em>.</p>
<p>The partial derivatives are estimated at the position (u, v) in the following way:</p>
<pre class="fragment">* dx/du = 1 + 1/2 ( deltax(u-1, v) - deltax(u+1, v) )
* dx/dv = 1/2 ( deltax(u, v-1) - deltax(u, v+1) )
* dy/du = 1/2 ( deltay(u-1, v) - deltay(u+1, v) )
* dy/dv = 1 + 1/2 ( deltay(u, v-1) - deltay(u, v+1) )
* </pre><p>Typically this function would be used to determine a flux-conservation factor map for the target image specified in function <code><a class="el" href="group__cpl__image.html#ga53d75eb2e23114e4870c4d523081bfda" title="Warp an image. ">cpl_image_warp()</a></code>. For example,</p>
<pre class="fragment">* cpl_image_warp(out, in, deltax, deltay, xprof, xrad, yprof, yrad);
* correction_map = cpl_image_new(cpl_image_get_size_x(out),
* cpl_image_get_size_y(out),
* cpl_image_get_type(out));
* cpl_image_fill_jacobian(correction_map, deltax, deltay);
* out_flux_corrected = cpl_image_multiply_create(out, correction_map);
* </pre><p>where <em>out_flux_corrected</em> is the resampled image <em>out</em> after correction for flux conservation.</p>
<dl class="section note"><dt>Note</dt><dd>The map produced by this function is not applicable for flux conservation in case the transformation implies severe undersampling of the original signal.</dd></dl>
<p>Possible <a class="el" href="group__cpl__error.html#ga49a0c316d52d2afbfd9fd94b95344900" title="Available error codes. ">_cpl_error_code_</a> set in this function:</p><ul>
<li>CPL_ERROR_NULL_INPUT if (one of) the input pointer(s) is NULL</li>
<li>CPL_ERROR_ILLEGAL_INPUT if the polynomial dimensions are not 2</li>
<li>CPL_ERROR_INVALID_TYPE if the passed image type is not supported </li>
</ul>
<p>References <a class="el" href="group__cpl__error.html#gga49a0c316d52d2afbfd9fd94b95344900ae6ab32df318c1af9afcddcb8249cad51">CPL_ERROR_ILLEGAL_INPUT</a>, <a class="el" href="group__cpl__error.html#gga49a0c316d52d2afbfd9fd94b95344900a7907a24014a3a45aebe5ee1842f0c6f3">CPL_ERROR_INVALID_TYPE</a>, <a class="el" href="group__cpl__error.html#gga49a0c316d52d2afbfd9fd94b95344900a0239c1c63e9d21e98e45221a3ad60406">CPL_ERROR_NONE</a>, <a class="el" href="group__cpl__error.html#gga49a0c316d52d2afbfd9fd94b95344900a7b054cf7927d1bd0a9b3693a6715be84">CPL_ERROR_NULL_INPUT</a>, <a class="el" href="group__cpl__error.html#gga49a0c316d52d2afbfd9fd94b95344900abb6808829dd2b06a86ec503f1169eab3">CPL_ERROR_UNSPECIFIED</a>, <a class="el" href="group__cpl__image.html#ga71ed4128496419f983d66ffb4430cb67">cpl_image_abs()</a>, <a class="el" href="group__cpl__image.html#ga272e4e004716651b94d6d36e575b6841">cpl_image_delete()</a>, <a class="el" href="group__cpl__image.html#ga8a13105cf06807666c2a59ddd249ace7">cpl_image_get_data_double()</a>, <a class="el" href="group__cpl__image.html#ga2bf936dc6e939e2be9b8bd0d959c52e8">cpl_image_get_data_double_const()</a>, <a class="el" href="group__cpl__image.html#gac2274dda6fec382047a7377c5b9925f5">cpl_image_get_data_float()</a>, <a class="el" href="group__cpl__image.html#gab5a6bc059aa1d38c37ab5852b5170e45">cpl_image_get_size_x()</a>, <a class="el" href="group__cpl__image.html#gaf3495f9be1d6892cfed9c5232ccee350">cpl_image_get_size_y()</a>, <a class="el" href="group__cpl__image.html#ga17f97e60794f88e7f06b85cccbecc132">cpl_image_get_type()</a>, <a class="el" href="group__cpl__image.html#gab95562a5dbc2372f52ce644c50bfcd26">cpl_image_new()</a>, <a class="el" href="group__cpl__type.html#gga3f03371e201544e9115b40065e47f086a4923f03f3a673edd344b0d81835ca69e">CPL_TYPE_DOUBLE</a>, and <a class="el" href="group__cpl__type.html#gga3f03371e201544e9115b40065e47f086aa44c37e26b9040a96e3a49b405946942">CPL_TYPE_FLOAT</a>.</p>
</div>
</div>
<a class="anchor" id="ga9da9342bdd22b4db42abd6cdf32dd5c3"></a>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname"><a class="el" href="group__cpl__error.html#ga44b4287e8a7a22122b94c220a1dd9459">cpl_error_code</a> cpl_image_fill_jacobian_polynomial </td>
<td>(</td>
<td class="paramtype">cpl_image * </td>
<td class="paramname"><em>out</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">const cpl_polynomial * </td>
<td class="paramname"><em>poly_x</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">const cpl_polynomial * </td>
<td class="paramname"><em>poly_y</em> </td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td>
</tr>
</table>
</div><div class="memdoc">
<p>Compute area change ratio for a 2D polynomial transformation. </p>
<dl class="params"><dt>Parameters</dt><dd>
<table class="params">
<tr><td class="paramname">out</td><td>Pre-allocated image to hold the result </td></tr>
<tr><td class="paramname">poly_x</td><td>Defines source x-pos corresponding to destination (u,v). </td></tr>
<tr><td class="paramname">poly_y</td><td>Defines source y-pos corresponding to destination (u,v).</td></tr>
</table>
</dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>CPL_ERROR_NONE or the relevant <a class="el" href="group__cpl__error.html#ga49a0c316d52d2afbfd9fd94b95344900" title="Available error codes. ">_cpl_error_code_</a> on error</dd></dl>
<dl class="section see"><dt>See also</dt><dd><a class="el" href="group__cpl__image.html#ga34b80ed421f88c5bdad3f0127d251975" title="Warp an image according to a 2D polynomial transformation. ">cpl_image_warp_polynomial()</a></dd></dl>
<p>Given an input image with pixel coordinates (x, y) which is mapped into an output image with pixel coordinates (u, v), and the polynomial inverse transformation (u, v) to (x, y) as in <a class="el" href="group__cpl__image.html#ga34b80ed421f88c5bdad3f0127d251975">cpl_image_warp_polynomial()</a>, this function writes the density of the (u, v) coordinate system relative to the (x, y) coordinates for each (u, v) pixel of image <em>out</em>.</p>
<p>This is trivially obtained by computing the absolute value of the determinant of the Jacobian of the transformation for each pixel of the (u, v) image <em>out</em>.</p>
<p>Typically this function would be used to determine a flux-conservation factor map for the target image specified in function <code><a class="el" href="group__cpl__image.html#ga34b80ed421f88c5bdad3f0127d251975" title="Warp an image according to a 2D polynomial transformation. ">cpl_image_warp_polynomial()</a></code>. For example,</p>
<pre class="fragment">* cpl_image_warp_polynomial(out, in, poly_x, poly_y, xprof, xrad, yprof, yrad);
* correction_map = cpl_image_new(cpl_image_get_size_x(out),
* cpl_image_get_size_y(out),
* cpl_image_get_type(out));
* cpl_image_fill_jacobian_polynomial(correction_map, poly_x, poly_y);
* out_flux_corrected = cpl_image_multiply_create(out, correction_map);
* </pre><p>where <em>out_flux_corrected</em> is the resampled image <em>out</em> after correction for flux conservation.</p>
<dl class="section note"><dt>Note</dt><dd>The map produced by this function is not applicable for flux conservation in case the transformation implies severe undersampling of the original signal.</dd></dl>
<p>Possible <a class="el" href="group__cpl__error.html#ga49a0c316d52d2afbfd9fd94b95344900" title="Available error codes. ">_cpl_error_code_</a> set in this function:</p><ul>
<li>CPL_ERROR_NULL_INPUT if (one of) the input pointer(s) is NULL</li>
<li>CPL_ERROR_ILLEGAL_INPUT if the polynomial dimensions are not 2</li>
<li>CPL_ERROR_INVALID_TYPE if the passed image type is not supported </li>
</ul>
<p>References <a class="el" href="group__cpl__error.html#gga49a0c316d52d2afbfd9fd94b95344900ae6ab32df318c1af9afcddcb8249cad51">CPL_ERROR_ILLEGAL_INPUT</a>, <a class="el" href="group__cpl__error.html#gga49a0c316d52d2afbfd9fd94b95344900a7907a24014a3a45aebe5ee1842f0c6f3">CPL_ERROR_INVALID_TYPE</a>, <a class="el" href="group__cpl__error.html#gga49a0c316d52d2afbfd9fd94b95344900a0239c1c63e9d21e98e45221a3ad60406">CPL_ERROR_NONE</a>, <a class="el" href="group__cpl__error.html#gga49a0c316d52d2afbfd9fd94b95344900a7b054cf7927d1bd0a9b3693a6715be84">CPL_ERROR_NULL_INPUT</a>, <a class="el" href="group__cpl__error.html#gga49a0c316d52d2afbfd9fd94b95344900abb6808829dd2b06a86ec503f1169eab3">CPL_ERROR_UNSPECIFIED</a>, <a class="el" href="group__cpl__image.html#ga71ed4128496419f983d66ffb4430cb67">cpl_image_abs()</a>, <a class="el" href="group__cpl__image.html#ga8a13105cf06807666c2a59ddd249ace7">cpl_image_get_data_double()</a>, <a class="el" href="group__cpl__image.html#gac2274dda6fec382047a7377c5b9925f5">cpl_image_get_data_float()</a>, <a class="el" href="group__cpl__image.html#gab5a6bc059aa1d38c37ab5852b5170e45">cpl_image_get_size_x()</a>, <a class="el" href="group__cpl__image.html#gaf3495f9be1d6892cfed9c5232ccee350">cpl_image_get_size_y()</a>, <a class="el" href="group__cpl__image.html#ga17f97e60794f88e7f06b85cccbecc132">cpl_image_get_type()</a>, <a class="el" href="group__cpl__polynomial.html#gaad27580d5c9e514cdbcddbd0d4d038e7">cpl_polynomial_delete()</a>, <a class="el" href="group__cpl__polynomial.html#ga2efdebaaf27c73481a42622d45f02b4a">cpl_polynomial_derivative()</a>, <a class="el" href="group__cpl__polynomial.html#ga62c3d942b1525bad657cd44ff2e0fbfb">cpl_polynomial_duplicate()</a>, <a class="el" href="group__cpl__polynomial.html#gad7022ca32043652bfbd767b197b83bf9">cpl_polynomial_eval()</a>, <a class="el" href="group__cpl__polynomial.html#ga4436f9900625ba6f19f189f5b0ee99d2">cpl_polynomial_get_dimension()</a>, <a class="el" href="group__cpl__type.html#gga3f03371e201544e9115b40065e47f086a4923f03f3a673edd344b0d81835ca69e">CPL_TYPE_DOUBLE</a>, <a class="el" href="group__cpl__type.html#gga3f03371e201544e9115b40065e47f086aa44c37e26b9040a96e3a49b405946942">CPL_TYPE_FLOAT</a>, <a class="el" href="group__cpl__vector.html#gaf563c19d309c5b60d148a84cb156c2cf">cpl_vector_delete()</a>, <a class="el" href="group__cpl__vector.html#gaca37a188555aff6e2379199e7fae49be">cpl_vector_get_data()</a>, and <a class="el" href="group__cpl__vector.html#ga0a0d8b61b19cd1d3668525a3f2d55e72">cpl_vector_new()</a>.</p>
</div>
</div>
<a class="anchor" id="gada6ca968668df48fa6510f0dc2da611f"></a>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname"><a class="el" href="group__cpl__error.html#ga44b4287e8a7a22122b94c220a1dd9459">cpl_error_code</a> cpl_image_fill_noise_uniform </td>
<td>(</td>
<td class="paramtype">cpl_image * </td>
<td class="paramname"><em>ima</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">double </td>
<td class="paramname"><em>min_pix</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">double </td>
<td class="paramname"><em>max_pix</em> </td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td>
</tr>
</table>
</div><div class="memdoc">
<p>Generate an image with uniform random noise distribution. </p>
<dl class="params"><dt>Parameters</dt><dd>
<table class="params">
<tr><td class="paramname">ima</td><td>the image to generate </td></tr>
<tr><td class="paramname">min_pix</td><td>Minimum output pixel value. </td></tr>
<tr><td class="paramname">max_pix</td><td>Maximum output pixel value. </td></tr>
</table>
</dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>the <a class="el" href="group__cpl__error.html#ga49a0c316d52d2afbfd9fd94b95344900" title="Available error codes. ">_cpl_error_code_</a> or CPL_ERROR_NONE</dd></dl>
<p>Generate an image with a uniform random noise distribution. Pixel values are within the provided bounds. This function expects an already allocated image. The input image type can be CPL_TYPE_INT, CPL_TYPE_FLOAT or CPL_TYPE_DOUBLE.</p>
<p>Possible <a class="el" href="group__cpl__error.html#ga49a0c316d52d2afbfd9fd94b95344900" title="Available error codes. ">_cpl_error_code_</a> set in this function:</p><ul>
<li>CPL_ERROR_NULL_INPUT if (one of) the input pointer(s) is NULL</li>
<li>CPL_ERROR_ILLEGAL_INPUT if min_pix is bigger than max_pix</li>
<li>CPL_ERROR_INVALID_TYPE if the passed image type is not supported </li>
</ul>
<p>References <a class="el" href="group__cpl__error.html#gaf18e95fbc6fc2cfde2a2cc8a0920b12d">cpl_ensure_code</a>, <a class="el" href="group__cpl__error.html#gga49a0c316d52d2afbfd9fd94b95344900ae6ab32df318c1af9afcddcb8249cad51">CPL_ERROR_ILLEGAL_INPUT</a>, <a class="el" href="group__cpl__error.html#gga49a0c316d52d2afbfd9fd94b95344900a7907a24014a3a45aebe5ee1842f0c6f3">CPL_ERROR_INVALID_TYPE</a>, <a class="el" href="group__cpl__error.html#gga49a0c316d52d2afbfd9fd94b95344900a0239c1c63e9d21e98e45221a3ad60406">CPL_ERROR_NONE</a>, and <a class="el" href="group__cpl__error.html#gga49a0c316d52d2afbfd9fd94b95344900a7b054cf7927d1bd0a9b3693a6715be84">CPL_ERROR_NULL_INPUT</a>.</p>
<p>Referenced by <a class="el" href="group__cpl__image.html#ga096a8a3b65ad42f44f6d854c6594a4e1">cpl_image_fill_test_create()</a>.</p>
</div>
</div>
<a class="anchor" id="ga3e46978badb07da8a75caf267452bf5d"></a>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname"><a class="el" href="group__cpl__error.html#ga44b4287e8a7a22122b94c220a1dd9459">cpl_error_code</a> cpl_image_fill_polynomial </td>
<td>(</td>
<td class="paramtype">cpl_image * </td>
<td class="paramname"><em>ima</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">const cpl_polynomial * </td>
<td class="paramname"><em>poly</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">double </td>
<td class="paramname"><em>startx</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">double </td>
<td class="paramname"><em>stepx</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">double </td>
<td class="paramname"><em>starty</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">double </td>
<td class="paramname"><em>stepy</em> </td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td>
</tr>
</table>
</div><div class="memdoc">
<p>Generate an image from a 2d polynomial function. </p>
<dl class="params"><dt>Parameters</dt><dd>
<table class="params">
<tr><td class="paramname">ima</td><td>the polynomial image to generate </td></tr>
<tr><td class="paramname">poly</td><td>the 2d polynomial </td></tr>
<tr><td class="paramname">startx</td><td>the x value associated with the left pixels column </td></tr>
<tr><td class="paramname">stepx</td><td>the x step </td></tr>
<tr><td class="paramname">starty</td><td>the y value associated with the bottom pixels row </td></tr>
<tr><td class="paramname">stepy</td><td>the y step </td></tr>
</table>
</dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>the <a class="el" href="group__cpl__error.html#ga49a0c316d52d2afbfd9fd94b95344900" title="Available error codes. ">_cpl_error_code_</a> or CPL_ERROR_NONE</dd></dl>
<p>This function expects an already allocated image. The pixel value of the pixel (i, j) is set to poly(startx+(i-1)*stepx, starty+(j-1)*stepy).</p>
<p>The input image type can be CPL_TYPE_FLOAT or CPL_TYPE_DOUBLE.</p>
<p>If you want to generate an image whose pixel values are the values of the polynomial applied to the pixel positions, just call cpl_image_fill_polynomial(ima, poly, 1.0, 1.0, 1.0, 1.0);</p>
<p>Possible <a class="el" href="group__cpl__error.html#ga49a0c316d52d2afbfd9fd94b95344900" title="Available error codes. ">_cpl_error_code_</a> set in this function:</p><ul>
<li>CPL_ERROR_NULL_INPUT if (one of) the input pointer(s) is NULL</li>
<li>CPL_ERROR_ILLEGAL_INPUT if the polynomial's dimension is not 2</li>
<li>CPL_ERROR_INVALID_TYPE if the passed image type is not supported </li>
</ul>
<p>References <a class="el" href="group__cpl__error.html#gaf18e95fbc6fc2cfde2a2cc8a0920b12d">cpl_ensure_code</a>, <a class="el" href="group__cpl__error.html#gga49a0c316d52d2afbfd9fd94b95344900ae6ab32df318c1af9afcddcb8249cad51">CPL_ERROR_ILLEGAL_INPUT</a>, <a class="el" href="group__cpl__error.html#gga49a0c316d52d2afbfd9fd94b95344900a7907a24014a3a45aebe5ee1842f0c6f3">CPL_ERROR_INVALID_TYPE</a>, <a class="el" href="group__cpl__error.html#gga49a0c316d52d2afbfd9fd94b95344900a0239c1c63e9d21e98e45221a3ad60406">CPL_ERROR_NONE</a>, <a class="el" href="group__cpl__error.html#gga49a0c316d52d2afbfd9fd94b95344900a7b054cf7927d1bd0a9b3693a6715be84">CPL_ERROR_NULL_INPUT</a>, and <a class="el" href="group__cpl__polynomial.html#ga4436f9900625ba6f19f189f5b0ee99d2">cpl_polynomial_get_dimension()</a>.</p>
</div>
</div>
<a class="anchor" id="ga1118592995a5c9923526d3e540478133"></a>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname"><a class="el" href="group__cpl__error.html#ga44b4287e8a7a22122b94c220a1dd9459">cpl_error_code</a> cpl_image_fill_re_im </td>
<td>(</td>
<td class="paramtype">cpl_image * </td>
<td class="paramname"><em>im_real</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">cpl_image * </td>
<td class="paramname"><em>im_imag</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">const cpl_image * </td>
<td class="paramname"><em>self</em> </td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td>
</tr>
</table>
</div><div class="memdoc">
<p>Split a complex image into its real and/or imaginary part(s) </p>
<dl class="params"><dt>Parameters</dt><dd>
<table class="params">
<tr><td class="paramname">im_real</td><td>Pre-allocated image to hold the real part, or <code>NULL</code> </td></tr>
<tr><td class="paramname">im_imag</td><td>Pre-allocated image to hold the imaginary part, or <code>NULL</code> </td></tr>
<tr><td class="paramname">self</td><td>Complex image to process </td></tr>
</table>
</dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>CPL_ERROR_NONE or <a class="el" href="group__cpl__error.html#ga49a0c316d52d2afbfd9fd94b95344900" title="Available error codes. ">_cpl_error_code_</a> on error </dd></dl>
<dl class="section note"><dt>Note</dt><dd>At least one output image must be non-NULL. The images must match in size and precision</dd></dl>
<p>Any bad pixels are also processed.</p>
<p>Possible <a class="el" href="group__cpl__error.html#ga49a0c316d52d2afbfd9fd94b95344900" title="Available error codes. ">_cpl_error_code_</a> set in this function:</p><ul>
<li>CPL_ERROR_NULL_INPUT If the input image or both output images are <code>NULL</code> </li>
<li>CPL_ERROR_INCOMPATIBLE_INPUT If the images have different sizes</li>
<li>CPL_ERROR_INVALID_TYPE If the input image is not of complex type</li>
<li>CPL_ERROR_TYPE_MISMATCH If the images have different precision </li>
</ul>
<p>References <a class="el" href="group__cpl__error.html#gaf18e95fbc6fc2cfde2a2cc8a0920b12d">cpl_ensure_code</a>, <a class="el" href="group__cpl__error.html#gga49a0c316d52d2afbfd9fd94b95344900a67b9f44eb1db1ab12f0575dbb878c0fd">CPL_ERROR_INCOMPATIBLE_INPUT</a>, <a class="el" href="group__cpl__error.html#gga49a0c316d52d2afbfd9fd94b95344900a7907a24014a3a45aebe5ee1842f0c6f3">CPL_ERROR_INVALID_TYPE</a>, <a class="el" href="group__cpl__error.html#gga49a0c316d52d2afbfd9fd94b95344900a0239c1c63e9d21e98e45221a3ad60406">CPL_ERROR_NONE</a>, <a class="el" href="group__cpl__error.html#gga49a0c316d52d2afbfd9fd94b95344900a7b054cf7927d1bd0a9b3693a6715be84">CPL_ERROR_NULL_INPUT</a>, <a class="el" href="group__cpl__type.html#gga3f03371e201544e9115b40065e47f086afdb64c4139e093575cc20d6abc35eaf8">CPL_TYPE_COMPLEX</a>, <a class="el" href="group__cpl__type.html#gga3f03371e201544e9115b40065e47f086afc7205e8b040bdfdee6011685cfe4345">CPL_TYPE_DOUBLE_COMPLEX</a>, and <a class="el" href="group__cpl__type.html#gga3f03371e201544e9115b40065e47f086ab2ab0f96a382011a38ee9446626fe1e0">CPL_TYPE_FLOAT_COMPLEX</a>.</p>
</div>
</div>
<a class="anchor" id="gabdd5469f56fb6e7fa791b23fe459a75c"></a>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname"><a class="el" href="group__cpl__error.html#ga44b4287e8a7a22122b94c220a1dd9459">cpl_error_code</a> cpl_image_fill_rejected </td>
<td>(</td>
<td class="paramtype">cpl_image * </td>
<td class="paramname"><em>im</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">double </td>
<td class="paramname"><em>a</em> </td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td>
</tr>
</table>
</div><div class="memdoc">
<p>Set the bad pixels in an image to a fixed value. </p>
<dl class="params"><dt>Parameters</dt><dd>
<table class="params">
<tr><td class="paramname">im</td><td>The image to modify. </td></tr>
<tr><td class="paramname">a</td><td>The fixed value </td></tr>
</table>
</dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>the <a class="el" href="group__cpl__error.html#ga49a0c316d52d2afbfd9fd94b95344900" title="Available error codes. ">_cpl_error_code_</a> or CPL_ERROR_NONE</dd></dl>
<p>Images can be CPL_TYPE_FLOAT, CPL_TYPE_INT, CPL_TYPE_DOUBLE.</p>
<p>Possible <a class="el" href="group__cpl__error.html#ga49a0c316d52d2afbfd9fd94b95344900" title="Available error codes. ">_cpl_error_code_</a> set in this function:</p><ul>
<li>CPL_ERROR_NULL_INPUT if an input pointer is NULL</li>
<li>CPL_ERROR_ILLEGAL_INPUT</li>
<li>CPL_ERROR_INVALID_TYPE if the image pixel type is not supported </li>
</ul>
<p>References <a class="el" href="group__cpl__error.html#gaf18e95fbc6fc2cfde2a2cc8a0920b12d">cpl_ensure_code</a>, <a class="el" href="group__cpl__error.html#gga49a0c316d52d2afbfd9fd94b95344900a7907a24014a3a45aebe5ee1842f0c6f3">CPL_ERROR_INVALID_TYPE</a>, <a class="el" href="group__cpl__error.html#gga49a0c316d52d2afbfd9fd94b95344900a0239c1c63e9d21e98e45221a3ad60406">CPL_ERROR_NONE</a>, <a class="el" href="group__cpl__error.html#gga49a0c316d52d2afbfd9fd94b95344900a7b054cf7927d1bd0a9b3693a6715be84">CPL_ERROR_NULL_INPUT</a>, <a class="el" href="group__cpl__mask.html#ga462a148e501731a123e573e6f818f8c2">cpl_mask_get_data()</a>, and <a class="el" href="group__cpl__mask.html#ga0009ad4c6aed58343b09e47ef38ef9e4">cpl_mask_is_empty()</a>.</p>
<p>Referenced by <a class="el" href="group__cpl__apertures.html#ga23b66826669fa90caafd5ad3060a116d">cpl_apertures_new_from_image()</a>, <a class="el" href="group__cpl__geom__img.html#ga8df5c11aeb84394817af6a0680c2859c">cpl_geom_img_offset_saa()</a>, and <a class="el" href="group__cpl__imagelist.html#ga7781fb428bbd12459bc8ec58ccbf855f">cpl_imagelist_collapse_create()</a>.</p>
</div>
</div>
<a class="anchor" id="ga096a8a3b65ad42f44f6d854c6594a4e1"></a>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">cpl_image* cpl_image_fill_test_create </td>
<td>(</td>
<td class="paramtype"><a class="el" href="group__cpl__type.html#gacc431432a4fedf19ec6f7668dda3fbf0">cpl_size</a> </td>
<td class="paramname"><em>nx</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype"><a class="el" href="group__cpl__type.html#gacc431432a4fedf19ec6f7668dda3fbf0">cpl_size</a> </td>
<td class="paramname"><em>ny</em> </td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td>
</tr>
</table>
</div><div class="memdoc">
<p>Generate a test image with pixel type CPL_TYPE_DOUBLE. </p>
<dl class="params"><dt>Parameters</dt><dd>
<table class="params">
<tr><td class="paramname">nx</td><td>x size </td></tr>
<tr><td class="paramname">ny</td><td>y size </td></tr>
</table>
</dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>1 newly allocated image or NULL on error</dd></dl>
<p>Generates a reference pattern for testing purposes only. The created image has to be deallocated with <a class="el" href="group__cpl__image.html#ga272e4e004716651b94d6d36e575b6841" title="Free memory associated to an cpl_image object. ">cpl_image_delete()</a>.</p>
<p>Possible <a class="el" href="group__cpl__error.html#ga49a0c316d52d2afbfd9fd94b95344900" title="Available error codes. ">_cpl_error_code_</a> set in this function:</p><ul>
<li>CPL_ERROR_ILLEGAL_INPUT if nx or ny is non-positive </li>
</ul>
<p>References <a class="el" href="group__cpl__error.html#gafb123879d8683c6d63681f433dc19bd0">cpl_ensure</a>, <a class="el" href="group__cpl__error.html#gga49a0c316d52d2afbfd9fd94b95344900ae6ab32df318c1af9afcddcb8249cad51">CPL_ERROR_ILLEGAL_INPUT</a>, <a class="el" href="group__cpl__image.html#gaff601b28e179b3d1e62068e7561a26e8">cpl_image_add()</a>, <a class="el" href="group__cpl__image.html#ga272e4e004716651b94d6d36e575b6841">cpl_image_delete()</a>, <a class="el" href="group__cpl__image.html#ga0e15ac361e648652fda6f1d2b63523ec">cpl_image_fill_gaussian()</a>, <a class="el" href="group__cpl__image.html#gada6ca968668df48fa6510f0dc2da611f">cpl_image_fill_noise_uniform()</a>, <a class="el" href="group__cpl__image.html#gaf2a2500024307801272227e9d6abbbaa">cpl_image_multiply_scalar()</a>, <a class="el" href="group__cpl__image.html#gab95562a5dbc2372f52ce644c50bfcd26">cpl_image_new()</a>, and <a class="el" href="group__cpl__type.html#gga3f03371e201544e9115b40065e47f086a4923f03f3a673edd344b0d81835ca69e">CPL_TYPE_DOUBLE</a>.</p>
</div>
</div>
<a class="anchor" id="gab2611352be67b89c2169cd49830c92ca"></a>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname"><a class="el" href="group__cpl__error.html#ga44b4287e8a7a22122b94c220a1dd9459">cpl_error_code</a> cpl_image_fill_window </td>
<td>(</td>
<td class="paramtype">cpl_image * </td>
<td class="paramname"><em>self</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype"><a class="el" href="group__cpl__type.html#gacc431432a4fedf19ec6f7668dda3fbf0">cpl_size</a> </td>
<td class="paramname"><em>llx</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype"><a class="el" href="group__cpl__type.html#gacc431432a4fedf19ec6f7668dda3fbf0">cpl_size</a> </td>
<td class="paramname"><em>lly</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype"><a class="el" href="group__cpl__type.html#gacc431432a4fedf19ec6f7668dda3fbf0">cpl_size</a> </td>
<td class="paramname"><em>urx</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype"><a class="el" href="group__cpl__type.html#gacc431432a4fedf19ec6f7668dda3fbf0">cpl_size</a> </td>
<td class="paramname"><em>ury</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">double </td>
<td class="paramname"><em>value</em> </td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td>
</tr>
</table>
</div><div class="memdoc">
<p>Fill an image window with a constant. </p>
<dl class="params"><dt>Parameters</dt><dd>
<table class="params">
<tr><td class="paramname">self</td><td>The image to fill </td></tr>
<tr><td class="paramname">llx</td><td>Lower left x position (FITS convention, 1 for leftmost) </td></tr>
<tr><td class="paramname">lly</td><td>Lower left y position (FITS convention, 1 for lowest) </td></tr>
<tr><td class="paramname">urx</td><td>Specifies the window position </td></tr>
<tr><td class="paramname">ury</td><td>Specifies the window position </td></tr>
<tr><td class="paramname">value</td><td>The value to fill with </td></tr>
</table>
</dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>The <a class="el" href="group__cpl__error.html#ga49a0c316d52d2afbfd9fd94b95344900" title="Available error codes. ">_cpl_error_code_</a> or CPL_ERROR_NONE </dd></dl>
<dl class="section note"><dt>Note</dt><dd>Any bad pixels are accepted</dd></dl>
<p>Possible <a class="el" href="group__cpl__error.html#ga49a0c316d52d2afbfd9fd94b95344900" title="Available error codes. ">_cpl_error_code_</a> set in this function:</p><ul>
<li>CPL_ERROR_NULL_INPUT if an input pointer is NULL</li>
<li>CPL_ERROR_ILLEGAL_INPUT if the specified window is not valid </li>
</ul>
<p>References <a class="el" href="group__cpl__error.html#gaf18e95fbc6fc2cfde2a2cc8a0920b12d">cpl_ensure_code</a>, <a class="el" href="group__cpl__error.html#gga49a0c316d52d2afbfd9fd94b95344900ae6ab32df318c1af9afcddcb8249cad51">CPL_ERROR_ILLEGAL_INPUT</a>, <a class="el" href="group__cpl__error.html#gga49a0c316d52d2afbfd9fd94b95344900a0239c1c63e9d21e98e45221a3ad60406">CPL_ERROR_NONE</a>, <a class="el" href="group__cpl__error.html#gga49a0c316d52d2afbfd9fd94b95344900a7b054cf7927d1bd0a9b3693a6715be84">CPL_ERROR_NULL_INPUT</a>, and <a class="el" href="group__cpl__image.html#gaceda29961b159f8ae6d19b1759d6b34b">cpl_image_set()</a>.</p>
</div>
</div>
<a class="anchor" id="gacabd23385727059b61a8f20181485b05"></a>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname"><a class="el" href="group__cpl__error.html#ga44b4287e8a7a22122b94c220a1dd9459">cpl_error_code</a> cpl_image_filter </td>
<td>(</td>
<td class="paramtype">cpl_image * </td>
<td class="paramname"><em>self</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">const cpl_image * </td>
<td class="paramname"><em>other</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">const cpl_matrix * </td>
<td class="paramname"><em>kernel</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype"><a class="el" href="group__cpl__filter.html#ga4469cc9402438f791bbcccae762e0b2f">cpl_filter_mode</a> </td>
<td class="paramname"><em>filter</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype"><a class="el" href="group__cpl__filter.html#ga9d26d8ff5e92c0df5fae1289fae9ecbc">cpl_border_mode</a> </td>
<td class="paramname"><em>border</em> </td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td>
</tr>
</table>
</div><div class="memdoc">
<p>Filter an image using a floating-point kernel. </p>
<dl class="params"><dt>Parameters</dt><dd>
<table class="params">
<tr><td class="paramname">self</td><td>Pre-allocated image to hold the filtered result </td></tr>
<tr><td class="paramname">other</td><td>Image to filter </td></tr>
<tr><td class="paramname">kernel</td><td>Pixel weigths </td></tr>
<tr><td class="paramname">filter</td><td>CPL_FILTER_LINEAR, CPL_FILTER_MORPHO </td></tr>
<tr><td class="paramname">border</td><td>CPL_BORDER_FILTER </td></tr>
</table>
</dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>CPL_ERROR_NONE or the relevant CPL error code </dd></dl>
<dl class="section see"><dt>See also</dt><dd><a class="el" href="group__cpl__image.html#ga09c5ec8125d5ad2d14824106ac78061c" title="Filter an image using a binary kernel. ">cpl_image_filter_mask</a></dd></dl>
<p>The two images must have equal dimensions.</p>
<p>The kernel must have an odd number of rows and an odd number of columns and at least one non-zero element.</p>
<p>For scaling filters (<code>CPL_FILTER_LINEAR_SCALE</code> and <code>CPL_FILTER_MORPHO_SCALE</code>) the flux of the filtered image will be scaled with the sum of the weights of the kernel. If for a given input pixel location the kernel covers only bad pixels, the filtered pixel value is flagged as bad and set to zero.</p>
<p>For flux-preserving filters (<code>CPL_FILTER_LINEAR</code> and <code>CPL_FILTER_MORPHO</code>) the filtered pixel must have at least one input pixel with a non-zero weight available. Output pixels where this is not the case are set to zero and flagged as bad.</p>
<p>In-place filtering is not supported.</p>
<p>Supported filters: <code>CPL_FILTER_LINEAR</code>, <code>CPL_FILTER_MORPHO</code>, <code>CPL_FILTER_LINEAR_SCALE</code>, <code>CPL_FILTER_MORPHO_SCALE</code>.</p>
<p>Supported borders modes: <code>CPL_BORDER_FILTER</code> </p>
<dl class="section user"><dt>Example:</dt><dd><div class="fragment"><div class="line"><a name="l00001"></a><span class="lineno"> 1</span> cpl_image_filter(filtered, raw, kernel, CPL_FILTER_LINEAR,</div>
<div class="line"><a name="l00002"></a><span class="lineno"> 2</span>  CPL_BORDER_FILTER);</div>
</div><!-- fragment --></dd></dl>
<p>Beware that the 1st pixel - at (1,1) - in an image is the lower left, while the 1st element in a matrix - at (0,0) - is the top left. Thus to shift an image 1 pixel up and 1 pixel right with the CPL_FILTER_LINEAR and a 3 by 3 kernel, one should set to 1.0 the bottom leftmost matrix element which is at row 3, column 1, i.e. </p><div class="fragment"><div class="line"><a name="l00001"></a><span class="lineno"> 1</span> cpl_matrix_set(kernel, 2, 0);</div>
</div><!-- fragment --><p>Possible <a class="el" href="group__cpl__error.html#ga49a0c316d52d2afbfd9fd94b95344900" title="Available error codes. ">_cpl_error_code_</a> set in this function:</p><ul>
<li>CPL_ERROR_NULL_INPUT if an input pointer is NULL.</li>
<li>CPL_ERROR_ILLEGAL_INPUT if the kernel has a side of even length.</li>
<li>CPL_ERROR_DIVISION_BY_ZERO If the kernel is a zero-matrix.</li>
<li>CPL_ERROR_ACCESS_OUT_OF_RANGE If the kernel has a side longer than the input image.</li>
<li>CPL_ERROR_INVALID_TYPE if the passed image type is not supported.</li>
<li>CPL_ERROR_TYPE_MISMATCH if in median filtering the input and output pixel types differ.</li>
<li>CPL_ERROR_INCOMPATIBLE_INPUT If the input and output images have incompatible sizes.</li>
<li>CPL_ERROR_UNSUPPORTED_MODE If the output pixel buffer overlaps the input one (or the kernel), or the border/filter mode is unsupported. </li>
</ul>
<p>References <a class="el" href="group__cpl__filter.html#ggaa315d358382b534d5a2ef030f8eda2aca3cf424290882dea1f05a8b1ff165fcdd">CPL_BORDER_CROP</a>, <a class="el" href="group__cpl__filter.html#ggaa315d358382b534d5a2ef030f8eda2aca820569d4c7243b26d13764a011b28391">CPL_BORDER_FILTER</a>, <a class="el" href="group__cpl__error.html#gaf18e95fbc6fc2cfde2a2cc8a0920b12d">cpl_ensure_code</a>, <a class="el" href="group__cpl__error.html#gga49a0c316d52d2afbfd9fd94b95344900a0d916ea6a7e198a74863ecd9ea03d733">CPL_ERROR_ACCESS_OUT_OF_RANGE</a>, <a class="el" href="group__cpl__error.html#gga49a0c316d52d2afbfd9fd94b95344900afbc03558f2ea2b19e48a2af5901d19d1">CPL_ERROR_DIVISION_BY_ZERO</a>, <a class="el" href="group__cpl__error.html#gga49a0c316d52d2afbfd9fd94b95344900ae6ab32df318c1af9afcddcb8249cad51">CPL_ERROR_ILLEGAL_INPUT</a>, <a class="el" href="group__cpl__error.html#gga49a0c316d52d2afbfd9fd94b95344900a67b9f44eb1db1ab12f0575dbb878c0fd">CPL_ERROR_INCOMPATIBLE_INPUT</a>, <a class="el" href="group__cpl__error.html#gga49a0c316d52d2afbfd9fd94b95344900a7907a24014a3a45aebe5ee1842f0c6f3">CPL_ERROR_INVALID_TYPE</a>, <a class="el" href="group__cpl__error.html#gga49a0c316d52d2afbfd9fd94b95344900a0239c1c63e9d21e98e45221a3ad60406">CPL_ERROR_NONE</a>, <a class="el" href="group__cpl__error.html#gga49a0c316d52d2afbfd9fd94b95344900a7b054cf7927d1bd0a9b3693a6715be84">CPL_ERROR_NULL_INPUT</a>, <a class="el" href="group__cpl__error.html#gga49a0c316d52d2afbfd9fd94b95344900a74ef8e37f3412e85cfc22840d13bdd0c">CPL_ERROR_UNSUPPORTED_MODE</a>, <a class="el" href="group__cpl__filter.html#ggaf183188640e935882ac563db92f8d372ac7fba3732cdb2dd5ffc5fc39058651bd">CPL_FILTER_LINEAR</a>, <a class="el" href="group__cpl__filter.html#ggaf183188640e935882ac563db92f8d372ae6c321dca82f45ed91a900fbcd65ef19">CPL_FILTER_LINEAR_SCALE</a>, <a class="el" href="group__cpl__filter.html#ggaf183188640e935882ac563db92f8d372ae6519292f6fa9de803367a18753c4771">CPL_FILTER_MORPHO</a>, <a class="el" href="group__cpl__filter.html#ggaf183188640e935882ac563db92f8d372af86b28167dd12b11137af587041f359b">CPL_FILTER_MORPHO_SCALE</a>, <a class="el" href="group__cpl__image.html#ga0b497875edfee08e540e69c2baea1ab4">cpl_image_get_data()</a>, <a class="el" href="group__cpl__image.html#ga670404d662c8420249028acc8025121b">cpl_image_get_data_const()</a>, <a class="el" href="group__cpl__image.html#gab5a6bc059aa1d38c37ab5852b5170e45">cpl_image_get_size_x()</a>, <a class="el" href="group__cpl__image.html#gaf3495f9be1d6892cfed9c5232ccee350">cpl_image_get_size_y()</a>, <a class="el" href="group__cpl__image.html#ga17f97e60794f88e7f06b85cccbecc132">cpl_image_get_type()</a>, <a class="el" href="group__cpl__mask.html#ga462a148e501731a123e573e6f818f8c2">cpl_mask_get_data()</a>, <a class="el" href="group__cpl__mask.html#gac9ab11af7ef4ff0b8424141271fd685b">cpl_mask_get_data_const()</a>, <a class="el" href="group__cpl__mask.html#ga0009ad4c6aed58343b09e47ef38ef9e4">cpl_mask_is_empty()</a>, <a class="el" href="group__cpl__mask.html#ga7f9767654033c50dd87d31cbde060593">cpl_mask_wrap()</a>, <a class="el" href="group__cpl__matrix.html#ga8cca30a90b99acbd643748ada726f2c9">cpl_matrix_get_data_const()</a>, <a class="el" href="group__cpl__matrix.html#ga4bade56f31c3e0f69ca513a557c1d4fd">cpl_matrix_get_ncol()</a>, <a class="el" href="group__cpl__matrix.html#gaba2be6537f0aacb0dfea437f186627c9">cpl_matrix_get_nrow()</a>, <a class="el" href="group__cpl__type.html#gga3f03371e201544e9115b40065e47f086a4923f03f3a673edd344b0d81835ca69e">CPL_TYPE_DOUBLE</a>, <a class="el" href="group__cpl__type.html#gga3f03371e201544e9115b40065e47f086aa44c37e26b9040a96e3a49b405946942">CPL_TYPE_FLOAT</a>, <a class="el" href="group__cpl__type.html#ga5098a0d41d12e907e5cacce2052a345e">cpl_type_get_sizeof()</a>, and <a class="el" href="group__cpl__type.html#gga3f03371e201544e9115b40065e47f086ae333db5ccea0813ccd892525b4ba1345">CPL_TYPE_INT</a>.</p>
<p>Referenced by <a class="el" href="group__cpl__image.html#gab4b4d2c7ec03d2f0e9f0abae612927b5">cpl_image_filter_linear()</a>, and <a class="el" href="group__cpl__image.html#ga22149f62af2c9c0c02ac7a5bf9c259c1">cpl_image_filter_morpho()</a>.</p>
</div>
</div>
<a class="anchor" id="gab4b4d2c7ec03d2f0e9f0abae612927b5"></a>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">cpl_image* cpl_image_filter_linear </td>
<td>(</td>
<td class="paramtype">const cpl_image * </td>
<td class="paramname"><em>in</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">const cpl_matrix * </td>
<td class="paramname"><em>ker</em> </td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td>
</tr>
</table>
</div><div class="memdoc">
<p>Compute a linear filtering. </p>
<dl class="params"><dt>Parameters</dt><dd>
<table class="params">
<tr><td class="paramname">in</td><td>The image to filter </td></tr>
<tr><td class="paramname">ker</td><td>The kernel </td></tr>
</table>
</dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>The filtered image or NULL on error </dd></dl>
<dl class="section see"><dt>See also</dt><dd><a class="el" href="group__cpl__image.html#gacabd23385727059b61a8f20181485b05" title="Filter an image using a floating-point kernel. ">cpl_image_filter()</a> </dd></dl>
<dl class="deprecated"><dt><b><a class="el" href="deprecated.html#_deprecated000004">Deprecated:</a></b></dt><dd>Replace this call with <a class="el" href="group__cpl__image.html#gacabd23385727059b61a8f20181485b05" title="Filter an image using a floating-point kernel. ">cpl_image_filter()</a> using CPL_FILTER_LINEAR and CPL_BORDER_FILTER.</dd></dl>
<p>References <a class="el" href="group__cpl__filter.html#ggaa315d358382b534d5a2ef030f8eda2aca820569d4c7243b26d13764a011b28391">CPL_BORDER_FILTER</a>, <a class="el" href="group__cpl__error.html#gafb123879d8683c6d63681f433dc19bd0">cpl_ensure</a>, <a class="el" href="group__cpl__error.html#gga49a0c316d52d2afbfd9fd94b95344900a7b054cf7927d1bd0a9b3693a6715be84">CPL_ERROR_NULL_INPUT</a>, <a class="el" href="group__cpl__filter.html#ggaf183188640e935882ac563db92f8d372ac7fba3732cdb2dd5ffc5fc39058651bd">CPL_FILTER_LINEAR</a>, <a class="el" href="group__cpl__image.html#ga272e4e004716651b94d6d36e575b6841">cpl_image_delete()</a>, <a class="el" href="group__cpl__image.html#gacabd23385727059b61a8f20181485b05">cpl_image_filter()</a>, and <a class="el" href="group__cpl__image.html#gab95562a5dbc2372f52ce644c50bfcd26">cpl_image_new()</a>.</p>
</div>
</div>
<a class="anchor" id="ga09c5ec8125d5ad2d14824106ac78061c"></a>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname"><a class="el" href="group__cpl__error.html#ga44b4287e8a7a22122b94c220a1dd9459">cpl_error_code</a> cpl_image_filter_mask </td>
<td>(</td>
<td class="paramtype">cpl_image * </td>
<td class="paramname"><em>self</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">const cpl_image * </td>
<td class="paramname"><em>other</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">const cpl_mask * </td>
<td class="paramname"><em>kernel</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype"><a class="el" href="group__cpl__filter.html#ga4469cc9402438f791bbcccae762e0b2f">cpl_filter_mode</a> </td>
<td class="paramname"><em>filter</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype"><a class="el" href="group__cpl__filter.html#ga9d26d8ff5e92c0df5fae1289fae9ecbc">cpl_border_mode</a> </td>
<td class="paramname"><em>border</em> </td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td>
</tr>
</table>
</div><div class="memdoc">
<p>Filter an image using a binary kernel. </p>
<dl class="params"><dt>Parameters</dt><dd>
<table class="params">
<tr><td class="paramname">self</td><td>Pre-allocated image to hold the filtered result </td></tr>
<tr><td class="paramname">other</td><td>Image to filter </td></tr>
<tr><td class="paramname">kernel</td><td>Pixels to use, if set to CPL_BINARY_1 </td></tr>
<tr><td class="paramname">filter</td><td>CPL_FILTER_MEDIAN, CPL_FILTER_AVERAGE and more, see below </td></tr>
<tr><td class="paramname">border</td><td>CPL_BORDER_FILTER and more, see below </td></tr>
</table>
</dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>CPL_ERROR_NONE or the relevant CPL error code</dd></dl>
<p>The kernel must have an odd number of rows and an odd number of columns.</p>
<p>The two images must have equal dimensions, except for the border mode CPL_BORDER_CROP, where the input image must have 2 * hx columns more and 2 * hy rows more than the output image, where the kernel has size (1 + 2 * hx, 1 + 2 * hy).</p>
<p>In standard deviation filtering the kernel must have at least two elements set to CPL_BINARY_1, for others at least one element must be set to CPL_BINARY_1.</p>
<p>Supported pixel types are: CPL_TYPE_INT, CPL_TYPE_FLOAT and CPL_TYPE_DOUBLE.</p>
<p>In median filtering the two images must have the same pixel type.</p>
<p>In standard deviation filtering a filtered pixel must be computed from at least two input pixels, for other filters at least one input pixel must be available. Output pixels where this is not the case are set to zero and flagged as rejected.</p>
<p>In-place filtering is not supported.</p>
<p>Supported modes:</p>
<p>CPL_FILTER_MEDIAN: CPL_BORDER_FILTER, CPL_BORDER_COPY, CPL_BORDER_NOP, CPL_BORDER_CROP.</p>
<p>CPL_FILTER_AVERAGE: CPL_BORDER_FILTER</p>
<p>CPL_FILTER_AVERAGE_FAST: CPL_BORDER_FILTER</p>
<p>CPL_FILTER_STDEV: CPL_BORDER_FILTER</p>
<p>CPL_FILTER_STDEV_FAST: CPL_BORDER_FILTER</p>
<dl class="section user"><dt>Example:</dt><dd><div class="fragment"><div class="line"><a name="l00001"></a><span class="lineno"> 1</span> cpl_image_filter_mask(filtered, raw, kernel, CPL_FILTER_MEDIAN,</div>
<div class="line"><a name="l00002"></a><span class="lineno"> 2</span>  CPL_BORDER_FILTER);</div>
</div><!-- fragment --></dd></dl>
<p>To shift an image 1 pixel up and 1 pixel right with the CPL_FILTER_MEDIAN filter and a 3 by 3 kernel, one should set to CPL_BINARY_1 the bottom leftmost kernel element - at row 3, column 1, i.e. </p><div class="fragment"><div class="line"><a name="l00001"></a><span class="lineno"> 1</span> cpl_mask * kernel = cpl_mask_new(3, 3);</div>
<div class="line"><a name="l00002"></a><span class="lineno"> 2</span> cpl_mask_set(kernel, 1, 1);</div>
</div><!-- fragment --><p>The kernel required to do a 5 x 5 median filtering is created like this: </p><div class="fragment"><div class="line"><a name="l00001"></a><span class="lineno"> 1</span> cpl_mask * kernel = cpl_mask_new(5, 5); </div>
<div class="line"><a name="l00002"></a><span class="lineno"> 2</span> cpl_mask_not(kernel);</div>
</div><!-- fragment --><p>Possible <a class="el" href="group__cpl__error.html#ga49a0c316d52d2afbfd9fd94b95344900" title="Available error codes. ">_cpl_error_code_</a> set in this function:</p><ul>
<li>CPL_ERROR_NULL_INPUT if an input pointer is NULL.</li>
<li>CPL_ERROR_ILLEGAL_INPUT if the kernel has a side of even length.</li>
<li>CPL_ERROR_DATA_NOT_FOUND If the kernel is empty, or in case of CPL_FILTER_STDEV if the kernel has only one element set to CPL_BINARY_1.</li>
<li>CPL_ERROR_ACCESS_OUT_OF_RANGE If the kernel has a side longer than the input image.</li>
<li>CPL_ERROR_INVALID_TYPE if the passed image type is not supported.</li>
<li>CPL_ERROR_TYPE_MISMATCH if in median filtering the input and output pixel types differ.</li>
<li>CPL_ERROR_INCOMPATIBLE_INPUT If the input and output images have incompatible sizes.</li>
<li>CPL_ERROR_UNSUPPORTED_MODE If the output pixel buffer overlaps the input one (or the kernel), or the border/filter mode is unsupported. </li>
</ul>
<p>References <a class="el" href="group__cpl__filter.html#ggaa315d358382b534d5a2ef030f8eda2aca3cf424290882dea1f05a8b1ff165fcdd">CPL_BORDER_CROP</a>, <a class="el" href="group__cpl__filter.html#ggaa315d358382b534d5a2ef030f8eda2aca820569d4c7243b26d13764a011b28391">CPL_BORDER_FILTER</a>, <a class="el" href="group__cpl__error.html#gaf18e95fbc6fc2cfde2a2cc8a0920b12d">cpl_ensure_code</a>, <a class="el" href="group__cpl__error.html#gga49a0c316d52d2afbfd9fd94b95344900a0d916ea6a7e198a74863ecd9ea03d733">CPL_ERROR_ACCESS_OUT_OF_RANGE</a>, <a class="el" href="group__cpl__error.html#gga49a0c316d52d2afbfd9fd94b95344900a5b82c7780a2a8a79dfafcac70717b830">CPL_ERROR_DATA_NOT_FOUND</a>, <a class="el" href="group__cpl__error.html#gga49a0c316d52d2afbfd9fd94b95344900ae6ab32df318c1af9afcddcb8249cad51">CPL_ERROR_ILLEGAL_INPUT</a>, <a class="el" href="group__cpl__error.html#gga49a0c316d52d2afbfd9fd94b95344900a67b9f44eb1db1ab12f0575dbb878c0fd">CPL_ERROR_INCOMPATIBLE_INPUT</a>, <a class="el" href="group__cpl__error.html#gga49a0c316d52d2afbfd9fd94b95344900a7907a24014a3a45aebe5ee1842f0c6f3">CPL_ERROR_INVALID_TYPE</a>, <a class="el" href="group__cpl__error.html#gga49a0c316d52d2afbfd9fd94b95344900a0239c1c63e9d21e98e45221a3ad60406">CPL_ERROR_NONE</a>, <a class="el" href="group__cpl__error.html#gga49a0c316d52d2afbfd9fd94b95344900a7b054cf7927d1bd0a9b3693a6715be84">CPL_ERROR_NULL_INPUT</a>, <a class="el" href="group__cpl__error.html#gga49a0c316d52d2afbfd9fd94b95344900a2e9d240c9641519323b3d6d616952482">CPL_ERROR_TYPE_MISMATCH</a>, <a class="el" href="group__cpl__error.html#gga49a0c316d52d2afbfd9fd94b95344900a74ef8e37f3412e85cfc22840d13bdd0c">CPL_ERROR_UNSUPPORTED_MODE</a>, <a class="el" href="group__cpl__filter.html#ggaf183188640e935882ac563db92f8d372ab82c81f1d268a32ce9cf9a8227ffcacb">CPL_FILTER_AVERAGE</a>, <a class="el" href="group__cpl__filter.html#ggaf183188640e935882ac563db92f8d372aaf6e8946c15d9d6567e9f1635763c240">CPL_FILTER_AVERAGE_FAST</a>, <a class="el" href="group__cpl__filter.html#ggaf183188640e935882ac563db92f8d372aee652025fd8524c6369fcb0a8bf64c2a">CPL_FILTER_MEDIAN</a>, <a class="el" href="group__cpl__filter.html#ggaf183188640e935882ac563db92f8d372a1af6f79fd4b681c10f31639ee2063a1b">CPL_FILTER_STDEV</a>, <a class="el" href="group__cpl__filter.html#ggaf183188640e935882ac563db92f8d372a8f57706a85cc509b1a022481e9baa264">CPL_FILTER_STDEV_FAST</a>, <a class="el" href="group__cpl__image.html#ga13a42c86638d087b5a097c87e36ea7bc">cpl_image_copy()</a>, <a class="el" href="group__cpl__image.html#ga0b497875edfee08e540e69c2baea1ab4">cpl_image_get_data()</a>, <a class="el" href="group__cpl__image.html#ga670404d662c8420249028acc8025121b">cpl_image_get_data_const()</a>, <a class="el" href="group__cpl__image.html#gab5a6bc059aa1d38c37ab5852b5170e45">cpl_image_get_size_x()</a>, <a class="el" href="group__cpl__image.html#gaf3495f9be1d6892cfed9c5232ccee350">cpl_image_get_size_y()</a>, <a class="el" href="group__cpl__image.html#ga17f97e60794f88e7f06b85cccbecc132">cpl_image_get_type()</a>, <a class="el" href="group__cpl__mask.html#ga462a148e501731a123e573e6f818f8c2">cpl_mask_get_data()</a>, <a class="el" href="group__cpl__mask.html#gac9ab11af7ef4ff0b8424141271fd685b">cpl_mask_get_data_const()</a>, <a class="el" href="group__cpl__mask.html#gaefb412dd754146bc78faf7356209a0e6">cpl_mask_get_size_x()</a>, <a class="el" href="group__cpl__mask.html#ga2c515a5ba20381c54c0496c1b9769495">cpl_mask_get_size_y()</a>, <a class="el" href="group__cpl__mask.html#ga0009ad4c6aed58343b09e47ef38ef9e4">cpl_mask_is_empty()</a>, <a class="el" href="group__cpl__mask.html#ga7f9767654033c50dd87d31cbde060593">cpl_mask_wrap()</a>, <a class="el" href="group__cpl__type.html#gga3f03371e201544e9115b40065e47f086a4923f03f3a673edd344b0d81835ca69e">CPL_TYPE_DOUBLE</a>, <a class="el" href="group__cpl__type.html#gga3f03371e201544e9115b40065e47f086aa44c37e26b9040a96e3a49b405946942">CPL_TYPE_FLOAT</a>, <a class="el" href="group__cpl__type.html#ga5098a0d41d12e907e5cacce2052a345e">cpl_type_get_sizeof()</a>, and <a class="el" href="group__cpl__type.html#gga3f03371e201544e9115b40065e47f086ae333db5ccea0813ccd892525b4ba1345">CPL_TYPE_INT</a>.</p>
<p>Referenced by <a class="el" href="group__cpl__geom__img.html#ga135df3510913add18d5550a8aa356923">cpl_geom_img_offset_fine()</a>, <a class="el" href="group__cpl__image.html#ga52d2e5aa1ce2c9bc3c560209e344ba40">cpl_image_filter_median()</a>, <a class="el" href="group__cpl__image.html#ga19d4e60abbeaf99717d3985c76aaadbd">cpl_image_filter_stdev()</a>, and <a class="el" href="group__cpl__vector.html#gae804fc37f617a11d5c5e73f901c55f36">cpl_vector_filter_median_create()</a>.</p>
</div>
</div>
<a class="anchor" id="ga52d2e5aa1ce2c9bc3c560209e344ba40"></a>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">cpl_image* cpl_image_filter_median </td>
<td>(</td>
<td class="paramtype">const cpl_image * </td>
<td class="paramname"><em>in</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">const cpl_matrix * </td>
<td class="paramname"><em>ker</em> </td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td>
</tr>
</table>
</div><div class="memdoc">
<p>Apply a spatial median filter to an image. </p>
<dl class="params"><dt>Parameters</dt><dd>
<table class="params">
<tr><td class="paramname">in</td><td>Image to filter. </td></tr>
<tr><td class="paramname">ker</td><td>the kernel </td></tr>
</table>
</dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>1 newly allocated image or NULL in error case </dd></dl>
<dl class="section see"><dt>See also</dt><dd><a class="el" href="group__cpl__image.html#ga09c5ec8125d5ad2d14824106ac78061c" title="Filter an image using a binary kernel. ">cpl_image_filter_mask</a> </dd></dl>
<dl class="deprecated"><dt><b><a class="el" href="deprecated.html#_deprecated000006">Deprecated:</a></b></dt><dd>Replace this call with <a class="el" href="group__cpl__image.html#ga09c5ec8125d5ad2d14824106ac78061c" title="Filter an image using a binary kernel. ">cpl_image_filter_mask()</a> using CPL_FILTER_MEDIAN and CPL_BORDER_FILTER.</dd></dl>
<p>References <a class="el" href="group__cpl__filter.html#ggaa315d358382b534d5a2ef030f8eda2aca820569d4c7243b26d13764a011b28391">CPL_BORDER_FILTER</a>, <a class="el" href="group__cpl__error.html#gafb123879d8683c6d63681f433dc19bd0">cpl_ensure</a>, <a class="el" href="group__cpl__error.html#ga724de575c31ddf40f42786306f9dbdcb">cpl_error_get_code()</a>, <a class="el" href="group__cpl__error.html#gga49a0c316d52d2afbfd9fd94b95344900a7b054cf7927d1bd0a9b3693a6715be84">CPL_ERROR_NULL_INPUT</a>, <a class="el" href="group__cpl__filter.html#ggaf183188640e935882ac563db92f8d372aee652025fd8524c6369fcb0a8bf64c2a">CPL_FILTER_MEDIAN</a>, <a class="el" href="group__cpl__image.html#ga272e4e004716651b94d6d36e575b6841">cpl_image_delete()</a>, <a class="el" href="group__cpl__image.html#ga09c5ec8125d5ad2d14824106ac78061c">cpl_image_filter_mask()</a>, <a class="el" href="group__cpl__image.html#gab95562a5dbc2372f52ce644c50bfcd26">cpl_image_new()</a>, and <a class="el" href="group__cpl__mask.html#gaa312160718b8fdc24de0cd755cf35224">cpl_mask_delete()</a>.</p>
</div>
</div>
<a class="anchor" id="ga22149f62af2c9c0c02ac7a5bf9c259c1"></a>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">cpl_image* cpl_image_filter_morpho </td>
<td>(</td>
<td class="paramtype">const cpl_image * </td>
<td class="paramname"><em>in</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">const cpl_matrix * </td>
<td class="paramname"><em>ker</em> </td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td>
</tr>
</table>
</div><div class="memdoc">
<p>Filter an image in spatial domain with a morpho kernel. </p>
<dl class="params"><dt>Parameters</dt><dd>
<table class="params">
<tr><td class="paramname">in</td><td>Image to filter. </td></tr>
<tr><td class="paramname">ker</td><td>Filter definition. </td></tr>
</table>
</dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>1 newly allocated image or NULL in error case. </dd></dl>
<dl class="section see"><dt>See also</dt><dd><a class="el" href="group__cpl__image.html#gacabd23385727059b61a8f20181485b05" title="Filter an image using a floating-point kernel. ">cpl_image_filter()</a> </dd></dl>
<dl class="deprecated"><dt><b><a class="el" href="deprecated.html#_deprecated000005">Deprecated:</a></b></dt><dd>Replace this call with <a class="el" href="group__cpl__image.html#gacabd23385727059b61a8f20181485b05" title="Filter an image using a floating-point kernel. ">cpl_image_filter()</a> using CPL_FILTER_MORPHO and CPL_BORDER_FILTER.</dd></dl>
<p>References <a class="el" href="group__cpl__filter.html#ggaa315d358382b534d5a2ef030f8eda2aca820569d4c7243b26d13764a011b28391">CPL_BORDER_FILTER</a>, <a class="el" href="group__cpl__error.html#gafb123879d8683c6d63681f433dc19bd0">cpl_ensure</a>, <a class="el" href="group__cpl__error.html#gga49a0c316d52d2afbfd9fd94b95344900a7b054cf7927d1bd0a9b3693a6715be84">CPL_ERROR_NULL_INPUT</a>, <a class="el" href="group__cpl__filter.html#ggaf183188640e935882ac563db92f8d372ae6519292f6fa9de803367a18753c4771">CPL_FILTER_MORPHO</a>, <a class="el" href="group__cpl__image.html#ga272e4e004716651b94d6d36e575b6841">cpl_image_delete()</a>, <a class="el" href="group__cpl__image.html#gacabd23385727059b61a8f20181485b05">cpl_image_filter()</a>, and <a class="el" href="group__cpl__image.html#gab95562a5dbc2372f52ce644c50bfcd26">cpl_image_new()</a>.</p>
</div>
</div>
<a class="anchor" id="ga19d4e60abbeaf99717d3985c76aaadbd"></a>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">cpl_image* cpl_image_filter_stdev </td>
<td>(</td>
<td class="paramtype">const cpl_image * </td>
<td class="paramname"><em>in</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">const cpl_matrix * </td>
<td class="paramname"><em>ker</em> </td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td>
</tr>
</table>
</div><div class="memdoc">
<p>Standard deviation filter. </p>
<dl class="params"><dt>Parameters</dt><dd>
<table class="params">
<tr><td class="paramname">in</td><td>input image </td></tr>
<tr><td class="paramname">ker</td><td>the kernel </td></tr>
</table>
</dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>a newly allocated filtered image or NULL on error </dd></dl>
<dl class="section see"><dt>See also</dt><dd><a class="el" href="group__cpl__image.html#ga09c5ec8125d5ad2d14824106ac78061c" title="Filter an image using a binary kernel. ">cpl_image_filter_mask</a> </dd></dl>
<dl class="deprecated"><dt><b><a class="el" href="deprecated.html#_deprecated000007">Deprecated:</a></b></dt><dd>Replace this call with <a class="el" href="group__cpl__image.html#ga09c5ec8125d5ad2d14824106ac78061c" title="Filter an image using a binary kernel. ">cpl_image_filter_mask()</a> using CPL_FILTER_STDEV and CPL_BORDER_FILTER.</dd></dl>
<p>References <a class="el" href="group__cpl__filter.html#ggaa315d358382b534d5a2ef030f8eda2aca820569d4c7243b26d13764a011b28391">CPL_BORDER_FILTER</a>, <a class="el" href="group__cpl__error.html#gafb123879d8683c6d63681f433dc19bd0">cpl_ensure</a>, <a class="el" href="group__cpl__error.html#ga724de575c31ddf40f42786306f9dbdcb">cpl_error_get_code()</a>, <a class="el" href="group__cpl__error.html#gga49a0c316d52d2afbfd9fd94b95344900a7b054cf7927d1bd0a9b3693a6715be84">CPL_ERROR_NULL_INPUT</a>, <a class="el" href="group__cpl__filter.html#ggaf183188640e935882ac563db92f8d372a1af6f79fd4b681c10f31639ee2063a1b">CPL_FILTER_STDEV</a>, <a class="el" href="group__cpl__image.html#ga272e4e004716651b94d6d36e575b6841">cpl_image_delete()</a>, <a class="el" href="group__cpl__image.html#ga09c5ec8125d5ad2d14824106ac78061c">cpl_image_filter_mask()</a>, <a class="el" href="group__cpl__image.html#gab95562a5dbc2372f52ce644c50bfcd26">cpl_image_new()</a>, <a class="el" href="group__cpl__mask.html#gaa312160718b8fdc24de0cd755cf35224">cpl_mask_delete()</a>, <a class="el" href="group__cpl__mask.html#gaefb412dd754146bc78faf7356209a0e6">cpl_mask_get_size_x()</a>, and <a class="el" href="group__cpl__mask.html#ga2c515a5ba20381c54c0496c1b9769495">cpl_mask_get_size_y()</a>.</p>
</div>
</div>
<a class="anchor" id="ga3cee6b4b3544f5e44d246d31731fedc9"></a>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname"><a class="el" href="group__cpl__error.html#ga44b4287e8a7a22122b94c220a1dd9459">cpl_error_code</a> cpl_image_fit_gaussian </td>
<td>(</td>
<td class="paramtype">const cpl_image * </td>
<td class="paramname"><em>im</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype"><a class="el" href="group__cpl__type.html#gacc431432a4fedf19ec6f7668dda3fbf0">cpl_size</a> </td>
<td class="paramname"><em>xpos</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype"><a class="el" href="group__cpl__type.html#gacc431432a4fedf19ec6f7668dda3fbf0">cpl_size</a> </td>
<td class="paramname"><em>ypos</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype"><a class="el" href="group__cpl__type.html#gacc431432a4fedf19ec6f7668dda3fbf0">cpl_size</a> </td>
<td class="paramname"><em>size</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">double * </td>
<td class="paramname"><em>norm</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">double * </td>
<td class="paramname"><em>xcen</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">double * </td>
<td class="paramname"><em>ycen</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">double * </td>
<td class="paramname"><em>sig_x</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">double * </td>
<td class="paramname"><em>sig_y</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">double * </td>
<td class="paramname"><em>fwhm_x</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">double * </td>
<td class="paramname"><em>fwhm_y</em> </td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td>
</tr>
</table>
</div><div class="memdoc">
<p>Apply a gaussian fit on an image sub window. </p>
<dl class="params"><dt>Parameters</dt><dd>
<table class="params">
<tr><td class="paramname">im</td><td>the input image </td></tr>
<tr><td class="paramname">xpos</td><td>the x position of the center (1 for the first pixel) </td></tr>
<tr><td class="paramname">ypos</td><td>the y position of the center (1 for the first pixel) </td></tr>
<tr><td class="paramname">size</td><td>the window size in pixels, at least 4 </td></tr>
<tr><td class="paramname">norm</td><td>the norm of the gaussian or NULL </td></tr>
<tr><td class="paramname">xcen</td><td>the x center of the gaussian or NULL </td></tr>
<tr><td class="paramname">ycen</td><td>the y center of the gaussian or NULL </td></tr>
<tr><td class="paramname">sig_x</td><td>the semi-major axis of the gaussian or NULL </td></tr>
<tr><td class="paramname">sig_y</td><td>the semi-minor axis of the gaussian or NULL </td></tr>
<tr><td class="paramname">fwhm_x</td><td>the FHHM in x or NULL </td></tr>
<tr><td class="paramname">fwhm_y</td><td>the FHHM in y or NULL </td></tr>
</table>
</dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>the <a class="el" href="group__cpl__error.html#ga49a0c316d52d2afbfd9fd94b95344900" title="Available error codes. ">_cpl_error_code_</a> or CPL_ERROR_NONE </dd></dl>
<dl class="section see"><dt>See also</dt><dd><a class="el" href="group__cpl__fit.html#ga8004d897c449d503c56f14ca99cf475b" title="Fit a 2D gaussian to image values. ">cpl_fit_image_gaussian()</a> </dd>
<dd>
<a class="el" href="group__cpl__image.html#gaa81c4cf5dca4516e8423dde705cff48b" title="Compute an image quality estimation for an object. ">cpl_image_iqe()</a> </dd></dl>
<dl class="deprecated"><dt><b><a class="el" href="deprecated.html#_deprecated000003">Deprecated:</a></b></dt><dd>If you need a 2D gaussian fit please use the function <em><a class="el" href="group__cpl__fit.html#ga8004d897c449d503c56f14ca99cf475b" title="Fit a 2D gaussian to image values. ">cpl_fit_image_gaussian()</a></em>. Please note that on CPL versions earlier than 5.1.0 this function was wrongly documented: the parameters <em>sig_x</em> and <em>sig_y</em> were defined as "the sigma in x (or y) of the gaussian", while actually they returned the semi-major and semi-minor axes of the gaussian distribution at 1-sigma. <b><em>PLEASE NOTE THAT IF YOU USED THIS FUNCTION FOR DETERMINING THE SPREAD OF A DISTRIBUTION ALONG THE X DIRECTION, THIS WAS VERY LIKELY OVERESTIMATED</em></b> (because <em>sig_x</em> was always assigned the semi-major axis of the distribution ignoring the rotation), <b><em>WHILE THE SPREAD ALONG THE Y DIRECTION WOULD BE UNDERESTIMATED</em></b>. In addition to that, even with circular distributions this function may lead to an underestimation of <em>sig_x</em> and <em>sig_y</em> (up to 25% underestimation in the case of noiseless data with a box 4 times the sigma, 1% underestimation in the case of noiseless data with a box 7 times the sigma). This latter problem is related to the function <em><a class="el" href="group__cpl__image.html#gaa81c4cf5dca4516e8423dde705cff48b" title="Compute an image quality estimation for an object. ">cpl_image_iqe()</a></em>.</dd></dl>
<p>This function is only acceptable for determining the position of a peak. </p>
<p>References <a class="el" href="group__cpl__bivector.html#gab49cf8bcea934646b96a4d4e476d7e54">cpl_bivector_delete()</a>, <a class="el" href="group__cpl__bivector.html#ga1f13e7e98cc006f90242e339d7542776">cpl_bivector_get_x_data()</a>, <a class="el" href="group__cpl__error.html#gaf18e95fbc6fc2cfde2a2cc8a0920b12d">cpl_ensure_code</a>, <a class="el" href="group__cpl__error.html#gga49a0c316d52d2afbfd9fd94b95344900ae6ab32df318c1af9afcddcb8249cad51">CPL_ERROR_ILLEGAL_INPUT</a>, <a class="el" href="group__cpl__error.html#gga49a0c316d52d2afbfd9fd94b95344900a0239c1c63e9d21e98e45221a3ad60406">CPL_ERROR_NONE</a>, <a class="el" href="group__cpl__error.html#gga49a0c316d52d2afbfd9fd94b95344900a7b054cf7927d1bd0a9b3693a6715be84">CPL_ERROR_NULL_INPUT</a>, <a class="el" href="group__cpl__image.html#gad986c25e9250952770f854022e1ffb24">cpl_image_cast()</a>, <a class="el" href="group__cpl__image.html#ga272e4e004716651b94d6d36e575b6841">cpl_image_delete()</a>, <a class="el" href="group__cpl__image.html#ga17f97e60794f88e7f06b85cccbecc132">cpl_image_get_type()</a>, <a class="el" href="group__cpl__image.html#gaa81c4cf5dca4516e8423dde705cff48b">cpl_image_iqe()</a>, <a class="el" href="group__cpl__math.html#ga23ffb14de01e3e1a5392d5f7c11a686f">CPL_MATH_2PI</a>, <a class="el" href="group__cpl__math.html#ga66d7e78219461bc110192a95693646d4">CPL_MATH_FWHM_SIG</a>, and <a class="el" href="group__cpl__type.html#gga3f03371e201544e9115b40065e47f086aa44c37e26b9040a96e3a49b405946942">CPL_TYPE_FLOAT</a>.</p>
</div>
</div>
<a class="anchor" id="gad56b75f0a57369da35456feb764f567b"></a>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname"><a class="el" href="group__cpl__error.html#ga44b4287e8a7a22122b94c220a1dd9459">cpl_error_code</a> cpl_image_flip </td>
<td>(</td>
<td class="paramtype">cpl_image * </td>
<td class="paramname"><em>im</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">int </td>
<td class="paramname"><em>angle</em> </td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td>
</tr>
</table>
</div><div class="memdoc">
<p>Flip an image on a given mirror line. </p>
<dl class="params"><dt>Parameters</dt><dd>
<table class="params">
<tr><td class="paramname">im</td><td>the image to flip. </td></tr>
<tr><td class="paramname">angle</td><td>mirror line in polar coord. is theta = (PI/4) * angle </td></tr>
</table>
</dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>the <a class="el" href="group__cpl__error.html#ga49a0c316d52d2afbfd9fd94b95344900" title="Available error codes. ">_cpl_error_code_</a> or CPL_ERROR_NONE</dd></dl>
<p>This function operates locally on the pixel buffer.</p>
<p>angle can take one of the following values:</p><ul>
<li>0 (theta=0) to flip the image around the horizontal</li>
<li>1 (theta=pi/4) to flip the image around y=x</li>
<li>2 (theta=pi/2) to flip the image around the vertical</li>
<li>3 (theta=3pi/4) to flip the image around y=-x</li>
</ul>
<p>Images can be of type CPL_TYPE_INT, CPL_TYPE_FLOAT or CPL_TYPE_DOUBLE.</p>
<p>Possible <a class="el" href="group__cpl__error.html#ga49a0c316d52d2afbfd9fd94b95344900" title="Available error codes. ">_cpl_error_code_</a> set in this function:</p><ul>
<li>CPL_ERROR_NULL_INPUT if an input pointer is NULL</li>
<li>CPL_ERROR_ILLEGAL_INPUT if the angle is different from the allowed values</li>
<li>CPL_ERROR_INVALID_TYPE if the passed image type is not supported </li>
</ul>
<p>References <a class="el" href="group__cpl__error.html#gaf18e95fbc6fc2cfde2a2cc8a0920b12d">cpl_ensure_code</a>, <a class="el" href="group__cpl__error.html#gga49a0c316d52d2afbfd9fd94b95344900a7907a24014a3a45aebe5ee1842f0c6f3">CPL_ERROR_INVALID_TYPE</a>, <a class="el" href="group__cpl__error.html#gga49a0c316d52d2afbfd9fd94b95344900a0239c1c63e9d21e98e45221a3ad60406">CPL_ERROR_NONE</a>, <a class="el" href="group__cpl__error.html#gga49a0c316d52d2afbfd9fd94b95344900a7b054cf7927d1bd0a9b3693a6715be84">CPL_ERROR_NULL_INPUT</a>, and <a class="el" href="group__cpl__mask.html#gac5c6b63e393cf52d09101c6b731d0916">cpl_mask_flip()</a>.</p>
</div>
</div>
<a class="anchor" id="gacff07271c74fa513b507d886935abdc6"></a>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">double cpl_image_get </td>
<td>(</td>
<td class="paramtype">const cpl_image * </td>
<td class="paramname"><em>image</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype"><a class="el" href="group__cpl__type.html#gacc431432a4fedf19ec6f7668dda3fbf0">cpl_size</a> </td>
<td class="paramname"><em>xpos</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype"><a class="el" href="group__cpl__type.html#gacc431432a4fedf19ec6f7668dda3fbf0">cpl_size</a> </td>
<td class="paramname"><em>ypos</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">int * </td>
<td class="paramname"><em>pis_rejected</em> </td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td>
</tr>
</table>
</div><div class="memdoc">
<p>Get the value of a pixel at a given position. </p>
<dl class="params"><dt>Parameters</dt><dd>
<table class="params">
<tr><td class="paramname">image</td><td>Input image. </td></tr>
<tr><td class="paramname">xpos</td><td>Pixel x position (FITS convention, 1 for leftmost) </td></tr>
<tr><td class="paramname">ypos</td><td>Pixel y position (FITS convention, 1 for lowest) </td></tr>
<tr><td class="paramname">pis_rejected</td><td>1 if the pixel is bad, 0 if good, negative on error </td></tr>
</table>
</dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>The pixel value (cast to a double) or undefined if *pis_rejected</dd></dl>
<p>The return value is defined if the pixel is not flagged as rejected, i. e. when *pis_rejected == 0.</p>
<p>In case of an error, the <a class="el" href="group__cpl__error.html#ga49a0c316d52d2afbfd9fd94b95344900" title="Available error codes. ">_cpl_error_code_</a> code is set.</p>
<p>Images can be CPL_TYPE_FLOAT, CPL_TYPE_INT or CPL_TYPE_DOUBLE.</p>
<p>Possible <a class="el" href="group__cpl__error.html#ga49a0c316d52d2afbfd9fd94b95344900" title="Available error codes. ">_cpl_error_code_</a> set in this function:</p><ul>
<li>CPL_ERROR_NULL_INPUT if an input pointer is NULL</li>
<li>CPL_ERROR_ACCESS_OUT_OF_RANGE if the passed position is not in the image</li>
<li>CPL_ERROR_INVALID_TYPE if the image pixel type is not supported </li>
</ul>
<p>References <a class="el" href="group__cpl__error.html#gafb123879d8683c6d63681f433dc19bd0">cpl_ensure</a>, <a class="el" href="group__cpl__error.html#gga49a0c316d52d2afbfd9fd94b95344900a0d916ea6a7e198a74863ecd9ea03d733">CPL_ERROR_ACCESS_OUT_OF_RANGE</a>, <a class="el" href="group__cpl__error.html#gga49a0c316d52d2afbfd9fd94b95344900a7907a24014a3a45aebe5ee1842f0c6f3">CPL_ERROR_INVALID_TYPE</a>, and <a class="el" href="group__cpl__error.html#gga49a0c316d52d2afbfd9fd94b95344900a7b054cf7927d1bd0a9b3693a6715be84">CPL_ERROR_NULL_INPUT</a>.</p>
<p>Referenced by <a class="el" href="group__cpl__fit.html#ga8004d897c449d503c56f14ca99cf475b">cpl_fit_image_gaussian()</a>, <a class="el" href="group__cpl__image.html#ga4f350c4251a89dc2c6792faa1028cab8">cpl_image_dump_window()</a>, and <a class="el" href="group__cpl__image.html#gad26891c8556c11a731cdedaa5fbbb009">cpl_image_get_fwhm()</a>.</p>
</div>
</div>
<a class="anchor" id="gaefffa452a6a75e6779295239bfef871c"></a>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">double cpl_image_get_absflux </td>
<td>(</td>
<td class="paramtype">const cpl_image * </td>
<td class="paramname"><em>image</em></td><td>)</td>
<td></td>
</tr>
</table>
</div><div class="memdoc">
<p>Computes the sum of absolute values over an image. </p>
<dl class="params"><dt>Parameters</dt><dd>
<table class="params">
<tr><td class="paramname">image</td><td>input image. </td></tr>
</table>
</dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>the absolute flux (sum of |pixels|) value </dd></dl>
<dl class="section see"><dt>See also</dt><dd><a class="el" href="group__cpl__image.html#ga9767b78ea3e6318af12b28371356a2c0" title="computes minimum pixel value over an image. ">cpl_image_get_min()</a> </dd></dl>
<p>Referenced by <a class="el" href="group__cpl__image.html#gaa1a902191405d8bd33e1bc5b239dfef0">cpl_image_normalise()</a>.</p>
</div>
</div>
<a class="anchor" id="gacb3a17f03954315acdaeaf37de59ce9f"></a>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">double cpl_image_get_absflux_window </td>
<td>(</td>
<td class="paramtype">const cpl_image * </td>
<td class="paramname"><em>image</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype"><a class="el" href="group__cpl__type.html#gacc431432a4fedf19ec6f7668dda3fbf0">cpl_size</a> </td>
<td class="paramname"><em>llx</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype"><a class="el" href="group__cpl__type.html#gacc431432a4fedf19ec6f7668dda3fbf0">cpl_size</a> </td>
<td class="paramname"><em>lly</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype"><a class="el" href="group__cpl__type.html#gacc431432a4fedf19ec6f7668dda3fbf0">cpl_size</a> </td>
<td class="paramname"><em>urx</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype"><a class="el" href="group__cpl__type.html#gacc431432a4fedf19ec6f7668dda3fbf0">cpl_size</a> </td>
<td class="paramname"><em>ury</em> </td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td>
</tr>
</table>
</div><div class="memdoc">
<p>Computes the sum of absolute values over an image sub-window. </p>
<dl class="params"><dt>Parameters</dt><dd>
<table class="params">
<tr><td class="paramname">image</td><td>input image. </td></tr>
<tr><td class="paramname">llx</td><td>Lower left x position (FITS convention, 1 for leftmost) </td></tr>
<tr><td class="paramname">lly</td><td>Lower left y position (FITS convention, 1 for lowest) </td></tr>
<tr><td class="paramname">urx</td><td>Upper right x position (FITS convention) </td></tr>
<tr><td class="paramname">ury</td><td>Upper right y position (FITS convention) </td></tr>
</table>
</dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>the absolute flux (sum of |pixels|) value </dd></dl>
<dl class="section see"><dt>See also</dt><dd><a class="el" href="group__cpl__image.html#ga39838b28f7c62ae29ee082402a5e8ed6" title="computes minimum pixel value over an image sub-window. ">cpl_image_get_min_window()</a> </dd></dl>
</div>
</div>
<a class="anchor" id="gae9bede9669991943541a96e6921b4637"></a>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">cpl_mask* cpl_image_get_bpm </td>
<td>(</td>
<td class="paramtype">cpl_image * </td>
<td class="paramname"><em>img</em></td><td>)</td>
<td></td>
</tr>
</table>
</div><div class="memdoc">
<p>Gets the bad pixels map. </p>
<dl class="params"><dt>Parameters</dt><dd>
<table class="params">
<tr><td class="paramname">img</td><td>Image to query. </td></tr>
</table>
</dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>A pointer to the mask identifying the bad pixels or NULL.</dd></dl>
<p>The returned pointer refers to already allocated data. If the bad pixel map is NULL, an empty one is created.</p>
<p>Possible <a class="el" href="group__cpl__error.html#ga49a0c316d52d2afbfd9fd94b95344900" title="Available error codes. ">_cpl_error_code_</a> set in this function:</p><ul>
<li>CPL_ERROR_NULL_INPUT if an input pointer is NULL </li>
</ul>
<p>References <a class="el" href="group__cpl__error.html#gafb123879d8683c6d63681f433dc19bd0">cpl_ensure</a>, <a class="el" href="group__cpl__error.html#gga49a0c316d52d2afbfd9fd94b95344900a7b054cf7927d1bd0a9b3693a6715be84">CPL_ERROR_NULL_INPUT</a>, and <a class="el" href="group__cpl__mask.html#gab67918578893ea4a0e005cb4397f8754">cpl_mask_new()</a>.</p>
<p>Referenced by <a class="el" href="group__cpl__geom__img.html#ga8df5c11aeb84394817af6a0680c2859c">cpl_geom_img_offset_saa()</a>, and <a class="el" href="group__cpl__image.html#ga2596acf228f922542f4a1ff4f17d7e71">cpl_image_reject_from_mask()</a>.</p>
</div>
</div>
<a class="anchor" id="gaa199c6fc00ac1d83ed37fb9717e2c4bd"></a>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">const cpl_mask* cpl_image_get_bpm_const </td>
<td>(</td>
<td class="paramtype">const cpl_image * </td>
<td class="paramname"><em>img</em></td><td>)</td>
<td></td>
</tr>
</table>
</div><div class="memdoc">
<p>Gets the bad pixels map. </p>
<dl class="params"><dt>Parameters</dt><dd>
<table class="params">
<tr><td class="paramname">img</td><td>Image to query. </td></tr>
</table>
</dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>A pointer to the mask identifying the bad pixels or NULL. </dd></dl>
<dl class="section note"><dt>Note</dt><dd>NULL is returned if the image has no bad pixel map </dd></dl>
<dl class="section see"><dt>See also</dt><dd><a class="el" href="group__cpl__image.html#gae9bede9669991943541a96e6921b4637" title="Gets the bad pixels map. ">cpl_image_get_bpm</a></dd></dl>
<p>Possible <a class="el" href="group__cpl__error.html#ga49a0c316d52d2afbfd9fd94b95344900" title="Available error codes. ">_cpl_error_code_</a> set in this function:</p><ul>
<li>CPL_ERROR_NULL_INPUT if an input pointer is NULL </li>
</ul>
<p>References <a class="el" href="group__cpl__error.html#gafb123879d8683c6d63681f433dc19bd0">cpl_ensure</a>, and <a class="el" href="group__cpl__error.html#gga49a0c316d52d2afbfd9fd94b95344900a7b054cf7927d1bd0a9b3693a6715be84">CPL_ERROR_NULL_INPUT</a>.</p>
<p>Referenced by <a class="el" href="group__cpl__apertures.html#ga23b66826669fa90caafd5ad3060a116d">cpl_apertures_new_from_image()</a>, <a class="el" href="group__cpl__detector.html#ga83fd1a1d48eeeb444d6a1a84c6d5e2de">cpl_detector_interpolate_rejected()</a>, <a class="el" href="group__cpl__fit.html#gac3d906c5ea114812ee3ca7f8e9fa49b7">cpl_fit_imagelist_polynomial_window()</a>, <a class="el" href="group__cpl__geom__img.html#ga8df5c11aeb84394817af6a0680c2859c">cpl_geom_img_offset_saa()</a>, <a class="el" href="group__cpl__imagelist.html#ga27af298cfe9123948061d86c43877ad5">cpl_image_new_from_accepted()</a>, <a class="el" href="group__cpl__imagelist.html#ga279d1cfa700e3da60be0e569e56080c4">cpl_imagelist_cast()</a>, <a class="el" href="group__cpl__imagelist.html#ga7781fb428bbd12459bc8ec58ccbf855f">cpl_imagelist_collapse_create()</a>, <a class="el" href="group__cpl__imagelist.html#gaeb30a698e9bf61b0a52e240c2e2d4076">cpl_imagelist_empty()</a>, <a class="el" href="group__cpl__imagelist.html#gacd75e9eed1780f9b63807be2d2fd0803">cpl_imagelist_erase()</a>, <a class="el" href="group__cpl__imagelist.html#gad6bce4e990300800fa351fe73d0865b6">cpl_imagelist_set()</a>, and <a class="el" href="group__cpl__mask.html#ga876fa3873a09a7ed4a473432b399c9a2">cpl_mask_threshold_image()</a>.</p>
</div>
</div>
<a class="anchor" id="ga5cafcee0630dff8e90737e581b9095a2"></a>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">double cpl_image_get_centroid_x </td>
<td>(</td>
<td class="paramtype">const cpl_image * </td>
<td class="paramname"><em>image</em></td><td>)</td>
<td></td>
</tr>
</table>
</div><div class="memdoc">
<p>Computes the x centroid value over the whole image. </p>
<dl class="params"><dt>Parameters</dt><dd>
<table class="params">
<tr><td class="paramname">image</td><td>input image. </td></tr>
</table>
</dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>the x centroid value </dd></dl>
<dl class="section see"><dt>See also</dt><dd><a class="el" href="group__cpl__image.html#ga39838b28f7c62ae29ee082402a5e8ed6" title="computes minimum pixel value over an image sub-window. ">cpl_image_get_min_window()</a> </dd></dl>
</div>
</div>
<a class="anchor" id="ga2c3725313546156cf8100290e1268816"></a>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">double cpl_image_get_centroid_x_window </td>
<td>(</td>
<td class="paramtype">const cpl_image * </td>
<td class="paramname"><em>image</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype"><a class="el" href="group__cpl__type.html#gacc431432a4fedf19ec6f7668dda3fbf0">cpl_size</a> </td>
<td class="paramname"><em>llx</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype"><a class="el" href="group__cpl__type.html#gacc431432a4fedf19ec6f7668dda3fbf0">cpl_size</a> </td>
<td class="paramname"><em>lly</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype"><a class="el" href="group__cpl__type.html#gacc431432a4fedf19ec6f7668dda3fbf0">cpl_size</a> </td>
<td class="paramname"><em>urx</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype"><a class="el" href="group__cpl__type.html#gacc431432a4fedf19ec6f7668dda3fbf0">cpl_size</a> </td>
<td class="paramname"><em>ury</em> </td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td>
</tr>
</table>
</div><div class="memdoc">
<p>Computes the x centroid value over an image sub-window. </p>
<dl class="params"><dt>Parameters</dt><dd>
<table class="params">
<tr><td class="paramname">image</td><td>input image. </td></tr>
<tr><td class="paramname">llx</td><td>Lower left x position (FITS convention, 1 for leftmost) </td></tr>
<tr><td class="paramname">lly</td><td>Lower left y position (FITS convention, 1 for lowest) </td></tr>
<tr><td class="paramname">urx</td><td>Upper right x position (FITS convention) </td></tr>
<tr><td class="paramname">ury</td><td>Upper right y position (FITS convention) </td></tr>
</table>
</dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>the x centroid value </dd></dl>
<dl class="section see"><dt>See also</dt><dd><a class="el" href="group__cpl__image.html#ga39838b28f7c62ae29ee082402a5e8ed6" title="computes minimum pixel value over an image sub-window. ">cpl_image_get_min_window()</a> </dd></dl>
</div>
</div>
<a class="anchor" id="ga1ae1cd3e307d033692fc8d634afc85c0"></a>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">double cpl_image_get_centroid_y </td>
<td>(</td>
<td class="paramtype">const cpl_image * </td>
<td class="paramname"><em>image</em></td><td>)</td>
<td></td>
</tr>
</table>
</div><div class="memdoc">
<p>Computes the y centroid value over the whole image. </p>
<dl class="params"><dt>Parameters</dt><dd>
<table class="params">
<tr><td class="paramname">image</td><td>input image. </td></tr>
</table>
</dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>the y centroid value </dd></dl>
<dl class="section see"><dt>See also</dt><dd><a class="el" href="group__cpl__image.html#ga39838b28f7c62ae29ee082402a5e8ed6" title="computes minimum pixel value over an image sub-window. ">cpl_image_get_min_window()</a> </dd></dl>
</div>
</div>
<a class="anchor" id="gaf9ba926ded9715dc80a734f186231baf"></a>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">double cpl_image_get_centroid_y_window </td>
<td>(</td>
<td class="paramtype">const cpl_image * </td>
<td class="paramname"><em>image</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype"><a class="el" href="group__cpl__type.html#gacc431432a4fedf19ec6f7668dda3fbf0">cpl_size</a> </td>
<td class="paramname"><em>llx</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype"><a class="el" href="group__cpl__type.html#gacc431432a4fedf19ec6f7668dda3fbf0">cpl_size</a> </td>
<td class="paramname"><em>lly</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype"><a class="el" href="group__cpl__type.html#gacc431432a4fedf19ec6f7668dda3fbf0">cpl_size</a> </td>
<td class="paramname"><em>urx</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype"><a class="el" href="group__cpl__type.html#gacc431432a4fedf19ec6f7668dda3fbf0">cpl_size</a> </td>
<td class="paramname"><em>ury</em> </td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td>
</tr>
</table>
</div><div class="memdoc">
<p>Computes the y centroid value over an image sub-window. </p>
<dl class="params"><dt>Parameters</dt><dd>
<table class="params">
<tr><td class="paramname">image</td><td>input image. </td></tr>
<tr><td class="paramname">llx</td><td>Lower left x position (FITS convention, 1 for leftmost) </td></tr>
<tr><td class="paramname">lly</td><td>Lower left y position (FITS convention, 1 for lowest) </td></tr>
<tr><td class="paramname">urx</td><td>Upper right x position (FITS convention) </td></tr>
<tr><td class="paramname">ury</td><td>Upper right y position (FITS convention) </td></tr>
</table>
</dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>the y centroid value </dd></dl>
<dl class="section see"><dt>See also</dt><dd><a class="el" href="group__cpl__image.html#ga39838b28f7c62ae29ee082402a5e8ed6" title="computes minimum pixel value over an image sub-window. ">cpl_image_get_min_window()</a> </dd></dl>
</div>
</div>
<a class="anchor" id="ga3adcb937ee2f58e610ff65f8433a7126"></a>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">double complex cpl_image_get_complex </td>
<td>(</td>
<td class="paramtype">const cpl_image * </td>
<td class="paramname"><em>image</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype"><a class="el" href="group__cpl__type.html#gacc431432a4fedf19ec6f7668dda3fbf0">cpl_size</a> </td>
<td class="paramname"><em>xpos</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype"><a class="el" href="group__cpl__type.html#gacc431432a4fedf19ec6f7668dda3fbf0">cpl_size</a> </td>
<td class="paramname"><em>ypos</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">int * </td>
<td class="paramname"><em>pis_rejected</em> </td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td>
</tr>
</table>
</div><div class="memdoc">
<p>Get the value of a complex pixel at a given position. </p>
<dl class="params"><dt>Parameters</dt><dd>
<table class="params">
<tr><td class="paramname">image</td><td>Input complex image. </td></tr>
<tr><td class="paramname">xpos</td><td>Pixel x position (FITS convention, 1 for leftmost) </td></tr>
<tr><td class="paramname">ypos</td><td>Pixel y position (FITS convention, 1 for lowest) </td></tr>
<tr><td class="paramname">pis_rejected</td><td>1 if the pixel is bad, 0 if good, negative on error </td></tr>
</table>
</dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>The pixel value (cast to a double complex) or undefined if *pis_rejected </dd></dl>
<dl class="section see"><dt>See also</dt><dd><a class="el" href="group__cpl__image.html#gacff07271c74fa513b507d886935abdc6" title="Get the value of a pixel at a given position. ">cpl_image_get()</a> </dd></dl>
<dl class="section note"><dt>Note</dt><dd>This function is available iff the application includes complex.h</dd></dl>
<p>The return value is defined if the pixel is not flagged as rejected, i. e. when *pis_rejected == 0.</p>
<p>In case of an error, the <a class="el" href="group__cpl__error.html#ga49a0c316d52d2afbfd9fd94b95344900" title="Available error codes. ">_cpl_error_code_</a> code is set.</p>
<p>Possible <a class="el" href="group__cpl__error.html#ga49a0c316d52d2afbfd9fd94b95344900" title="Available error codes. ">_cpl_error_code_</a> set in this function:</p><ul>
<li>CPL_ERROR_NULL_INPUT if an input pointer is NULL</li>
<li>CPL_ERROR_ACCESS_OUT_OF_RANGE if the passed position is not in the image </li>
</ul>
<p>References <a class="el" href="group__cpl__error.html#gafb123879d8683c6d63681f433dc19bd0">cpl_ensure</a>, <a class="el" href="group__cpl__error.html#gga49a0c316d52d2afbfd9fd94b95344900a0d916ea6a7e198a74863ecd9ea03d733">CPL_ERROR_ACCESS_OUT_OF_RANGE</a>, <a class="el" href="group__cpl__error.html#gga49a0c316d52d2afbfd9fd94b95344900a7907a24014a3a45aebe5ee1842f0c6f3">CPL_ERROR_INVALID_TYPE</a>, and <a class="el" href="group__cpl__error.html#gga49a0c316d52d2afbfd9fd94b95344900a7b054cf7927d1bd0a9b3693a6715be84">CPL_ERROR_NULL_INPUT</a>.</p>
<p>Referenced by <a class="el" href="group__cpl__image.html#ga4f350c4251a89dc2c6792faa1028cab8">cpl_image_dump_window()</a>.</p>
</div>
</div>
<a class="anchor" id="ga0b497875edfee08e540e69c2baea1ab4"></a>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">void* cpl_image_get_data </td>
<td>(</td>
<td class="paramtype">cpl_image * </td>
<td class="paramname"><em>img</em></td><td>)</td>
<td></td>
</tr>
</table>
</div><div class="memdoc">
<p>Gets the pixel data. </p>
<dl class="params"><dt>Parameters</dt><dd>
<table class="params">
<tr><td class="paramname">img</td><td>Image to query. </td></tr>
</table>
</dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>A pointer to the image pixel data or NULL on error.</dd></dl>
<p>The returned pointer refers to already allocated data.</p>
<p>Possible <a class="el" href="group__cpl__error.html#ga49a0c316d52d2afbfd9fd94b95344900" title="Available error codes. ">_cpl_error_code_</a> set in this function:</p><ul>
<li>CPL_ERROR_NULL_INPUT if an input pointer is NULL </li>
</ul>
<p>References <a class="el" href="group__cpl__error.html#gafb123879d8683c6d63681f433dc19bd0">cpl_ensure</a>, and <a class="el" href="group__cpl__error.html#gga49a0c316d52d2afbfd9fd94b95344900a7b054cf7927d1bd0a9b3693a6715be84">CPL_ERROR_NULL_INPUT</a>.</p>
<p>Referenced by <a class="el" href="group__cpl__detector.html#ga83fd1a1d48eeeb444d6a1a84c6d5e2de">cpl_detector_interpolate_rejected()</a>, <a class="el" href="group__cpl__image.html#ga13a42c86638d087b5a097c87e36ea7bc">cpl_image_copy()</a>, <a class="el" href="group__cpl__image.html#gacabd23385727059b61a8f20181485b05">cpl_image_filter()</a>, and <a class="el" href="group__cpl__image.html#ga09c5ec8125d5ad2d14824106ac78061c">cpl_image_filter_mask()</a>.</p>
</div>
</div>
<a class="anchor" id="ga670404d662c8420249028acc8025121b"></a>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">const void* cpl_image_get_data_const </td>
<td>(</td>
<td class="paramtype">const cpl_image * </td>
<td class="paramname"><em>img</em></td><td>)</td>
<td></td>
</tr>
</table>
</div><div class="memdoc">
<p>Gets the pixel data. </p>
<dl class="params"><dt>Parameters</dt><dd>
<table class="params">
<tr><td class="paramname">img</td><td>Image to query. </td></tr>
</table>
</dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>A pointer to the image pixel data or NULL on error. </dd></dl>
<dl class="section see"><dt>See also</dt><dd><a class="el" href="group__cpl__image.html#ga0b497875edfee08e540e69c2baea1ab4" title="Gets the pixel data. ">cpl_image_get_data</a> </dd></dl>
<p>References <a class="el" href="group__cpl__error.html#gafb123879d8683c6d63681f433dc19bd0">cpl_ensure</a>, and <a class="el" href="group__cpl__error.html#gga49a0c316d52d2afbfd9fd94b95344900a7b054cf7927d1bd0a9b3693a6715be84">CPL_ERROR_NULL_INPUT</a>.</p>
<p>Referenced by <a class="el" href="group__cpl__image.html#gacabd23385727059b61a8f20181485b05">cpl_image_filter()</a>, <a class="el" href="group__cpl__image.html#ga09c5ec8125d5ad2d14824106ac78061c">cpl_image_filter_mask()</a>, and <a class="el" href="group__cpl__mask.html#ga876fa3873a09a7ed4a473432b399c9a2">cpl_mask_threshold_image()</a>.</p>
</div>
</div>
<a class="anchor" id="ga8a13105cf06807666c2a59ddd249ace7"></a>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">double* cpl_image_get_data_double </td>
<td>(</td>
<td class="paramtype">cpl_image * </td>
<td class="paramname"><em>img</em></td><td>)</td>
<td></td>
</tr>
</table>
</div><div class="memdoc">
<p>Get the data as a double array. </p>
<dl class="params"><dt>Parameters</dt><dd>
<table class="params">
<tr><td class="paramname">img</td><td>a cpl_image object </td></tr>
</table>
</dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>pointer to the double data array or NULL on error.</dd></dl>
<p>The returned pointer refers to already allocated data.</p>
<p>The pixels are stored in a one dimensional array. The pixel value PIXVAL at position (i, j) in the image - (0, 0) is the lower left pixel, i gives the column position from left to right, j gives the row position from bottom to top - is given by : PIXVAL = array[i + j*nx]; where nx is the x size of the image and array is the data array returned by this function. array can be used to access or modify the pixel value in the image.</p>
<p>Possible <a class="el" href="group__cpl__error.html#ga49a0c316d52d2afbfd9fd94b95344900" title="Available error codes. ">_cpl_error_code_</a> set in this function:</p><ul>
<li>CPL_ERROR_NULL_INPUT if an input pointer is NULL</li>
<li>CPL_ERROR_TYPE_MISMATCH if the passed image type is not double </li>
</ul>
<p>Referenced by <a class="el" href="group__cpl__image.html#ga3a2ac9628c7dd3d8bc8355980474af72">cpl_image_fill_jacobian()</a>, <a class="el" href="group__cpl__image.html#ga9da9342bdd22b4db42abd6cdf32dd5c3">cpl_image_fill_jacobian_polynomial()</a>, and <a class="el" href="group__cpl__plot.html#gac52d4503c66e0878a162909b84120ccd">cpl_plot_image()</a>.</p>
</div>
</div>
<a class="anchor" id="gad53df4fee966a1812300223acf87d694"></a>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">double complex* cpl_image_get_data_double_complex </td>
<td>(</td>
<td class="paramtype">cpl_image * </td>
<td class="paramname"><em>img</em></td><td>)</td>
<td></td>
</tr>
</table>
</div><div class="memdoc">
<p>Get the data as a double complex array. </p>
<dl class="params"><dt>Parameters</dt><dd>
<table class="params">
<tr><td class="paramname">img</td><td>a cpl_image object </td></tr>
</table>
</dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>pointer to the double complex data array or NULL on error. </dd></dl>
<dl class="section see"><dt>See also</dt><dd><a class="el" href="group__cpl__image.html#ga8a13105cf06807666c2a59ddd249ace7" title="Get the data as a double array. ">cpl_image_get_data_double()</a> </dd></dl>
<dl class="section note"><dt>Note</dt><dd>This function is available iff the application includes complex.h </dd></dl>
</div>
</div>
<a class="anchor" id="ga1573caf53f69504de560916ef719ef73"></a>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">const double complex* cpl_image_get_data_double_complex_const </td>
<td>(</td>
<td class="paramtype">const cpl_image * </td>
<td class="paramname"><em>img</em></td><td>)</td>
<td></td>
</tr>
</table>
</div><div class="memdoc">
<p>Get the data as a double complex array. </p>
<dl class="params"><dt>Parameters</dt><dd>
<table class="params">
<tr><td class="paramname">img</td><td>a cpl_image object </td></tr>
</table>
</dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>pointer to the double complex data array or NULL on error. </dd></dl>
<dl class="section see"><dt>See also</dt><dd><a class="el" href="group__cpl__image.html#gad53df4fee966a1812300223acf87d694" title="Get the data as a double complex array. ">cpl_image_get_data_double_complex()</a> </dd></dl>
</div>
</div>
<a class="anchor" id="ga2bf936dc6e939e2be9b8bd0d959c52e8"></a>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">const double* cpl_image_get_data_double_const </td>
<td>(</td>
<td class="paramtype">const cpl_image * </td>
<td class="paramname"><em>img</em></td><td>)</td>
<td></td>
</tr>
</table>
</div><div class="memdoc">
<p>Get the data as a double array. </p>
<dl class="params"><dt>Parameters</dt><dd>
<table class="params">
<tr><td class="paramname">img</td><td>a cpl_image object </td></tr>
</table>
</dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>pointer to the double data array or NULL on error. </dd></dl>
<dl class="section see"><dt>See also</dt><dd><a class="el" href="group__cpl__image.html#ga8a13105cf06807666c2a59ddd249ace7" title="Get the data as a double array. ">cpl_image_get_data_double</a> </dd></dl>
<p>Referenced by <a class="el" href="group__cpl__apertures.html#ga23b66826669fa90caafd5ad3060a116d">cpl_apertures_new_from_image()</a>, <a class="el" href="group__cpl__image.html#ga3a2ac9628c7dd3d8bc8355980474af72">cpl_image_fill_jacobian()</a>, <a class="el" href="group__cpl__image.html#ga53d75eb2e23114e4870c4d523081bfda">cpl_image_warp()</a>, <a class="el" href="group__cpl__plot.html#gac52d4503c66e0878a162909b84120ccd">cpl_plot_image()</a>, <a class="el" href="group__cpl__plot.html#gaef75b77f4d1a0642db7460a7a7569d70">cpl_plot_image_col()</a>, and <a class="el" href="group__cpl__plot.html#ga1f32ac705a1e262a4c415135e8a30103">cpl_plot_image_row()</a>.</p>
</div>
</div>
<a class="anchor" id="gac2274dda6fec382047a7377c5b9925f5"></a>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">float* cpl_image_get_data_float </td>
<td>(</td>
<td class="paramtype">cpl_image * </td>
<td class="paramname"><em>img</em></td><td>)</td>
<td></td>
</tr>
</table>
</div><div class="memdoc">
<p>Get the data as a float array. </p>
<dl class="params"><dt>Parameters</dt><dd>
<table class="params">
<tr><td class="paramname">img</td><td>a cpl_image object </td></tr>
</table>
</dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>pointer to the float data array or NULL on error. </dd></dl>
<dl class="section see"><dt>See also</dt><dd><a class="el" href="group__cpl__image.html#ga8a13105cf06807666c2a59ddd249ace7" title="Get the data as a double array. ">cpl_image_get_data_double()</a> </dd></dl>
<p>Referenced by <a class="el" href="group__cpl__image.html#ga3a2ac9628c7dd3d8bc8355980474af72">cpl_image_fill_jacobian()</a>, <a class="el" href="group__cpl__image.html#ga9da9342bdd22b4db42abd6cdf32dd5c3">cpl_image_fill_jacobian_polynomial()</a>, and <a class="el" href="group__cpl__image.html#gaa81c4cf5dca4516e8423dde705cff48b">cpl_image_iqe()</a>.</p>
</div>
</div>
<a class="anchor" id="gacc1aeb1704e85e838ed9a6b4e2f1016e"></a>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">float complex* cpl_image_get_data_float_complex </td>
<td>(</td>
<td class="paramtype">cpl_image * </td>
<td class="paramname"><em>img</em></td><td>)</td>
<td></td>
</tr>
</table>
</div><div class="memdoc">
<p>Get the data as a float complex array. </p>
<dl class="params"><dt>Parameters</dt><dd>
<table class="params">
<tr><td class="paramname">img</td><td>a cpl_image object </td></tr>
</table>
</dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>pointer to the float complex data array or NULL on error. </dd></dl>
<dl class="section see"><dt>See also</dt><dd><a class="el" href="group__cpl__image.html#gad53df4fee966a1812300223acf87d694" title="Get the data as a double complex array. ">cpl_image_get_data_double_complex()</a> </dd></dl>
</div>
</div>
<a class="anchor" id="gac7315f2d4e7e2d6598434146671c2c8d"></a>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">const float complex* cpl_image_get_data_float_complex_const </td>
<td>(</td>
<td class="paramtype">const cpl_image * </td>
<td class="paramname"><em>img</em></td><td>)</td>
<td></td>
</tr>
</table>
</div><div class="memdoc">
<p>Get the data as a float complex array. </p>
<dl class="params"><dt>Parameters</dt><dd>
<table class="params">
<tr><td class="paramname">img</td><td>a cpl_image object </td></tr>
</table>
</dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>pointer to the float complex data array or NULL on error. </dd></dl>
<dl class="section see"><dt>See also</dt><dd><a class="el" href="group__cpl__image.html#gad53df4fee966a1812300223acf87d694" title="Get the data as a double complex array. ">cpl_image_get_data_double_complex()</a> </dd></dl>
</div>
</div>
<a class="anchor" id="gacb6522d252bf521aed984aff1dc71108"></a>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">const float* cpl_image_get_data_float_const </td>
<td>(</td>
<td class="paramtype">const cpl_image * </td>
<td class="paramname"><em>img</em></td><td>)</td>
<td></td>
</tr>
</table>
</div><div class="memdoc">
<p>Get the data as a float array. </p>
<dl class="params"><dt>Parameters</dt><dd>
<table class="params">
<tr><td class="paramname">img</td><td>a cpl_image object </td></tr>
</table>
</dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>pointer to the float data array or NULL on error. </dd></dl>
<dl class="section see"><dt>See also</dt><dd><a class="el" href="group__cpl__image.html#gac2274dda6fec382047a7377c5b9925f5" title="Get the data as a float array. ">cpl_image_get_data_float()</a> </dd></dl>
</div>
</div>
<a class="anchor" id="ga0cf5fafaaece943afc2949c5d04d29ba"></a>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">int* cpl_image_get_data_int </td>
<td>(</td>
<td class="paramtype">cpl_image * </td>
<td class="paramname"><em>img</em></td><td>)</td>
<td></td>
</tr>
</table>
</div><div class="memdoc">
<p>Get the data as a integer array. </p>
<dl class="params"><dt>Parameters</dt><dd>
<table class="params">
<tr><td class="paramname">img</td><td>a cpl_image object </td></tr>
</table>
</dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>pointer to the integer data array or NULL on error. </dd></dl>
<dl class="section see"><dt>See also</dt><dd><a class="el" href="group__cpl__image.html#ga8a13105cf06807666c2a59ddd249ace7" title="Get the data as a double array. ">cpl_image_get_data_double()</a> </dd></dl>
<p>Referenced by <a class="el" href="group__cpl__image.html#gad38071b4db44e17818a0bade99a123c0">cpl_image_labelise_mask_create()</a>, and <a class="el" href="group__cpl__imagelist.html#ga7f952c936047c01580118d32baf146e5">cpl_imagelist_collapse_sigclip_create()</a>.</p>
</div>
</div>
<a class="anchor" id="ga948d7fe4814246e6f0dcb6c63217705b"></a>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">const int* cpl_image_get_data_int_const </td>
<td>(</td>
<td class="paramtype">const cpl_image * </td>
<td class="paramname"><em>img</em></td><td>)</td>
<td></td>
</tr>
</table>
</div><div class="memdoc">
<p>Get the data as a integer array. </p>
<dl class="params"><dt>Parameters</dt><dd>
<table class="params">
<tr><td class="paramname">img</td><td>a cpl_image object </td></tr>
</table>
</dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>pointer to the integer data array or NULL on error. </dd></dl>
<dl class="section see"><dt>See also</dt><dd><a class="el" href="group__cpl__image.html#ga0cf5fafaaece943afc2949c5d04d29ba" title="Get the data as a integer array. ">cpl_image_get_data_int()</a> </dd></dl>
<p>Referenced by <a class="el" href="group__cpl__apertures.html#ga23b66826669fa90caafd5ad3060a116d">cpl_apertures_new_from_image()</a>.</p>
</div>
</div>
<a class="anchor" id="ga31362a6926babd7f71b2583bc2fa6bb9"></a>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">double cpl_image_get_flux </td>
<td>(</td>
<td class="paramtype">const cpl_image * </td>
<td class="paramname"><em>image</em></td><td>)</td>
<td></td>
</tr>
</table>
</div><div class="memdoc">
<p>Computes the sum of pixel values over an image. </p>
<dl class="params"><dt>Parameters</dt><dd>
<table class="params">
<tr><td class="paramname">image</td><td>input image. </td></tr>
</table>
</dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>the flux value </dd></dl>
<dl class="section see"><dt>See also</dt><dd><a class="el" href="group__cpl__image.html#ga9767b78ea3e6318af12b28371356a2c0" title="computes minimum pixel value over an image. ">cpl_image_get_min()</a> </dd></dl>
<p>References <a class="el" href="group__cpl__error.html#gafb123879d8683c6d63681f433dc19bd0">cpl_ensure</a>, <a class="el" href="group__cpl__error.html#gga49a0c316d52d2afbfd9fd94b95344900a7b054cf7927d1bd0a9b3693a6715be84">CPL_ERROR_NULL_INPUT</a>, and <a class="el" href="group__cpl__image.html#gae6520040bd3c5fc291a1f0cbca45cbfb">cpl_image_get_flux_window()</a>.</p>
<p>Referenced by <a class="el" href="group__cpl__image.html#gaa1a902191405d8bd33e1bc5b239dfef0">cpl_image_normalise()</a>.</p>
</div>
</div>
<a class="anchor" id="gae6520040bd3c5fc291a1f0cbca45cbfb"></a>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">double cpl_image_get_flux_window </td>
<td>(</td>
<td class="paramtype">const cpl_image * </td>
<td class="paramname"><em>image</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype"><a class="el" href="group__cpl__type.html#gacc431432a4fedf19ec6f7668dda3fbf0">cpl_size</a> </td>
<td class="paramname"><em>llx</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype"><a class="el" href="group__cpl__type.html#gacc431432a4fedf19ec6f7668dda3fbf0">cpl_size</a> </td>
<td class="paramname"><em>lly</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype"><a class="el" href="group__cpl__type.html#gacc431432a4fedf19ec6f7668dda3fbf0">cpl_size</a> </td>
<td class="paramname"><em>urx</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype"><a class="el" href="group__cpl__type.html#gacc431432a4fedf19ec6f7668dda3fbf0">cpl_size</a> </td>
<td class="paramname"><em>ury</em> </td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td>
</tr>
</table>
</div><div class="memdoc">
<p>Computes the sum of pixel values over an image sub-window. </p>
<dl class="params"><dt>Parameters</dt><dd>
<table class="params">
<tr><td class="paramname">image</td><td>input image. </td></tr>
<tr><td class="paramname">llx</td><td>Lower left x position (FITS convention, 1 for leftmost) </td></tr>
<tr><td class="paramname">lly</td><td>Lower left y position (FITS convention, 1 for lowest) </td></tr>
<tr><td class="paramname">urx</td><td>Upper right x position (FITS convention) </td></tr>
<tr><td class="paramname">ury</td><td>Upper right y position (FITS convention) </td></tr>
</table>
</dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>the flux value </dd></dl>
<dl class="section see"><dt>See also</dt><dd><a class="el" href="group__cpl__image.html#ga39838b28f7c62ae29ee082402a5e8ed6" title="computes minimum pixel value over an image sub-window. ">cpl_image_get_min_window()</a> </dd></dl>
<p>Referenced by <a class="el" href="group__cpl__image.html#ga31362a6926babd7f71b2583bc2fa6bb9">cpl_image_get_flux()</a>.</p>
</div>
</div>
<a class="anchor" id="gad26891c8556c11a731cdedaa5fbbb009"></a>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname"><a class="el" href="group__cpl__error.html#ga44b4287e8a7a22122b94c220a1dd9459">cpl_error_code</a> cpl_image_get_fwhm </td>
<td>(</td>
<td class="paramtype">const cpl_image * </td>
<td class="paramname"><em>in</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype"><a class="el" href="group__cpl__type.html#gacc431432a4fedf19ec6f7668dda3fbf0">cpl_size</a> </td>
<td class="paramname"><em>xpos</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype"><a class="el" href="group__cpl__type.html#gacc431432a4fedf19ec6f7668dda3fbf0">cpl_size</a> </td>
<td class="paramname"><em>ypos</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">double * </td>
<td class="paramname"><em>fwhm_x</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">double * </td>
<td class="paramname"><em>fwhm_y</em> </td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td>
</tr>
</table>
</div><div class="memdoc">
<p>Compute FWHM values in x and y for an object. </p>
<dl class="params"><dt>Parameters</dt><dd>
<table class="params">
<tr><td class="paramname">in</td><td>the input image </td></tr>
<tr><td class="paramname">xpos</td><td>the x position of the object (1 for the first pixel) </td></tr>
<tr><td class="paramname">ypos</td><td>the y position of the object (1 for the first pixel) </td></tr>
<tr><td class="paramname">fwhm_x</td><td>the computed FWHM in x or -1 on error </td></tr>
<tr><td class="paramname">fwhm_y</td><td>the computed FWHM in y or -1 on error </td></tr>
</table>
</dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>CPL_ERROR_NONE or the relevant <a class="el" href="group__cpl__error.html#ga49a0c316d52d2afbfd9fd94b95344900" title="Available error codes. ">_cpl_error_code_</a></dd></dl>
<p>This function uses a basic method: start from the center of the object and go away until the half maximum value is reached in x and y.</p>
<p>For the FWHM in x (resp. y) to be computed, the image size in the x (resp. y) direction should be at least of 5 pixels.</p>
<p>If for any reason, one of the FHWMs cannot be computed, its returned value is -1.0, but an error is not necessarily raised. For example, if a 4 column image is passed, the fwhm_x would be -1.0, the fwhm_y would be correctly computed, and no error would be raised.</p>
<p>Possible <a class="el" href="group__cpl__error.html#ga49a0c316d52d2afbfd9fd94b95344900" title="Available error codes. ">_cpl_error_code_</a> set in this function:</p><ul>
<li>CPL_ERROR_NULL_INPUT if an input pointer is NULL</li>
<li>CPL_ERROR_DATA_NOT_FOUND if (xpos, ypos) specifies a rejected pixel or a pixel with a non-positive value</li>
<li>CPL_ERROR_ACCESS_OUT_OF_RANGE if xpos or ypos is outside the image size range </li>
</ul>
<p>References <a class="el" href="group__cpl__error.html#gaf18e95fbc6fc2cfde2a2cc8a0920b12d">cpl_ensure_code</a>, <a class="el" href="group__cpl__error.html#gga49a0c316d52d2afbfd9fd94b95344900a5b82c7780a2a8a79dfafcac70717b830">CPL_ERROR_DATA_NOT_FOUND</a>, <a class="el" href="group__cpl__error.html#ga724de575c31ddf40f42786306f9dbdcb">cpl_error_get_code()</a>, <a class="el" href="group__cpl__error.html#gga49a0c316d52d2afbfd9fd94b95344900a0239c1c63e9d21e98e45221a3ad60406">CPL_ERROR_NONE</a>, <a class="el" href="group__cpl__error.html#gga49a0c316d52d2afbfd9fd94b95344900a7b054cf7927d1bd0a9b3693a6715be84">CPL_ERROR_NULL_INPUT</a>, <a class="el" href="group__cpl__errorstate.html#gadbf3f1525429b95837bc79a5e99b12cd">cpl_errorstate_get()</a>, <a class="el" href="group__cpl__errorstate.html#gab4487759414dfe1a7403321b86d5b3cd">cpl_errorstate_is_equal()</a>, <a class="el" href="group__cpl__image.html#gacff07271c74fa513b507d886935abdc6">cpl_image_get()</a>, <a class="el" href="group__cpl__vector.html#gaf563c19d309c5b60d148a84cb156c2cf">cpl_vector_delete()</a>, <a class="el" href="group__cpl__image.html#gaf56b8dc8f9e7aa1379f1ec57101b4da5">cpl_vector_new_from_image_column()</a>, and <a class="el" href="group__cpl__image.html#ga793a1282c1792be89a7328cb0973e4e0">cpl_vector_new_from_image_row()</a>.</p>
<p>Referenced by <a class="el" href="group__cpl__apertures.html#gabac3029e5f7d8eff821fe204c8ae98e6">cpl_apertures_get_fwhm()</a>.</p>
</div>
</div>
<a class="anchor" id="ga7b4a871df75c1e8198ebe9359efd181b"></a>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">double cpl_image_get_interpolated </td>
<td>(</td>
<td class="paramtype">const cpl_image * </td>
<td class="paramname"><em>source</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">double </td>
<td class="paramname"><em>xpos</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">double </td>
<td class="paramname"><em>ypos</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">const cpl_vector * </td>
<td class="paramname"><em>xprofile</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">double </td>
<td class="paramname"><em>xradius</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">const cpl_vector * </td>
<td class="paramname"><em>yprofile</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">double </td>
<td class="paramname"><em>yradius</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">double * </td>
<td class="paramname"><em>pconfid</em> </td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td>
</tr>
</table>
</div><div class="memdoc">
<p>Interpolate a pixel. </p>
<dl class="params"><dt>Parameters</dt><dd>
<table class="params">
<tr><td class="paramname">source</td><td>Interpolation source </td></tr>
<tr><td class="paramname">xpos</td><td>Pixel x floating-point position (FITS convention) </td></tr>
<tr><td class="paramname">ypos</td><td>Pixel y floating-point position (FITS convention) </td></tr>
<tr><td class="paramname">xprofile</td><td>Interpolation weight as a function of the distance in X </td></tr>
<tr><td class="paramname">xradius</td><td>Positive inclusion radius in the X-dimension </td></tr>
<tr><td class="paramname">yprofile</td><td>Interpolation weight as a function of the distance in Y </td></tr>
<tr><td class="paramname">yradius</td><td>Positive inclusion radius in the Y-dimension </td></tr>
<tr><td class="paramname">pconfid</td><td>Confidence level of the interpolated value (range 0 to 1) </td></tr>
</table>
</dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>The interpolated pixel value, or undefined on error </dd></dl>
<dl class="section see"><dt>See also</dt><dd><a class="el" href="group__cpl__image.html#gacff07271c74fa513b507d886935abdc6" title="Get the value of a pixel at a given position. ">cpl_image_get()</a></dd></dl>
<p>If the X- and Y-radii are identical the area of inclusion is a circle, otherwise it is an ellipse, with the larger of the two radii as the semimajor axis and the other as the semiminor axis.</p>
<p>The radii are only required to be positive. However, for small radii, especially radii less than 1/sqrt(2), (xpos, ypos) may be located such that no source pixels are included in the interpolation, causing the interpolated pixel value to be undefined.</p>
<p>The X- and Y-profiles can be generated with cpl_vector_fill_kernel_profile(profile, radius). For profiles generated with <a class="el" href="group__cpl__vector.html#ga55809b8b88d4e32f95752434e26ced57" title="Fill a vector with a kernel profile. ">cpl_vector_fill_kernel_profile()</a> it is important to use the same radius both there and in <a class="el" href="group__cpl__image.html#ga7b4a871df75c1e8198ebe9359efd181b" title="Interpolate a pixel. ">cpl_image_get_interpolated()</a>.</p>
<p>A good profile length is CPL_KERNEL_DEF_SAMPLES, using radius CPL_KERNEL_DEF_WIDTH.</p>
<p>On error *pconfid is negative (unless pconfid is NULL). Otherwise, if *pconfid is zero, the interpolated pixel-value is undefined. Otherwise, if *pconfid is less than 1, the area of inclusion is close to the image border or contains rejected pixels.</p>
<p>The input image type can be CPL_TYPE_INT, CPL_TYPE_FLOAT and CPL_TYPE_DOUBLE.</p>
<p>Here is an example of a simple image unwarping (with error-checking omitted for brevity):</p>
<p>const double xyradius = CPL_KERNEL_DEF_WIDTH;</p>
<p>cpl_vector * xyprofile = cpl_vector_new(CPL_KERNEL_DEF_SAMPLES); cpl_image * unwarped = cpl_image_new(nx, ny, CPL_TYPE_DOUBLE);</p>
<p>cpl_vector_fill_kernel_profile(xyprofile, CPL_KERNEL_DEFAULT, xyradius);</p>
<p>for (iv = 1; iv <= ny; iv++) { for (iu = 1; iu <= nx; iu++) { double confidence; const double x = my_unwarped_x(); const double y = my_unwarped_y();</p>
<p>const double value = cpl_image_get_interpolated(warped, x, y, xyprofile, xyradius, xyprofile, xyradius, &confidence);</p>
<p>if (confidence > 0) cpl_image_set(unwarped, iu, iv, value); else cpl_image_reject(unwarped, iu, iv); } }</p>
<p>cpl_vector_delete(xyprofile);</p>
<p>Possible <a class="el" href="group__cpl__error.html#ga49a0c316d52d2afbfd9fd94b95344900" title="Available error codes. ">_cpl_error_code_</a> set in this function:</p><ul>
<li>CPL_ERROR_NULL_INPUT if (one of) the input pointer(s) is NULL</li>
<li>CPL_ERROR_ILLEGAL_INPUT if xradius, xprofile, yprofile and yradius are not as requested</li>
<li>CPL_ERROR_INVALID_TYPE if the passed image type is not supported </li>
</ul>
<p>References <a class="el" href="group__cpl__error.html#gafb123879d8683c6d63681f433dc19bd0">cpl_ensure</a>, <a class="el" href="group__cpl__error.html#ga724de575c31ddf40f42786306f9dbdcb">cpl_error_get_code()</a>, <a class="el" href="group__cpl__error.html#gga49a0c316d52d2afbfd9fd94b95344900ae6ab32df318c1af9afcddcb8249cad51">CPL_ERROR_ILLEGAL_INPUT</a>, <a class="el" href="group__cpl__error.html#gga49a0c316d52d2afbfd9fd94b95344900a7907a24014a3a45aebe5ee1842f0c6f3">CPL_ERROR_INVALID_TYPE</a>, <a class="el" href="group__cpl__error.html#gga49a0c316d52d2afbfd9fd94b95344900a7b054cf7927d1bd0a9b3693a6715be84">CPL_ERROR_NULL_INPUT</a>, <a class="el" href="group__cpl__image.html#gab5a6bc059aa1d38c37ab5852b5170e45">cpl_image_get_size_x()</a>, <a class="el" href="group__cpl__image.html#gaf3495f9be1d6892cfed9c5232ccee350">cpl_image_get_size_y()</a>, <a class="el" href="group__cpl__mask.html#gac9ab11af7ef4ff0b8424141271fd685b">cpl_mask_get_data_const()</a>, <a class="el" href="group__cpl__type.html#gga3f03371e201544e9115b40065e47f086a4923f03f3a673edd344b0d81835ca69e">CPL_TYPE_DOUBLE</a>, <a class="el" href="group__cpl__type.html#gga3f03371e201544e9115b40065e47f086aa44c37e26b9040a96e3a49b405946942">CPL_TYPE_FLOAT</a>, <a class="el" href="group__cpl__type.html#gga3f03371e201544e9115b40065e47f086ae333db5ccea0813ccd892525b4ba1345">CPL_TYPE_INT</a>, <a class="el" href="group__cpl__vector.html#ga991ded30622122c78bb34191f7c7a7c6">cpl_vector_get_data_const()</a>, and <a class="el" href="group__cpl__vector.html#gac72d7e38ce2f5ac2e0863e2a11e9af1d">cpl_vector_get_size()</a>.</p>
</div>
</div>
<a class="anchor" id="gaf15780319773b70e79e16f7a7e13f53f"></a>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">double cpl_image_get_mad </td>
<td>(</td>
<td class="paramtype">const cpl_image * </td>
<td class="paramname"><em>image</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">double * </td>
<td class="paramname"><em>sigma</em> </td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td>
</tr>
</table>
</div><div class="memdoc">
<p>Computes median and median absolute deviation (MAD) on an image. </p>
<dl class="params"><dt>Parameters</dt><dd>
<table class="params">
<tr><td class="paramname">image</td><td>Input image. </td></tr>
<tr><td class="paramname">sigma</td><td>The median of the absolute median deviation of the good pixels </td></tr>
</table>
</dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>The median of the non-bad pixels </dd></dl>
<dl class="section see"><dt>See also</dt><dd><a class="el" href="group__cpl__image.html#gaa28d60432aa6fcca80f2c5ae4e5f5aa3" title="Computes median and median absolute deviation (MAD) on an image window. ">cpl_image_get_mad_window()</a></dd></dl>
<p>Possible <a class="el" href="group__cpl__error.html#ga49a0c316d52d2afbfd9fd94b95344900" title="Available error codes. ">_cpl_error_code_</a> set in this function:</p><ul>
<li>CPL_ERROR_NULL_INPUT if an input pointer is NULL</li>
<li>CPL_ERROR_INVALID_TYPE if the passed image type is not supported</li>
<li>CPL_ERROR_DATA_NOT_FOUND if all the pixels are bad in the image </li>
</ul>
<p>References <a class="el" href="group__cpl__error.html#gaf18e95fbc6fc2cfde2a2cc8a0920b12d">cpl_ensure_code</a>, <a class="el" href="group__cpl__error.html#gga49a0c316d52d2afbfd9fd94b95344900a7b054cf7927d1bd0a9b3693a6715be84">CPL_ERROR_NULL_INPUT</a>, <a class="el" href="group__cpl__stats.html#ga3ef701d9bca07204e60ac273a47b5dea">cpl_stats_get_mad()</a>, <a class="el" href="group__cpl__stats.html#gaee08516346816551c189ae75b0172bd1">cpl_stats_get_median()</a>, and <a class="el" href="group__cpl__stats.html#gga2f1e5b7648471006c73e2f2305648686a956987af89b12e96cfa9d8da26693ef8">CPL_STATS_MAD</a>.</p>
</div>
</div>
<a class="anchor" id="gaa28d60432aa6fcca80f2c5ae4e5f5aa3"></a>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">double cpl_image_get_mad_window </td>
<td>(</td>
<td class="paramtype">const cpl_image * </td>
<td class="paramname"><em>image</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype"><a class="el" href="group__cpl__type.html#gacc431432a4fedf19ec6f7668dda3fbf0">cpl_size</a> </td>
<td class="paramname"><em>llx</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype"><a class="el" href="group__cpl__type.html#gacc431432a4fedf19ec6f7668dda3fbf0">cpl_size</a> </td>
<td class="paramname"><em>lly</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype"><a class="el" href="group__cpl__type.html#gacc431432a4fedf19ec6f7668dda3fbf0">cpl_size</a> </td>
<td class="paramname"><em>urx</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype"><a class="el" href="group__cpl__type.html#gacc431432a4fedf19ec6f7668dda3fbf0">cpl_size</a> </td>
<td class="paramname"><em>ury</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">double * </td>
<td class="paramname"><em>sigma</em> </td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td>
</tr>
</table>
</div><div class="memdoc">
<p>Computes median and median absolute deviation (MAD) on an image window. </p>
<dl class="params"><dt>Parameters</dt><dd>
<table class="params">
<tr><td class="paramname">image</td><td>Input image. </td></tr>
<tr><td class="paramname">llx</td><td>Lower left x position (FITS convention, 1 for leftmost) </td></tr>
<tr><td class="paramname">lly</td><td>Lower left y position (FITS convention, 1 for lowest) </td></tr>
<tr><td class="paramname">urx</td><td>Upper right x position (FITS convention) </td></tr>
<tr><td class="paramname">ury</td><td>Upper right y position (FITS convention) </td></tr>
<tr><td class="paramname">sigma</td><td>The median of the absolute median deviation of the good pixels </td></tr>
</table>
</dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>The median of the non-bad pixels </dd></dl>
<dl class="section see"><dt>See also</dt><dd><a class="el" href="group__cpl__image.html#gac6beb8fbedcd15f8a7ee4a6af22aa8f7" title="computes median pixel value over an image sub-window. ">cpl_image_get_median_window()</a>, <a class="el" href="group__cpl__math.html#gac6efb182fad8558ee4ae6ffa513b6ec8" title="Standard deviation per Median Absolute Deviation for Gaussian data. ">CPL_MATH_STD_MAD</a></dd></dl>
<p>For each non-bad pixel in the window the absolute deviation from the median is computed. The median of these absolute deviations in returned via sigma, while the median itself is returned by the function.</p>
<p>If the pixels are gaussian, the computed sigma is a robust and consistent estimate of the standard deviation in the sense that the standard deviation is approximately k * MAD, where k is a constant equal to approximately 1.4826. CPL defines CPL_MATH_STD_MAD as this scaling constant.</p>
<p>Images can be CPL_TYPE_FLOAT, CPL_TYPE_INT or CPL_TYPE_DOUBLE. On error the <a class="el" href="group__cpl__error.html#ga49a0c316d52d2afbfd9fd94b95344900" title="Available error codes. ">_cpl_error_code_</a> code is set and the return value is undefined.</p>
<p>Possible <a class="el" href="group__cpl__error.html#ga49a0c316d52d2afbfd9fd94b95344900" title="Available error codes. ">_cpl_error_code_</a> set in this function:</p><ul>
<li>CPL_ERROR_NULL_INPUT if an input pointer is NULL</li>
<li>CPL_ERROR_INVALID_TYPE if the passed image type is not supported</li>
<li>CPL_ERROR_ILLEGAL_INPUT if the specified window is illegal</li>
<li>CPL_ERROR_DATA_NOT_FOUND if all the pixels are bad in the image window </li>
</ul>
<p>References <a class="el" href="group__cpl__error.html#gaf18e95fbc6fc2cfde2a2cc8a0920b12d">cpl_ensure_code</a>, <a class="el" href="group__cpl__error.html#gga49a0c316d52d2afbfd9fd94b95344900a7b054cf7927d1bd0a9b3693a6715be84">CPL_ERROR_NULL_INPUT</a>, <a class="el" href="group__cpl__stats.html#ga3ef701d9bca07204e60ac273a47b5dea">cpl_stats_get_mad()</a>, <a class="el" href="group__cpl__stats.html#gaee08516346816551c189ae75b0172bd1">cpl_stats_get_median()</a>, and <a class="el" href="group__cpl__stats.html#gga2f1e5b7648471006c73e2f2305648686a956987af89b12e96cfa9d8da26693ef8">CPL_STATS_MAD</a>.</p>
</div>
</div>
<a class="anchor" id="gabf0fdb334ef6a45c1dd0d7e20e7cea49"></a>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">double cpl_image_get_max </td>
<td>(</td>
<td class="paramtype">const cpl_image * </td>
<td class="paramname"><em>image</em></td><td>)</td>
<td></td>
</tr>
</table>
</div><div class="memdoc">
<p>computes maximum pixel value over an image. </p>
<dl class="params"><dt>Parameters</dt><dd>
<table class="params">
<tr><td class="paramname">image</td><td>input image. </td></tr>
</table>
</dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>the maximum value </dd></dl>
<dl class="section see"><dt>See also</dt><dd><a class="el" href="group__cpl__image.html#ga9767b78ea3e6318af12b28371356a2c0" title="computes minimum pixel value over an image. ">cpl_image_get_min()</a> </dd></dl>
<p>Referenced by <a class="el" href="group__cpl__apertures.html#ga23b66826669fa90caafd5ad3060a116d">cpl_apertures_new_from_image()</a>, <a class="el" href="group__cpl__fit.html#ga8004d897c449d503c56f14ca99cf475b">cpl_fit_image_gaussian()</a>, and <a class="el" href="group__cpl__plot.html#gac52d4503c66e0878a162909b84120ccd">cpl_plot_image()</a>.</p>
</div>
</div>
<a class="anchor" id="gaac24d6b2971704550d4f3493b45a4f2a"></a>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">double cpl_image_get_max_window </td>
<td>(</td>
<td class="paramtype">const cpl_image * </td>
<td class="paramname"><em>image</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype"><a class="el" href="group__cpl__type.html#gacc431432a4fedf19ec6f7668dda3fbf0">cpl_size</a> </td>
<td class="paramname"><em>llx</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype"><a class="el" href="group__cpl__type.html#gacc431432a4fedf19ec6f7668dda3fbf0">cpl_size</a> </td>
<td class="paramname"><em>lly</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype"><a class="el" href="group__cpl__type.html#gacc431432a4fedf19ec6f7668dda3fbf0">cpl_size</a> </td>
<td class="paramname"><em>urx</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype"><a class="el" href="group__cpl__type.html#gacc431432a4fedf19ec6f7668dda3fbf0">cpl_size</a> </td>
<td class="paramname"><em>ury</em> </td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td>
</tr>
</table>
</div><div class="memdoc">
<p>computes maximum pixel value over an image sub-window. </p>
<dl class="params"><dt>Parameters</dt><dd>
<table class="params">
<tr><td class="paramname">image</td><td>input image. </td></tr>
<tr><td class="paramname">llx</td><td>Lower left x position (FITS convention, 1 for leftmost) </td></tr>
<tr><td class="paramname">lly</td><td>Lower left y position (FITS convention, 1 for lowest) </td></tr>
<tr><td class="paramname">urx</td><td>Upper right x position (FITS convention) </td></tr>
<tr><td class="paramname">ury</td><td>Upper right y position (FITS convention) </td></tr>
</table>
</dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>the maximum value </dd></dl>
<dl class="section see"><dt>See also</dt><dd><a class="el" href="group__cpl__image.html#ga39838b28f7c62ae29ee082402a5e8ed6" title="computes minimum pixel value over an image sub-window. ">cpl_image_get_min_window()</a> </dd></dl>
</div>
</div>
<a class="anchor" id="ga8a8c567d32935c3da1a1f6b47355f53a"></a>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname"><a class="el" href="group__cpl__error.html#ga44b4287e8a7a22122b94c220a1dd9459">cpl_error_code</a> cpl_image_get_maxpos </td>
<td>(</td>
<td class="paramtype">const cpl_image * </td>
<td class="paramname"><em>image</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype"><a class="el" href="group__cpl__type.html#gacc431432a4fedf19ec6f7668dda3fbf0">cpl_size</a> * </td>
<td class="paramname"><em>px</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype"><a class="el" href="group__cpl__type.html#gacc431432a4fedf19ec6f7668dda3fbf0">cpl_size</a> * </td>
<td class="paramname"><em>py</em> </td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td>
</tr>
</table>
</div><div class="memdoc">
<p>Computes maximum pixel value and position over an image. </p>
<dl class="params"><dt>Parameters</dt><dd>
<table class="params">
<tr><td class="paramname">image</td><td>Input image. </td></tr>
<tr><td class="paramname">px</td><td>ptr to the x coordinate of the maximum position </td></tr>
<tr><td class="paramname">py</td><td>ptr to the y coordinate of the maximum position </td></tr>
</table>
</dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>CPL_ERROR_NONE or the <a class="el" href="group__cpl__error.html#ga49a0c316d52d2afbfd9fd94b95344900" title="Available error codes. ">_cpl_error_code_</a> on error </dd></dl>
<dl class="section see"><dt>See also</dt><dd><a class="el" href="group__cpl__image.html#ga5db2e48e0ef4a67217e5b24cf658e790" title="Computes minimum pixel value and position over an image. ">cpl_image_get_minpos()</a> </dd></dl>
<p>References <a class="el" href="group__cpl__error.html#gaf18e95fbc6fc2cfde2a2cc8a0920b12d">cpl_ensure_code</a>, <a class="el" href="group__cpl__error.html#gga49a0c316d52d2afbfd9fd94b95344900a0239c1c63e9d21e98e45221a3ad60406">CPL_ERROR_NONE</a>, <a class="el" href="group__cpl__error.html#gga49a0c316d52d2afbfd9fd94b95344900a7b054cf7927d1bd0a9b3693a6715be84">CPL_ERROR_NULL_INPUT</a>, <a class="el" href="group__cpl__stats.html#ga5fb02ee52a1b9e0ed38e2f51c3625292">cpl_stats_get_max_x()</a>, <a class="el" href="group__cpl__stats.html#ga8a86b9323d8f73988da5b78ee0aa88d9">cpl_stats_get_max_y()</a>, and <a class="el" href="group__cpl__stats.html#gga2f1e5b7648471006c73e2f2305648686adee15cab1a444d08a13d71b068d0c99f">CPL_STATS_MAXPOS</a>.</p>
<p>Referenced by <a class="el" href="group__cpl__fit.html#ga8004d897c449d503c56f14ca99cf475b">cpl_fit_image_gaussian()</a>.</p>
</div>
</div>
<a class="anchor" id="gac6047366e8fef5c435b15f68e7690a4b"></a>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname"><a class="el" href="group__cpl__error.html#ga44b4287e8a7a22122b94c220a1dd9459">cpl_error_code</a> cpl_image_get_maxpos_window </td>
<td>(</td>
<td class="paramtype">const cpl_image * </td>
<td class="paramname"><em>image</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype"><a class="el" href="group__cpl__type.html#gacc431432a4fedf19ec6f7668dda3fbf0">cpl_size</a> </td>
<td class="paramname"><em>llx</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype"><a class="el" href="group__cpl__type.html#gacc431432a4fedf19ec6f7668dda3fbf0">cpl_size</a> </td>
<td class="paramname"><em>lly</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype"><a class="el" href="group__cpl__type.html#gacc431432a4fedf19ec6f7668dda3fbf0">cpl_size</a> </td>
<td class="paramname"><em>urx</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype"><a class="el" href="group__cpl__type.html#gacc431432a4fedf19ec6f7668dda3fbf0">cpl_size</a> </td>
<td class="paramname"><em>ury</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype"><a class="el" href="group__cpl__type.html#gacc431432a4fedf19ec6f7668dda3fbf0">cpl_size</a> * </td>
<td class="paramname"><em>px</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype"><a class="el" href="group__cpl__type.html#gacc431432a4fedf19ec6f7668dda3fbf0">cpl_size</a> * </td>
<td class="paramname"><em>py</em> </td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td>
</tr>
</table>
</div><div class="memdoc">
<p>Computes maximum pixel value and position over an image sub window. </p>
<dl class="params"><dt>Parameters</dt><dd>
<table class="params">
<tr><td class="paramname">image</td><td>Input image. </td></tr>
<tr><td class="paramname">llx</td><td>Lower left x position (FITS convention, 1 for leftmost) </td></tr>
<tr><td class="paramname">lly</td><td>Lower left y position (FITS convention, 1 for lowest) </td></tr>
<tr><td class="paramname">urx</td><td>Upper right x position (FITS convention) </td></tr>
<tr><td class="paramname">ury</td><td>Upper right y position (FITS convention) </td></tr>
<tr><td class="paramname">px</td><td>ptr to the x coordinate of the maximum position </td></tr>
<tr><td class="paramname">py</td><td>ptr to the y coordinate of the maximum position </td></tr>
</table>
</dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>CPL_ERROR_NONE or the <a class="el" href="group__cpl__error.html#ga49a0c316d52d2afbfd9fd94b95344900" title="Available error codes. ">_cpl_error_code_</a> on error </dd></dl>
<dl class="section see"><dt>See also</dt><dd><a class="el" href="group__cpl__image.html#ga9182557e5c0f2980e6e5b6afa6236b07" title="Computes minimum pixel value and position over an image sub window. ">cpl_image_get_minpos_window()</a> </dd></dl>
<p>References <a class="el" href="group__cpl__error.html#gaf18e95fbc6fc2cfde2a2cc8a0920b12d">cpl_ensure_code</a>, <a class="el" href="group__cpl__error.html#gga49a0c316d52d2afbfd9fd94b95344900a0239c1c63e9d21e98e45221a3ad60406">CPL_ERROR_NONE</a>, <a class="el" href="group__cpl__error.html#gga49a0c316d52d2afbfd9fd94b95344900a7b054cf7927d1bd0a9b3693a6715be84">CPL_ERROR_NULL_INPUT</a>, <a class="el" href="group__cpl__stats.html#ga5fb02ee52a1b9e0ed38e2f51c3625292">cpl_stats_get_max_x()</a>, <a class="el" href="group__cpl__stats.html#ga8a86b9323d8f73988da5b78ee0aa88d9">cpl_stats_get_max_y()</a>, and <a class="el" href="group__cpl__stats.html#gga2f1e5b7648471006c73e2f2305648686adee15cab1a444d08a13d71b068d0c99f">CPL_STATS_MAXPOS</a>.</p>
</div>
</div>
<a class="anchor" id="gae5e53e16a908d98359aa77ffb59b24ee"></a>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">double cpl_image_get_mean </td>
<td>(</td>
<td class="paramtype">const cpl_image * </td>
<td class="paramname"><em>image</em></td><td>)</td>
<td></td>
</tr>
</table>
</div><div class="memdoc">
<p>computes mean pixel value over an image. </p>
<dl class="params"><dt>Parameters</dt><dd>
<table class="params">
<tr><td class="paramname">image</td><td>input image. </td></tr>
</table>
</dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>the mean value </dd></dl>
<dl class="section see"><dt>See also</dt><dd><a class="el" href="group__cpl__image.html#ga9767b78ea3e6318af12b28371356a2c0" title="computes minimum pixel value over an image. ">cpl_image_get_min()</a> </dd></dl>
<p>Referenced by <a class="el" href="group__cpl__fit.html#ga8004d897c449d503c56f14ca99cf475b">cpl_fit_image_gaussian()</a>, and <a class="el" href="group__cpl__image.html#gaa1a902191405d8bd33e1bc5b239dfef0">cpl_image_normalise()</a>.</p>
</div>
</div>
<a class="anchor" id="ga61020c5f1350bfeff750dcb710b55ee1"></a>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">double cpl_image_get_mean_window </td>
<td>(</td>
<td class="paramtype">const cpl_image * </td>
<td class="paramname"><em>image</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype"><a class="el" href="group__cpl__type.html#gacc431432a4fedf19ec6f7668dda3fbf0">cpl_size</a> </td>
<td class="paramname"><em>llx</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype"><a class="el" href="group__cpl__type.html#gacc431432a4fedf19ec6f7668dda3fbf0">cpl_size</a> </td>
<td class="paramname"><em>lly</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype"><a class="el" href="group__cpl__type.html#gacc431432a4fedf19ec6f7668dda3fbf0">cpl_size</a> </td>
<td class="paramname"><em>urx</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype"><a class="el" href="group__cpl__type.html#gacc431432a4fedf19ec6f7668dda3fbf0">cpl_size</a> </td>
<td class="paramname"><em>ury</em> </td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td>
</tr>
</table>
</div><div class="memdoc">
<p>computes mean pixel value over an image sub-window. </p>
<dl class="params"><dt>Parameters</dt><dd>
<table class="params">
<tr><td class="paramname">image</td><td>input image. </td></tr>
<tr><td class="paramname">llx</td><td>Lower left x position (FITS convention, 1 for leftmost) </td></tr>
<tr><td class="paramname">lly</td><td>Lower left y position (FITS convention, 1 for lowest) </td></tr>
<tr><td class="paramname">urx</td><td>Upper right x position (FITS convention) </td></tr>
<tr><td class="paramname">ury</td><td>Upper right y position (FITS convention) </td></tr>
</table>
</dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>the mean value </dd></dl>
<dl class="section see"><dt>See also</dt><dd><a class="el" href="group__cpl__image.html#ga39838b28f7c62ae29ee082402a5e8ed6" title="computes minimum pixel value over an image sub-window. ">cpl_image_get_min_window()</a> </dd></dl>
</div>
</div>
<a class="anchor" id="ga4c38dfd3293ad052aa0237e3a759307c"></a>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">double cpl_image_get_median </td>
<td>(</td>
<td class="paramtype">const cpl_image * </td>
<td class="paramname"><em>image</em></td><td>)</td>
<td></td>
</tr>
</table>
</div><div class="memdoc">
<p>computes median pixel value over an image. </p>
<dl class="params"><dt>Parameters</dt><dd>
<table class="params">
<tr><td class="paramname">image</td><td>Input image. </td></tr>
</table>
</dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>the median value </dd></dl>
<dl class="section see"><dt>See also</dt><dd><a class="el" href="group__cpl__image.html#gac6beb8fbedcd15f8a7ee4a6af22aa8f7" title="computes median pixel value over an image sub-window. ">cpl_image_get_median_window()</a></dd></dl>
<p>In case of error, the <a class="el" href="group__cpl__error.html#ga49a0c316d52d2afbfd9fd94b95344900" title="Available error codes. ">_cpl_error_code_</a> code is set, and the returned double is undefined. Images can be CPL_TYPE_FLOAT, CPL_TYPE_INT or CPL_TYPE_DOUBLE.</p>
<p>Possible <a class="el" href="group__cpl__error.html#ga49a0c316d52d2afbfd9fd94b95344900" title="Available error codes. ">_cpl_error_code_</a> set in this function:</p><ul>
<li>CPL_ERROR_NULL_INPUT if an input pointer is NULL </li>
</ul>
<p>Referenced by <a class="el" href="group__cpl__fit.html#ga8004d897c449d503c56f14ca99cf475b">cpl_fit_image_gaussian()</a>.</p>
</div>
</div>
<a class="anchor" id="ga2f2b6c1b96b88fd355c50a5fa063e2eb"></a>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">double cpl_image_get_median_dev </td>
<td>(</td>
<td class="paramtype">const cpl_image * </td>
<td class="paramname"><em>image</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">double * </td>
<td class="paramname"><em>sigma</em> </td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td>
</tr>
</table>
</div><div class="memdoc">
<p>Computes median and mean absolute median deviation on an image window. </p>
<dl class="params"><dt>Parameters</dt><dd>
<table class="params">
<tr><td class="paramname">image</td><td>Input image. </td></tr>
<tr><td class="paramname">sigma</td><td>The mean of the absolute median deviation of the (good) pixels </td></tr>
</table>
</dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>The median of the non-bad pixels </dd></dl>
<dl class="section see"><dt>See also</dt><dd><a class="el" href="group__cpl__image.html#ga965f608f9b39076fc66971691e30863e" title="Computes median and mean absolute median deviation on an image window. ">cpl_image_get_median_dev_window()</a></dd></dl>
<p>Possible <a class="el" href="group__cpl__error.html#ga49a0c316d52d2afbfd9fd94b95344900" title="Available error codes. ">_cpl_error_code_</a> set in this function:</p><ul>
<li>CPL_ERROR_NULL_INPUT if an input pointer is NULL</li>
<li>CPL_ERROR_INVALID_TYPE if the passed image type is not supported</li>
<li>CPL_ERROR_DATA_NOT_FOUND if all the pixels are bad in the image </li>
</ul>
<p>References <a class="el" href="group__cpl__error.html#gaf18e95fbc6fc2cfde2a2cc8a0920b12d">cpl_ensure_code</a>, <a class="el" href="group__cpl__error.html#gga49a0c316d52d2afbfd9fd94b95344900a7b054cf7927d1bd0a9b3693a6715be84">CPL_ERROR_NULL_INPUT</a>, <a class="el" href="group__cpl__stats.html#gaee08516346816551c189ae75b0172bd1">cpl_stats_get_median()</a>, <a class="el" href="group__cpl__stats.html#gae0a6e2c1ff0ffc233c74b2452ecb9320">cpl_stats_get_median_dev()</a>, and <a class="el" href="group__cpl__stats.html#gga2f1e5b7648471006c73e2f2305648686a659c6de2079d816ab5a177bbc70ba1c1">CPL_STATS_MEDIAN_DEV</a>.</p>
<p>Referenced by <a class="el" href="group__cpl__apertures.html#ga35155a7e7eac69da19b08aa1cb112168">cpl_apertures_extract_sigma()</a>.</p>
</div>
</div>
<a class="anchor" id="ga965f608f9b39076fc66971691e30863e"></a>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">double cpl_image_get_median_dev_window </td>
<td>(</td>
<td class="paramtype">const cpl_image * </td>
<td class="paramname"><em>image</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype"><a class="el" href="group__cpl__type.html#gacc431432a4fedf19ec6f7668dda3fbf0">cpl_size</a> </td>
<td class="paramname"><em>llx</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype"><a class="el" href="group__cpl__type.html#gacc431432a4fedf19ec6f7668dda3fbf0">cpl_size</a> </td>
<td class="paramname"><em>lly</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype"><a class="el" href="group__cpl__type.html#gacc431432a4fedf19ec6f7668dda3fbf0">cpl_size</a> </td>
<td class="paramname"><em>urx</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype"><a class="el" href="group__cpl__type.html#gacc431432a4fedf19ec6f7668dda3fbf0">cpl_size</a> </td>
<td class="paramname"><em>ury</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">double * </td>
<td class="paramname"><em>sigma</em> </td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td>
</tr>
</table>
</div><div class="memdoc">
<p>Computes median and mean absolute median deviation on an image window. </p>
<dl class="params"><dt>Parameters</dt><dd>
<table class="params">
<tr><td class="paramname">image</td><td>Input image. </td></tr>
<tr><td class="paramname">llx</td><td>Lower left x position (FITS convention, 1 for leftmost) </td></tr>
<tr><td class="paramname">lly</td><td>Lower left y position (FITS convention, 1 for lowest) </td></tr>
<tr><td class="paramname">urx</td><td>Upper right x position (FITS convention) </td></tr>
<tr><td class="paramname">ury</td><td>Upper right y position (FITS convention) </td></tr>
<tr><td class="paramname">sigma</td><td>The mean of the absolute median deviation of the (good) pixels </td></tr>
</table>
</dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>The median of the non-bad pixels </dd></dl>
<dl class="section see"><dt>See also</dt><dd><a class="el" href="group__cpl__image.html#gaa28d60432aa6fcca80f2c5ae4e5f5aa3" title="Computes median and median absolute deviation (MAD) on an image window. ">cpl_image_get_mad_window()</a></dd></dl>
<p>For each non-bad pixel in the window the absolute deviation from the median is computed. The mean of these absolute deviations in returned via sigma, while the median itself is returned by the function. The computed median and sigma may be a robust estimate of the mean and standard deviation of the pixels. The sigma is however still sensitive to outliers. See <a class="el" href="group__cpl__image.html#gaa28d60432aa6fcca80f2c5ae4e5f5aa3" title="Computes median and median absolute deviation (MAD) on an image window. ">cpl_image_get_mad_window()</a> for a more robust estimator.</p>
<p>Images can be CPL_TYPE_FLOAT, CPL_TYPE_INT or CPL_TYPE_DOUBLE. On error the <a class="el" href="group__cpl__error.html#ga49a0c316d52d2afbfd9fd94b95344900" title="Available error codes. ">_cpl_error_code_</a> code is set and the return value is undefined.</p>
<p>Possible <a class="el" href="group__cpl__error.html#ga49a0c316d52d2afbfd9fd94b95344900" title="Available error codes. ">_cpl_error_code_</a> set in this function:</p><ul>
<li>CPL_ERROR_NULL_INPUT if an input pointer is NULL</li>
<li>CPL_ERROR_INVALID_TYPE if the passed image type is not supported</li>
<li>CPL_ERROR_ILLEGAL_INPUT if the specified window is illegal</li>
<li>CPL_ERROR_DATA_NOT_FOUND if all the pixels are bad in the image window </li>
</ul>
<p>References <a class="el" href="group__cpl__error.html#gaf18e95fbc6fc2cfde2a2cc8a0920b12d">cpl_ensure_code</a>, <a class="el" href="group__cpl__error.html#gga49a0c316d52d2afbfd9fd94b95344900a7b054cf7927d1bd0a9b3693a6715be84">CPL_ERROR_NULL_INPUT</a>, <a class="el" href="group__cpl__stats.html#gaee08516346816551c189ae75b0172bd1">cpl_stats_get_median()</a>, <a class="el" href="group__cpl__stats.html#gae0a6e2c1ff0ffc233c74b2452ecb9320">cpl_stats_get_median_dev()</a>, and <a class="el" href="group__cpl__stats.html#gga2f1e5b7648471006c73e2f2305648686a659c6de2079d816ab5a177bbc70ba1c1">CPL_STATS_MEDIAN_DEV</a>.</p>
</div>
</div>
<a class="anchor" id="gac6beb8fbedcd15f8a7ee4a6af22aa8f7"></a>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">double cpl_image_get_median_window </td>
<td>(</td>
<td class="paramtype">const cpl_image * </td>
<td class="paramname"><em>image</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype"><a class="el" href="group__cpl__type.html#gacc431432a4fedf19ec6f7668dda3fbf0">cpl_size</a> </td>
<td class="paramname"><em>llx</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype"><a class="el" href="group__cpl__type.html#gacc431432a4fedf19ec6f7668dda3fbf0">cpl_size</a> </td>
<td class="paramname"><em>lly</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype"><a class="el" href="group__cpl__type.html#gacc431432a4fedf19ec6f7668dda3fbf0">cpl_size</a> </td>
<td class="paramname"><em>urx</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype"><a class="el" href="group__cpl__type.html#gacc431432a4fedf19ec6f7668dda3fbf0">cpl_size</a> </td>
<td class="paramname"><em>ury</em> </td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td>
</tr>
</table>
</div><div class="memdoc">
<p>computes median pixel value over an image sub-window. </p>
<dl class="params"><dt>Parameters</dt><dd>
<table class="params">
<tr><td class="paramname">image</td><td>Input image. </td></tr>
<tr><td class="paramname">llx</td><td>Lower left x position (FITS convention, 1 for leftmost) </td></tr>
<tr><td class="paramname">lly</td><td>Lower left y position (FITS convention, 1 for lowest) </td></tr>
<tr><td class="paramname">urx</td><td>Upper right x position (FITS convention) </td></tr>
<tr><td class="paramname">ury</td><td>Upper right y position (FITS convention) </td></tr>
</table>
</dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>The median value, or undefined on error</dd></dl>
<p>The specified bounds are included in the specified region.</p>
<p>In case of error, the <a class="el" href="group__cpl__error.html#ga49a0c316d52d2afbfd9fd94b95344900" title="Available error codes. ">_cpl_error_code_</a> code is set, and the returned value is undefined. Images can be CPL_TYPE_FLOAT, CPL_TYPE_INT or CPL_TYPE_DOUBLE.</p>
<p>For a finite population or sample, the median is the middle value of an odd number of values (arranged in ascending order) or any value between the two middle values of an even number of values. For an even number of elements in the array, the mean of the two central values is returned. Note that in this case, the median might not belong to the input array.</p>
<p>Possible <a class="el" href="group__cpl__error.html#ga49a0c316d52d2afbfd9fd94b95344900" title="Available error codes. ">_cpl_error_code_</a> set in this function:</p><ul>
<li>CPL_ERROR_NULL_INPUT if an input pointer is NULL</li>
<li>CPL_ERROR_ILLEGAL_INPUT if the window is outside the image or if there are only bad pixels in the window</li>
<li>CPL_ERROR_INVALID_TYPE if the passed image type is not supported </li>
</ul>
</div>
</div>
<a class="anchor" id="ga9767b78ea3e6318af12b28371356a2c0"></a>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">double cpl_image_get_min </td>
<td>(</td>
<td class="paramtype">const cpl_image * </td>
<td class="paramname"><em>image</em></td><td>)</td>
<td></td>
</tr>
</table>
</div><div class="memdoc">
<p>computes minimum pixel value over an image. </p>
<dl class="params"><dt>Parameters</dt><dd>
<table class="params">
<tr><td class="paramname">image</td><td>input image. </td></tr>
</table>
</dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>the minimum value </dd></dl>
<dl class="section see"><dt>See also</dt><dd><a class="el" href="group__cpl__image.html#ga39838b28f7c62ae29ee082402a5e8ed6" title="computes minimum pixel value over an image sub-window. ">cpl_image_get_min_window()</a></dd></dl>
<p>In case of error, the <a class="el" href="group__cpl__error.html#ga49a0c316d52d2afbfd9fd94b95344900" title="Available error codes. ">_cpl_error_code_</a> code is set, and the returned double is undefined. Images can be CPL_TYPE_FLOAT, CPL_TYPE_INT or CPL_TYPE_DOUBLE.</p>
<p>Possible <a class="el" href="group__cpl__error.html#ga49a0c316d52d2afbfd9fd94b95344900" title="Available error codes. ">_cpl_error_code_</a> set in this function:</p><ul>
<li>CPL_ERROR_NULL_INPUT if an input pointer is NULL </li>
</ul>
<p>Referenced by <a class="el" href="group__cpl__fit.html#ga8004d897c449d503c56f14ca99cf475b">cpl_fit_image_gaussian()</a>, and <a class="el" href="group__cpl__plot.html#gac52d4503c66e0878a162909b84120ccd">cpl_plot_image()</a>.</p>
</div>
</div>
<a class="anchor" id="ga39838b28f7c62ae29ee082402a5e8ed6"></a>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">double cpl_image_get_min_window </td>
<td>(</td>
<td class="paramtype">const cpl_image * </td>
<td class="paramname"><em>image</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype"><a class="el" href="group__cpl__type.html#gacc431432a4fedf19ec6f7668dda3fbf0">cpl_size</a> </td>
<td class="paramname"><em>llx</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype"><a class="el" href="group__cpl__type.html#gacc431432a4fedf19ec6f7668dda3fbf0">cpl_size</a> </td>
<td class="paramname"><em>lly</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype"><a class="el" href="group__cpl__type.html#gacc431432a4fedf19ec6f7668dda3fbf0">cpl_size</a> </td>
<td class="paramname"><em>urx</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype"><a class="el" href="group__cpl__type.html#gacc431432a4fedf19ec6f7668dda3fbf0">cpl_size</a> </td>
<td class="paramname"><em>ury</em> </td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td>
</tr>
</table>
</div><div class="memdoc">
<p>computes minimum pixel value over an image sub-window. </p>
<dl class="params"><dt>Parameters</dt><dd>
<table class="params">
<tr><td class="paramname">image</td><td>input image. </td></tr>
<tr><td class="paramname">llx</td><td>Lower left x position (FITS convention, 1 for leftmost) </td></tr>
<tr><td class="paramname">lly</td><td>Lower left y position (FITS convention, 1 for lowest) </td></tr>
<tr><td class="paramname">urx</td><td>Upper right x position (FITS convention) </td></tr>
<tr><td class="paramname">ury</td><td>Upper right y position (FITS convention) </td></tr>
</table>
</dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>the minimum value, or undefined on error </dd></dl>
<dl class="section see"><dt>See also</dt><dd>cpl_stats_new_from_window() </dd></dl>
<dl class="section note"><dt>Note</dt><dd>In case of error, the <a class="el" href="group__cpl__error.html#ga49a0c316d52d2afbfd9fd94b95344900" title="Available error codes. ">_cpl_error_code_</a> code is set.</dd></dl>
<p>The specified bounds are included in the specified region.</p>
<p>Images can be CPL_TYPE_FLOAT, CPL_TYPE_INT or CPL_TYPE_DOUBLE.</p>
<p>Possible <a class="el" href="group__cpl__error.html#ga49a0c316d52d2afbfd9fd94b95344900" title="Available error codes. ">_cpl_error_code_</a> set in this function:</p><ul>
<li>CPL_ERROR_NULL_INPUT if an input pointer is NULL </li>
</ul>
</div>
</div>
<a class="anchor" id="ga5db2e48e0ef4a67217e5b24cf658e790"></a>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname"><a class="el" href="group__cpl__error.html#ga44b4287e8a7a22122b94c220a1dd9459">cpl_error_code</a> cpl_image_get_minpos </td>
<td>(</td>
<td class="paramtype">const cpl_image * </td>
<td class="paramname"><em>image</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype"><a class="el" href="group__cpl__type.html#gacc431432a4fedf19ec6f7668dda3fbf0">cpl_size</a> * </td>
<td class="paramname"><em>px</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype"><a class="el" href="group__cpl__type.html#gacc431432a4fedf19ec6f7668dda3fbf0">cpl_size</a> * </td>
<td class="paramname"><em>py</em> </td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td>
</tr>
</table>
</div><div class="memdoc">
<p>Computes minimum pixel value and position over an image. </p>
<dl class="params"><dt>Parameters</dt><dd>
<table class="params">
<tr><td class="paramname">image</td><td>Input image. </td></tr>
<tr><td class="paramname">px</td><td>ptr to the x coordinate of the minimum position </td></tr>
<tr><td class="paramname">py</td><td>ptr to the y coordinate of the minimum position </td></tr>
</table>
</dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>CPL_ERROR_NONE or the <a class="el" href="group__cpl__error.html#ga49a0c316d52d2afbfd9fd94b95344900" title="Available error codes. ">_cpl_error_code_</a> on error </dd></dl>
<dl class="section see"><dt>See also</dt><dd><a class="el" href="group__cpl__image.html#ga9182557e5c0f2980e6e5b6afa6236b07" title="Computes minimum pixel value and position over an image sub window. ">cpl_image_get_minpos_window()</a></dd></dl>
<p>Images can be CPL_TYPE_FLOAT, CPL_TYPE_INT or CPL_TYPE_DOUBLE.</p>
<p>Possible <a class="el" href="group__cpl__error.html#ga49a0c316d52d2afbfd9fd94b95344900" title="Available error codes. ">_cpl_error_code_</a> set in this function:</p><ul>
<li>CPL_ERROR_NULL_INPUT if an input pointer is NULL </li>
</ul>
<p>References <a class="el" href="group__cpl__error.html#gaf18e95fbc6fc2cfde2a2cc8a0920b12d">cpl_ensure_code</a>, <a class="el" href="group__cpl__error.html#gga49a0c316d52d2afbfd9fd94b95344900a0239c1c63e9d21e98e45221a3ad60406">CPL_ERROR_NONE</a>, <a class="el" href="group__cpl__error.html#gga49a0c316d52d2afbfd9fd94b95344900a7b054cf7927d1bd0a9b3693a6715be84">CPL_ERROR_NULL_INPUT</a>, <a class="el" href="group__cpl__stats.html#gab5f81e88fb653e48986ff2df0c6782d9">cpl_stats_get_min_x()</a>, <a class="el" href="group__cpl__stats.html#ga17cb2044a3e9131c26aac461901cb69f">cpl_stats_get_min_y()</a>, and <a class="el" href="group__cpl__stats.html#gga2f1e5b7648471006c73e2f2305648686ad435b204bb49ec1590f387e908f3483e">CPL_STATS_MINPOS</a>.</p>
<p>Referenced by <a class="el" href="group__cpl__fit.html#ga8004d897c449d503c56f14ca99cf475b">cpl_fit_image_gaussian()</a>.</p>
</div>
</div>
<a class="anchor" id="ga9182557e5c0f2980e6e5b6afa6236b07"></a>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname"><a class="el" href="group__cpl__error.html#ga44b4287e8a7a22122b94c220a1dd9459">cpl_error_code</a> cpl_image_get_minpos_window </td>
<td>(</td>
<td class="paramtype">const cpl_image * </td>
<td class="paramname"><em>image</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype"><a class="el" href="group__cpl__type.html#gacc431432a4fedf19ec6f7668dda3fbf0">cpl_size</a> </td>
<td class="paramname"><em>llx</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype"><a class="el" href="group__cpl__type.html#gacc431432a4fedf19ec6f7668dda3fbf0">cpl_size</a> </td>
<td class="paramname"><em>lly</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype"><a class="el" href="group__cpl__type.html#gacc431432a4fedf19ec6f7668dda3fbf0">cpl_size</a> </td>
<td class="paramname"><em>urx</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype"><a class="el" href="group__cpl__type.html#gacc431432a4fedf19ec6f7668dda3fbf0">cpl_size</a> </td>
<td class="paramname"><em>ury</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype"><a class="el" href="group__cpl__type.html#gacc431432a4fedf19ec6f7668dda3fbf0">cpl_size</a> * </td>
<td class="paramname"><em>px</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype"><a class="el" href="group__cpl__type.html#gacc431432a4fedf19ec6f7668dda3fbf0">cpl_size</a> * </td>
<td class="paramname"><em>py</em> </td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td>
</tr>
</table>
</div><div class="memdoc">
<p>Computes minimum pixel value and position over an image sub window. </p>
<dl class="params"><dt>Parameters</dt><dd>
<table class="params">
<tr><td class="paramname">image</td><td>Input image. </td></tr>
<tr><td class="paramname">llx</td><td>Lower left x position (FITS convention, 1 for leftmost) </td></tr>
<tr><td class="paramname">lly</td><td>Lower left y position (FITS convention, 1 for lowest) </td></tr>
<tr><td class="paramname">urx</td><td>Upper right x position (FITS convention) </td></tr>
<tr><td class="paramname">ury</td><td>Upper right y position (FITS convention) </td></tr>
<tr><td class="paramname">px</td><td>ptr to the x coordinate of the minimum position </td></tr>
<tr><td class="paramname">py</td><td>ptr to the y coordinate of the minimum position </td></tr>
</table>
</dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>CPL_ERROR_NONE or the <a class="el" href="group__cpl__error.html#ga49a0c316d52d2afbfd9fd94b95344900" title="Available error codes. ">_cpl_error_code_</a> on error </dd></dl>
<dl class="section see"><dt>See also</dt><dd><a class="el" href="group__cpl__image.html#ga39838b28f7c62ae29ee082402a5e8ed6" title="computes minimum pixel value over an image sub-window. ">cpl_image_get_min_window()</a></dd></dl>
<p>The specified bounds are included in the specified region.</p>
<p>Images can be CPL_TYPE_FLOAT, CPL_TYPE_INT or CPL_TYPE_DOUBLE.</p>
<p>Possible <a class="el" href="group__cpl__error.html#ga49a0c316d52d2afbfd9fd94b95344900" title="Available error codes. ">_cpl_error_code_</a> set in this function:</p><ul>
<li>CPL_ERROR_NULL_INPUT if an input pointer is NULL </li>
</ul>
<p>References <a class="el" href="group__cpl__error.html#gaf18e95fbc6fc2cfde2a2cc8a0920b12d">cpl_ensure_code</a>, <a class="el" href="group__cpl__error.html#gga49a0c316d52d2afbfd9fd94b95344900a0239c1c63e9d21e98e45221a3ad60406">CPL_ERROR_NONE</a>, <a class="el" href="group__cpl__error.html#gga49a0c316d52d2afbfd9fd94b95344900a7b054cf7927d1bd0a9b3693a6715be84">CPL_ERROR_NULL_INPUT</a>, <a class="el" href="group__cpl__stats.html#gab5f81e88fb653e48986ff2df0c6782d9">cpl_stats_get_min_x()</a>, <a class="el" href="group__cpl__stats.html#ga17cb2044a3e9131c26aac461901cb69f">cpl_stats_get_min_y()</a>, and <a class="el" href="group__cpl__stats.html#gga2f1e5b7648471006c73e2f2305648686ad435b204bb49ec1590f387e908f3483e">CPL_STATS_MINPOS</a>.</p>
</div>
</div>
<a class="anchor" id="gab5a6bc059aa1d38c37ab5852b5170e45"></a>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname"><a class="el" href="group__cpl__type.html#gacc431432a4fedf19ec6f7668dda3fbf0">cpl_size</a> cpl_image_get_size_x </td>
<td>(</td>
<td class="paramtype">const cpl_image * </td>
<td class="paramname"><em>img</em></td><td>)</td>
<td></td>
</tr>
</table>
</div><div class="memdoc">
<p>Get the image x size. </p>
<dl class="params"><dt>Parameters</dt><dd>
<table class="params">
<tr><td class="paramname">img</td><td>a cpl_image object </td></tr>
</table>
</dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>The image x size, or -1 on NULL input</dd></dl>
<p>Possible <a class="el" href="group__cpl__error.html#ga49a0c316d52d2afbfd9fd94b95344900" title="Available error codes. ">_cpl_error_code_</a> set in this function:</p><ul>
<li>CPL_ERROR_NULL_INPUT if an input pointer is NULL </li>
</ul>
<p>References <a class="el" href="group__cpl__error.html#gafb123879d8683c6d63681f433dc19bd0">cpl_ensure</a>, and <a class="el" href="group__cpl__error.html#gga49a0c316d52d2afbfd9fd94b95344900a7b054cf7927d1bd0a9b3693a6715be84">CPL_ERROR_NULL_INPUT</a>.</p>
<p>Referenced by <a class="el" href="group__cpl__apertures.html#ga23b66826669fa90caafd5ad3060a116d">cpl_apertures_new_from_image()</a>, <a class="el" href="group__cpl__detector.html#ga83fd1a1d48eeeb444d6a1a84c6d5e2de">cpl_detector_interpolate_rejected()</a>, <a class="el" href="group__cpl__fit.html#ga8004d897c449d503c56f14ca99cf475b">cpl_fit_image_gaussian()</a>, <a class="el" href="group__cpl__fit.html#gadd240ad8b0cc6b1ed74167c893e926e1">cpl_fit_imagelist_polynomial()</a>, <a class="el" href="group__cpl__fit.html#gac3d906c5ea114812ee3ca7f8e9fa49b7">cpl_fit_imagelist_polynomial_window()</a>, <a class="el" href="group__cpl__detector.html#gad77be43229e187b59bad4cdd766a53d0">cpl_flux_get_noise_ring()</a>, <a class="el" href="group__cpl__geom__img.html#ga135df3510913add18d5550a8aa356923">cpl_geom_img_offset_fine()</a>, <a class="el" href="group__cpl__geom__img.html#ga8df5c11aeb84394817af6a0680c2859c">cpl_geom_img_offset_saa()</a>, <a class="el" href="group__cpl__image.html#gad986c25e9250952770f854022e1ffb24">cpl_image_cast()</a>, <a class="el" href="group__cpl__image.html#ga911a5da41a658e42f43f4c6a30d3f9d5">cpl_image_collapse_create()</a>, <a class="el" href="group__cpl__image.html#ga13a42c86638d087b5a097c87e36ea7bc">cpl_image_copy()</a>, <a class="el" href="group__cpl__image.html#ga3a2ac9628c7dd3d8bc8355980474af72">cpl_image_fill_jacobian()</a>, <a class="el" href="group__cpl__image.html#ga9da9342bdd22b4db42abd6cdf32dd5c3">cpl_image_fill_jacobian_polynomial()</a>, <a class="el" href="group__cpl__image.html#gacabd23385727059b61a8f20181485b05">cpl_image_filter()</a>, <a class="el" href="group__cpl__image.html#ga09c5ec8125d5ad2d14824106ac78061c">cpl_image_filter_mask()</a>, <a class="el" href="group__cpl__image.html#ga7b4a871df75c1e8198ebe9359efd181b">cpl_image_get_interpolated()</a>, <a class="el" href="group__cpl__image.html#gaa81c4cf5dca4516e8423dde705cff48b">cpl_image_iqe()</a>, <a class="el" href="group__cpl__imagelist.html#ga27af298cfe9123948061d86c43877ad5">cpl_image_new_from_accepted()</a>, <a class="el" href="group__cpl__image.html#ga509a88acd4a109ff88d699df01b64baa">cpl_image_rebin()</a>, <a class="el" href="group__cpl__image.html#ga53d75eb2e23114e4870c4d523081bfda">cpl_image_warp()</a>, <a class="el" href="group__cpl__imagelist.html#gaeb7837c7b8405c3cdcb507bce6f30108">cpl_imagelist_collapse_median_create()</a>, <a class="el" href="group__cpl__imagelist.html#gaaf3f105e8e1a06a12406e18c5f82d57c">cpl_imagelist_collapse_minmax_create()</a>, <a class="el" href="group__cpl__imagelist.html#ga7f952c936047c01580118d32baf146e5">cpl_imagelist_collapse_sigclip_create()</a>, <a class="el" href="group__cpl__imagelist.html#ga94e27dfea06bc089d018e4c5a3b6a4be">cpl_imagelist_is_uniform()</a>, <a class="el" href="group__cpl__imagelist.html#gad6bce4e990300800fa351fe73d0865b6">cpl_imagelist_set()</a>, <a class="el" href="group__cpl__imagelist.html#gaebff09158515dcd0e9e95a32f3678631">cpl_imagelist_swap_axis_create()</a>, <a class="el" href="group__cpl__mask.html#ga876fa3873a09a7ed4a473432b399c9a2">cpl_mask_threshold_image()</a>, <a class="el" href="group__cpl__mask.html#gae96b3b0d506ef4f97f0ce2d8d0d70d22">cpl_mask_threshold_image_create()</a>, <a class="el" href="group__cpl__plot.html#gac52d4503c66e0878a162909b84120ccd">cpl_plot_image()</a>, <a class="el" href="group__cpl__plot.html#gaef75b77f4d1a0642db7460a7a7569d70">cpl_plot_image_col()</a>, <a class="el" href="group__cpl__plot.html#ga1f32ac705a1e262a4c415135e8a30103">cpl_plot_image_row()</a>, and <a class="el" href="group__cpl__test.html#gadaf047b456b9110bc1017d2a594c328e">cpl_test_get_bytes_image()</a>.</p>
</div>
</div>
<a class="anchor" id="gaf3495f9be1d6892cfed9c5232ccee350"></a>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname"><a class="el" href="group__cpl__type.html#gacc431432a4fedf19ec6f7668dda3fbf0">cpl_size</a> cpl_image_get_size_y </td>
<td>(</td>
<td class="paramtype">const cpl_image * </td>
<td class="paramname"><em>img</em></td><td>)</td>
<td></td>
</tr>
</table>
</div><div class="memdoc">
<p>Get the image y size. </p>
<dl class="params"><dt>Parameters</dt><dd>
<table class="params">
<tr><td class="paramname">img</td><td>a cpl_image object </td></tr>
</table>
</dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>The image y size, or -1 on NULL input</dd></dl>
<p>Possible <a class="el" href="group__cpl__error.html#ga49a0c316d52d2afbfd9fd94b95344900" title="Available error codes. ">_cpl_error_code_</a> set in this function:</p><ul>
<li>CPL_ERROR_NULL_INPUT if an input pointer is NULL </li>
</ul>
<p>References <a class="el" href="group__cpl__error.html#gafb123879d8683c6d63681f433dc19bd0">cpl_ensure</a>, and <a class="el" href="group__cpl__error.html#gga49a0c316d52d2afbfd9fd94b95344900a7b054cf7927d1bd0a9b3693a6715be84">CPL_ERROR_NULL_INPUT</a>.</p>
<p>Referenced by <a class="el" href="group__cpl__apertures.html#ga23b66826669fa90caafd5ad3060a116d">cpl_apertures_new_from_image()</a>, <a class="el" href="group__cpl__detector.html#ga83fd1a1d48eeeb444d6a1a84c6d5e2de">cpl_detector_interpolate_rejected()</a>, <a class="el" href="group__cpl__fit.html#ga8004d897c449d503c56f14ca99cf475b">cpl_fit_image_gaussian()</a>, <a class="el" href="group__cpl__fit.html#gadd240ad8b0cc6b1ed74167c893e926e1">cpl_fit_imagelist_polynomial()</a>, <a class="el" href="group__cpl__fit.html#gac3d906c5ea114812ee3ca7f8e9fa49b7">cpl_fit_imagelist_polynomial_window()</a>, <a class="el" href="group__cpl__detector.html#gad77be43229e187b59bad4cdd766a53d0">cpl_flux_get_noise_ring()</a>, <a class="el" href="group__cpl__geom__img.html#ga135df3510913add18d5550a8aa356923">cpl_geom_img_offset_fine()</a>, <a class="el" href="group__cpl__geom__img.html#ga8df5c11aeb84394817af6a0680c2859c">cpl_geom_img_offset_saa()</a>, <a class="el" href="group__cpl__image.html#gad986c25e9250952770f854022e1ffb24">cpl_image_cast()</a>, <a class="el" href="group__cpl__image.html#ga911a5da41a658e42f43f4c6a30d3f9d5">cpl_image_collapse_create()</a>, <a class="el" href="group__cpl__image.html#ga13a42c86638d087b5a097c87e36ea7bc">cpl_image_copy()</a>, <a class="el" href="group__cpl__image.html#ga3a2ac9628c7dd3d8bc8355980474af72">cpl_image_fill_jacobian()</a>, <a class="el" href="group__cpl__image.html#ga9da9342bdd22b4db42abd6cdf32dd5c3">cpl_image_fill_jacobian_polynomial()</a>, <a class="el" href="group__cpl__image.html#gacabd23385727059b61a8f20181485b05">cpl_image_filter()</a>, <a class="el" href="group__cpl__image.html#ga09c5ec8125d5ad2d14824106ac78061c">cpl_image_filter_mask()</a>, <a class="el" href="group__cpl__image.html#ga7b4a871df75c1e8198ebe9359efd181b">cpl_image_get_interpolated()</a>, <a class="el" href="group__cpl__image.html#gaa81c4cf5dca4516e8423dde705cff48b">cpl_image_iqe()</a>, <a class="el" href="group__cpl__imagelist.html#ga27af298cfe9123948061d86c43877ad5">cpl_image_new_from_accepted()</a>, <a class="el" href="group__cpl__image.html#ga53d75eb2e23114e4870c4d523081bfda">cpl_image_warp()</a>, <a class="el" href="group__cpl__imagelist.html#gaeb7837c7b8405c3cdcb507bce6f30108">cpl_imagelist_collapse_median_create()</a>, <a class="el" href="group__cpl__imagelist.html#gaaf3f105e8e1a06a12406e18c5f82d57c">cpl_imagelist_collapse_minmax_create()</a>, <a class="el" href="group__cpl__imagelist.html#ga7f952c936047c01580118d32baf146e5">cpl_imagelist_collapse_sigclip_create()</a>, <a class="el" href="group__cpl__imagelist.html#ga94e27dfea06bc089d018e4c5a3b6a4be">cpl_imagelist_is_uniform()</a>, <a class="el" href="group__cpl__imagelist.html#gad6bce4e990300800fa351fe73d0865b6">cpl_imagelist_set()</a>, <a class="el" href="group__cpl__imagelist.html#gaebff09158515dcd0e9e95a32f3678631">cpl_imagelist_swap_axis_create()</a>, <a class="el" href="group__cpl__mask.html#ga876fa3873a09a7ed4a473432b399c9a2">cpl_mask_threshold_image()</a>, <a class="el" href="group__cpl__mask.html#gae96b3b0d506ef4f97f0ce2d8d0d70d22">cpl_mask_threshold_image_create()</a>, <a class="el" href="group__cpl__plot.html#gac52d4503c66e0878a162909b84120ccd">cpl_plot_image()</a>, <a class="el" href="group__cpl__plot.html#gaef75b77f4d1a0642db7460a7a7569d70">cpl_plot_image_col()</a>, <a class="el" href="group__cpl__plot.html#ga1f32ac705a1e262a4c415135e8a30103">cpl_plot_image_row()</a>, and <a class="el" href="group__cpl__test.html#gadaf047b456b9110bc1017d2a594c328e">cpl_test_get_bytes_image()</a>.</p>
</div>
</div>
<a class="anchor" id="ga1c0150d807aa6828bf3e355435a4e973"></a>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">double cpl_image_get_sqflux </td>
<td>(</td>
<td class="paramtype">const cpl_image * </td>
<td class="paramname"><em>image</em></td><td>)</td>
<td></td>
</tr>
</table>
</div><div class="memdoc">
<p>Computes the sum of squared values over an image. </p>
<dl class="params"><dt>Parameters</dt><dd>
<table class="params">
<tr><td class="paramname">image</td><td>input image. </td></tr>
</table>
</dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>the sqaure flux </dd></dl>
<dl class="section see"><dt>See also</dt><dd><a class="el" href="group__cpl__image.html#ga9767b78ea3e6318af12b28371356a2c0" title="computes minimum pixel value over an image. ">cpl_image_get_min()</a> </dd></dl>
</div>
</div>
<a class="anchor" id="ga1ca34e6567a610a52026b373dddd787c"></a>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">double cpl_image_get_sqflux_window </td>
<td>(</td>
<td class="paramtype">const cpl_image * </td>
<td class="paramname"><em>image</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype"><a class="el" href="group__cpl__type.html#gacc431432a4fedf19ec6f7668dda3fbf0">cpl_size</a> </td>
<td class="paramname"><em>llx</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype"><a class="el" href="group__cpl__type.html#gacc431432a4fedf19ec6f7668dda3fbf0">cpl_size</a> </td>
<td class="paramname"><em>lly</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype"><a class="el" href="group__cpl__type.html#gacc431432a4fedf19ec6f7668dda3fbf0">cpl_size</a> </td>
<td class="paramname"><em>urx</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype"><a class="el" href="group__cpl__type.html#gacc431432a4fedf19ec6f7668dda3fbf0">cpl_size</a> </td>
<td class="paramname"><em>ury</em> </td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td>
</tr>
</table>
</div><div class="memdoc">
<p>Computes the sum of squared values over an image sub-window. </p>
<dl class="params"><dt>Parameters</dt><dd>
<table class="params">
<tr><td class="paramname">image</td><td>input image. </td></tr>
<tr><td class="paramname">llx</td><td>Lower left x position (FITS convention, 1 for leftmost) </td></tr>
<tr><td class="paramname">lly</td><td>Lower left y position (FITS convention, 1 for lowest) </td></tr>
<tr><td class="paramname">urx</td><td>Upper right x position (FITS convention) </td></tr>
<tr><td class="paramname">ury</td><td>Upper right y position (FITS convention) </td></tr>
</table>
</dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>the square flux </dd></dl>
<dl class="section see"><dt>See also</dt><dd><a class="el" href="group__cpl__image.html#ga39838b28f7c62ae29ee082402a5e8ed6" title="computes minimum pixel value over an image sub-window. ">cpl_image_get_min_window()</a> </dd></dl>
</div>
</div>
<a class="anchor" id="gaa8f6538e9c8c638bc3a23b50332411fb"></a>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">double cpl_image_get_stdev </td>
<td>(</td>
<td class="paramtype">const cpl_image * </td>
<td class="paramname"><em>image</em></td><td>)</td>
<td></td>
</tr>
</table>
</div><div class="memdoc">
<p>computes pixel standard deviation over an image. </p>
<dl class="params"><dt>Parameters</dt><dd>
<table class="params">
<tr><td class="paramname">image</td><td>input image. </td></tr>
</table>
</dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>the standard deviation value </dd></dl>
<dl class="section see"><dt>See also</dt><dd><a class="el" href="group__cpl__image.html#ga9767b78ea3e6318af12b28371356a2c0" title="computes minimum pixel value over an image. ">cpl_image_get_min()</a> </dd></dl>
</div>
</div>
<a class="anchor" id="ga0e366eb2c54499be78741bd4da925604"></a>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">double cpl_image_get_stdev_window </td>
<td>(</td>
<td class="paramtype">const cpl_image * </td>
<td class="paramname"><em>image</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype"><a class="el" href="group__cpl__type.html#gacc431432a4fedf19ec6f7668dda3fbf0">cpl_size</a> </td>
<td class="paramname"><em>llx</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype"><a class="el" href="group__cpl__type.html#gacc431432a4fedf19ec6f7668dda3fbf0">cpl_size</a> </td>
<td class="paramname"><em>lly</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype"><a class="el" href="group__cpl__type.html#gacc431432a4fedf19ec6f7668dda3fbf0">cpl_size</a> </td>
<td class="paramname"><em>urx</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype"><a class="el" href="group__cpl__type.html#gacc431432a4fedf19ec6f7668dda3fbf0">cpl_size</a> </td>
<td class="paramname"><em>ury</em> </td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td>
</tr>
</table>
</div><div class="memdoc">
<p>computes pixel standard deviation over an image sub-window. </p>
<dl class="params"><dt>Parameters</dt><dd>
<table class="params">
<tr><td class="paramname">image</td><td>input image. </td></tr>
<tr><td class="paramname">llx</td><td>Lower left x position (FITS convention, 1 for leftmost) </td></tr>
<tr><td class="paramname">lly</td><td>Lower left y position (FITS convention, 1 for lowest) </td></tr>
<tr><td class="paramname">urx</td><td>Upper right x position (FITS convention) </td></tr>
<tr><td class="paramname">ury</td><td>Upper right y position (FITS convention) </td></tr>
</table>
</dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>the standard deviation value </dd></dl>
<dl class="section see"><dt>See also</dt><dd><a class="el" href="group__cpl__image.html#ga39838b28f7c62ae29ee082402a5e8ed6" title="computes minimum pixel value over an image sub-window. ">cpl_image_get_min_window()</a> </dd></dl>
<p>Referenced by <a class="el" href="group__cpl__detector.html#gad77be43229e187b59bad4cdd766a53d0">cpl_flux_get_noise_ring()</a>.</p>
</div>
</div>
<a class="anchor" id="ga17f97e60794f88e7f06b85cccbecc132"></a>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname"><a class="el" href="group__cpl__type.html#ga01345c598396c7cd159979734adfb57d">cpl_type</a> cpl_image_get_type </td>
<td>(</td>
<td class="paramtype">const cpl_image * </td>
<td class="paramname"><em>img</em></td><td>)</td>
<td></td>
</tr>
</table>
</div><div class="memdoc">
<p>Get the image type. </p>
<dl class="params"><dt>Parameters</dt><dd>
<table class="params">
<tr><td class="paramname">img</td><td>a cpl_image object </td></tr>
</table>
</dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>The image type or CPL_TYPE_INVALID on NULL input.</dd></dl>
<p>Possible <a class="el" href="group__cpl__error.html#ga49a0c316d52d2afbfd9fd94b95344900" title="Available error codes. ">_cpl_error_code_</a> set in this function:</p><ul>
<li>CPL_ERROR_NULL_INPUT if an input pointer is NULL </li>
</ul>
<p>References <a class="el" href="group__cpl__error.html#gafb123879d8683c6d63681f433dc19bd0">cpl_ensure</a>, <a class="el" href="group__cpl__error.html#gga49a0c316d52d2afbfd9fd94b95344900a7b054cf7927d1bd0a9b3693a6715be84">CPL_ERROR_NULL_INPUT</a>, and <a class="el" href="group__cpl__type.html#gga3f03371e201544e9115b40065e47f086a557ce1b89a9acd48254c302ec1eed956">CPL_TYPE_INVALID</a>.</p>
<p>Referenced by <a class="el" href="group__cpl__apertures.html#ga23b66826669fa90caafd5ad3060a116d">cpl_apertures_new_from_image()</a>, <a class="el" href="group__cpl__detector.html#ga83fd1a1d48eeeb444d6a1a84c6d5e2de">cpl_detector_interpolate_rejected()</a>, <a class="el" href="group__cpl__fit.html#ga8004d897c449d503c56f14ca99cf475b">cpl_fit_image_gaussian()</a>, <a class="el" href="group__cpl__geom__img.html#ga135df3510913add18d5550a8aa356923">cpl_geom_img_offset_fine()</a>, <a class="el" href="group__cpl__geom__img.html#ga8df5c11aeb84394817af6a0680c2859c">cpl_geom_img_offset_saa()</a>, <a class="el" href="group__cpl__image.html#ga3bd51e4922065f67d7cdcc4043c6b0cd">cpl_image_add_scalar()</a>, <a class="el" href="group__cpl__image.html#ga6e4e66328086841fcd96e2eec56a7bb7">cpl_image_and()</a>, <a class="el" href="group__cpl__image.html#ga7b1a20dae105755712e56ea22942add5">cpl_image_and_scalar()</a>, <a class="el" href="group__cpl__image.html#gad3951035c6da7fbdf0fa4e8e06e97fe9">cpl_image_collapse_window_create()</a>, <a class="el" href="group__cpl__image.html#ga13a42c86638d087b5a097c87e36ea7bc">cpl_image_copy()</a>, <a class="el" href="group__cpl__image.html#gaa5075dc76993fd8a36b7b11b682be3e6">cpl_image_divide_scalar()</a>, <a class="el" href="group__cpl__image.html#gaf7cf65200a127f8cfb2c8deb635791d6">cpl_image_exponential()</a>, <a class="el" href="group__cpl__image.html#ga3a2ac9628c7dd3d8bc8355980474af72">cpl_image_fill_jacobian()</a>, <a class="el" href="group__cpl__image.html#ga9da9342bdd22b4db42abd6cdf32dd5c3">cpl_image_fill_jacobian_polynomial()</a>, <a class="el" href="group__cpl__image.html#gacabd23385727059b61a8f20181485b05">cpl_image_filter()</a>, <a class="el" href="group__cpl__image.html#ga09c5ec8125d5ad2d14824106ac78061c">cpl_image_filter_mask()</a>, <a class="el" href="group__cpl__image.html#ga3cee6b4b3544f5e44d246d31731fedc9">cpl_image_fit_gaussian()</a>, <a class="el" href="group__cpl__image.html#ga4d9138130be33785d3417f78c02c9341">cpl_image_hypot()</a>, <a class="el" href="group__cpl__image.html#ga459e938fdb606d6b8309cd52ef5e42fd">cpl_image_logarithm()</a>, <a class="el" href="group__cpl__image.html#gaf2a2500024307801272227e9d6abbbaa">cpl_image_multiply_scalar()</a>, <a class="el" href="group__cpl__image.html#ga22eb04de3cd84dade9190302c705e9a5">cpl_image_not()</a>, <a class="el" href="group__cpl__image.html#gab458b92eba7eea710c82fab760ac92b2">cpl_image_or()</a>, <a class="el" href="group__cpl__image.html#gad2984ac935275437f2f8ed4c5a8cd86c">cpl_image_or_scalar()</a>, <a class="el" href="group__cpl__image.html#gad657aba1581d332aa8ba1d101f0269bd">cpl_image_power()</a>, <a class="el" href="group__cpl__image.html#gaa636187251be1b861b2ee370dea3a3b9">cpl_image_reject_value()</a>, <a class="el" href="group__cpl__image.html#gae6e76e5c9c03f0da6f57d21f3060146f">cpl_image_subtract_scalar()</a>, <a class="el" href="group__cpl__image.html#ga53d75eb2e23114e4870c4d523081bfda">cpl_image_warp()</a>, <a class="el" href="group__cpl__image.html#ga1a0b22a6882d30ffe5de44afe04a016e">cpl_image_xor()</a>, <a class="el" href="group__cpl__image.html#ga1599090c62fe7b0fdcbb7231e95c9a19">cpl_image_xor_scalar()</a>, <a class="el" href="group__cpl__imagelist.html#ga279d1cfa700e3da60be0e569e56080c4">cpl_imagelist_cast()</a>, <a class="el" href="group__cpl__imagelist.html#gaeb7837c7b8405c3cdcb507bce6f30108">cpl_imagelist_collapse_median_create()</a>, <a class="el" href="group__cpl__imagelist.html#gaaf3f105e8e1a06a12406e18c5f82d57c">cpl_imagelist_collapse_minmax_create()</a>, <a class="el" href="group__cpl__imagelist.html#ga7f952c936047c01580118d32baf146e5">cpl_imagelist_collapse_sigclip_create()</a>, <a class="el" href="group__cpl__imagelist.html#ga94e27dfea06bc089d018e4c5a3b6a4be">cpl_imagelist_is_uniform()</a>, <a class="el" href="group__cpl__imagelist.html#gad6bce4e990300800fa351fe73d0865b6">cpl_imagelist_set()</a>, <a class="el" href="group__cpl__imagelist.html#gaebff09158515dcd0e9e95a32f3678631">cpl_imagelist_swap_axis_create()</a>, <a class="el" href="group__cpl__mask.html#ga876fa3873a09a7ed4a473432b399c9a2">cpl_mask_threshold_image()</a>, <a class="el" href="group__cpl__plot.html#gac52d4503c66e0878a162909b84120ccd">cpl_plot_image()</a>, <a class="el" href="group__cpl__plot.html#gaef75b77f4d1a0642db7460a7a7569d70">cpl_plot_image_col()</a>, <a class="el" href="group__cpl__plot.html#ga1f32ac705a1e262a4c415135e8a30103">cpl_plot_image_row()</a>, and <a class="el" href="group__cpl__test.html#gadaf047b456b9110bc1017d2a594c328e">cpl_test_get_bytes_image()</a>.</p>
</div>
</div>
<a class="anchor" id="ga4d9138130be33785d3417f78c02c9341"></a>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname"><a class="el" href="group__cpl__error.html#ga44b4287e8a7a22122b94c220a1dd9459">cpl_error_code</a> cpl_image_hypot </td>
<td>(</td>
<td class="paramtype">cpl_image * </td>
<td class="paramname"><em>self</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">const cpl_image * </td>
<td class="paramname"><em>first</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">const cpl_image * </td>
<td class="paramname"><em>second</em> </td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td>
</tr>
</table>
</div><div class="memdoc">
<p>The pixel-wise Euclidean distance function of the images. </p>
<dl class="params"><dt>Parameters</dt><dd>
<table class="params">
<tr><td class="paramname">self</td><td>Pre-allocated image to hold the result </td></tr>
<tr><td class="paramname">first</td><td>First operand, or NULL for an in-place operation </td></tr>
<tr><td class="paramname">second</td><td>Second operand </td></tr>
</table>
</dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>CPL_ERROR_NONE or the relevant the <a class="el" href="group__cpl__error.html#ga49a0c316d52d2afbfd9fd94b95344900" title="Available error codes. ">_cpl_error_code_</a> on error</dd></dl>
<p>The Euclidean distance function is useful for gaussian error propagation on addition/subtraction operations.</p>
<p>For pixel values a and b the Euclidean distance c is defined as: $$c = sqrt{a^2 + b^2}$$</p>
<p>first may be NULL, in this case the distance is computed in-place on self using second as the other operand.</p>
<p>Images can be of type CPL_TYPE_FLOAT or CPL_TYPE_DOUBLE.</p>
<p>If both input operands are of type CPL_TYPE_FLOAT the distance is computed in single precision (using hypotf()), otherwise in double precision (using hypot()).</p>
<p>Possible <a class="el" href="group__cpl__error.html#ga49a0c316d52d2afbfd9fd94b95344900" title="Available error codes. ">_cpl_error_code_</a> set in this function:</p><ul>
<li>CPL_ERROR_NULL_INPUT if an input pointer is NULL</li>
<li>CPL_ERROR_INCOMPATIBLE_INPUT if the images have different sizes</li>
<li>CPL_ERROR_INVALID_TYPE if the passed image type is not supported </li>
</ul>
<p>References <a class="el" href="group__cpl__error.html#gaf18e95fbc6fc2cfde2a2cc8a0920b12d">cpl_ensure_code</a>, <a class="el" href="group__cpl__error.html#gga49a0c316d52d2afbfd9fd94b95344900a67b9f44eb1db1ab12f0575dbb878c0fd">CPL_ERROR_INCOMPATIBLE_INPUT</a>, <a class="el" href="group__cpl__error.html#gga49a0c316d52d2afbfd9fd94b95344900a7907a24014a3a45aebe5ee1842f0c6f3">CPL_ERROR_INVALID_TYPE</a>, <a class="el" href="group__cpl__error.html#gga49a0c316d52d2afbfd9fd94b95344900a0239c1c63e9d21e98e45221a3ad60406">CPL_ERROR_NONE</a>, <a class="el" href="group__cpl__error.html#gga49a0c316d52d2afbfd9fd94b95344900a7b054cf7927d1bd0a9b3693a6715be84">CPL_ERROR_NULL_INPUT</a>, <a class="el" href="group__cpl__image.html#ga17f97e60794f88e7f06b85cccbecc132">cpl_image_get_type()</a>, <a class="el" href="group__cpl__type.html#gga3f03371e201544e9115b40065e47f086a4923f03f3a673edd344b0d81835ca69e">CPL_TYPE_DOUBLE</a>, <a class="el" href="group__cpl__type.html#gga3f03371e201544e9115b40065e47f086aa44c37e26b9040a96e3a49b405946942">CPL_TYPE_FLOAT</a>, and <a class="el" href="group__cpl__type.html#ga994816f2d7624221964f91e0b9556578">cpl_type_get_name()</a>.</p>
</div>
</div>
<a class="anchor" id="gaa81c4cf5dca4516e8423dde705cff48b"></a>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">cpl_bivector* cpl_image_iqe </td>
<td>(</td>
<td class="paramtype">const cpl_image * </td>
<td class="paramname"><em>in</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype"><a class="el" href="group__cpl__type.html#gacc431432a4fedf19ec6f7668dda3fbf0">cpl_size</a> </td>
<td class="paramname"><em>llx</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype"><a class="el" href="group__cpl__type.html#gacc431432a4fedf19ec6f7668dda3fbf0">cpl_size</a> </td>
<td class="paramname"><em>lly</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype"><a class="el" href="group__cpl__type.html#gacc431432a4fedf19ec6f7668dda3fbf0">cpl_size</a> </td>
<td class="paramname"><em>urx</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype"><a class="el" href="group__cpl__type.html#gacc431432a4fedf19ec6f7668dda3fbf0">cpl_size</a> </td>
<td class="paramname"><em>ury</em> </td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td>
</tr>
</table>
</div><div class="memdoc">
<p>Compute an image quality estimation for an object. </p>
<dl class="params"><dt>Parameters</dt><dd>
<table class="params">
<tr><td class="paramname">in</td><td>the input image </td></tr>
<tr><td class="paramname">llx</td><td></td></tr>
<tr><td class="paramname">lly</td><td>the zone to analyse ((1, 1) for the first pixel) </td></tr>
<tr><td class="paramname">urx</td><td>The zone must be at least 4 by 4 pixels </td></tr>
<tr><td class="paramname">ury</td><td></td></tr>
</table>
</dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>a newly allocated cpl_bivector containing the results or NULL in error case.</dd></dl>
<p>This function makes internal use of the iqe() MIDAS function (called here cpl_iqe()) written by P. Grosbol. Refer to the MIDAS documentation for more details. This function has proven to give good results over the years when called from RTD. The goal is to provide the exact same functionality in CPL as the one provided in RTD. The code is simply copied from the MIDAS package, it is not maintained by the CPL team.</p>
<p>The returned object must be deallocated with <a class="el" href="group__cpl__bivector.html#gab49cf8bcea934646b96a4d4e476d7e54" title="Delete a cpl_bivector. ">cpl_bivector_delete()</a>. It contains in the first vector the computed values, and in the second one, the associated errors. The computed values are:</p><ul>
<li>x position of the object</li>
<li>y position of the object</li>
<li>FWHM along the major axis</li>
<li>FWHM along the minor axis</li>
<li>the angle of the major axis with the horizontal in degrees</li>
<li>the peak value of the object</li>
<li>the background computed</li>
</ul>
<p>The bad pixels map of the image is not taken into account. The input image must be of type float.</p>
<p>Possible <a class="el" href="group__cpl__error.html#ga49a0c316d52d2afbfd9fd94b95344900" title="Available error codes. ">_cpl_error_code_</a> set in this function:</p><ul>
<li>CPL_ERROR_NULL_INPUT if (one of) the input pointer(s) is NULL</li>
<li>CPL_ERROR_ILLEGAL_INPUT if the specified zone is not valid or if the computation fails on this zone</li>
<li>CPL_ERROR_INVALID_TYPE if the input image has the wrong type</li>
</ul>
<dl class="section note"><dt>Note</dt><dd>This function may lead to a strong underestimation of the sigmas and FWHMs (up to 25% underestimation in the case of noiseless data with a box 4 times the sigma, 1% underestimation in the case of noiseless data with a box 7 times the sigma). </dd></dl>
<p>References <a class="el" href="group__cpl__bivector.html#ga1f13e7e98cc006f90242e339d7542776">cpl_bivector_get_x_data()</a>, <a class="el" href="group__cpl__bivector.html#ga0b602bdb76caaae732af9825dd5a533b">cpl_bivector_get_y_data()</a>, <a class="el" href="group__cpl__bivector.html#ga12e8941b1eda64be7e5dafe16ce4dc24">cpl_bivector_new()</a>, <a class="el" href="group__cpl__error.html#gafb123879d8683c6d63681f433dc19bd0">cpl_ensure</a>, <a class="el" href="group__cpl__error.html#gga49a0c316d52d2afbfd9fd94b95344900ae6ab32df318c1af9afcddcb8249cad51">CPL_ERROR_ILLEGAL_INPUT</a>, <a class="el" href="group__cpl__error.html#gga49a0c316d52d2afbfd9fd94b95344900a7907a24014a3a45aebe5ee1842f0c6f3">CPL_ERROR_INVALID_TYPE</a>, <a class="el" href="group__cpl__error.html#gga49a0c316d52d2afbfd9fd94b95344900a7b054cf7927d1bd0a9b3693a6715be84">CPL_ERROR_NULL_INPUT</a>, <a class="el" href="group__cpl__image.html#ga272e4e004716651b94d6d36e575b6841">cpl_image_delete()</a>, <a class="el" href="group__cpl__image.html#ga2f0f5804717110451f74d3b9e1bdf8c7">cpl_image_extract()</a>, <a class="el" href="group__cpl__image.html#gac2274dda6fec382047a7377c5b9925f5">cpl_image_get_data_float()</a>, <a class="el" href="group__cpl__image.html#gab5a6bc059aa1d38c37ab5852b5170e45">cpl_image_get_size_x()</a>, <a class="el" href="group__cpl__image.html#gaf3495f9be1d6892cfed9c5232ccee350">cpl_image_get_size_y()</a>, and <a class="el" href="group__cpl__type.html#gga3f03371e201544e9115b40065e47f086aa44c37e26b9040a96e3a49b405946942">CPL_TYPE_FLOAT</a>.</p>
<p>Referenced by <a class="el" href="group__cpl__image.html#ga3cee6b4b3544f5e44d246d31731fedc9">cpl_image_fit_gaussian()</a>.</p>
</div>
</div>
<a class="anchor" id="gaa426e0c52b2188ceac9632b7c15e2aeb"></a>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">int cpl_image_is_rejected </td>
<td>(</td>
<td class="paramtype">const cpl_image * </td>
<td class="paramname"><em>im</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype"><a class="el" href="group__cpl__type.html#gacc431432a4fedf19ec6f7668dda3fbf0">cpl_size</a> </td>
<td class="paramname"><em>x</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype"><a class="el" href="group__cpl__type.html#gacc431432a4fedf19ec6f7668dda3fbf0">cpl_size</a> </td>
<td class="paramname"><em>y</em> </td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td>
</tr>
</table>
</div><div class="memdoc">
<p>Test if a pixel is good or bad. </p>
<dl class="params"><dt>Parameters</dt><dd>
<table class="params">
<tr><td class="paramname">im</td><td>the input image </td></tr>
<tr><td class="paramname">x</td><td>the x pixel position in the image (first pixel is 1) </td></tr>
<tr><td class="paramname">y</td><td>the y pixel position in the image (first pixel is 1) </td></tr>
</table>
</dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>1 if the pixel is bad, 0 if the pixel is good, negative on error.</dd></dl>
<p>Possible <a class="el" href="group__cpl__error.html#ga49a0c316d52d2afbfd9fd94b95344900" title="Available error codes. ">_cpl_error_code_</a> set in this function:</p><ul>
<li>CPL_ERROR_NULL_INPUT if an input pointer is NULL</li>
<li>CPL_ERROR_ACCESS_OUT_OF_RANGE if the specified position is out of the image </li>
</ul>
<p>References <a class="el" href="group__cpl__error.html#gafb123879d8683c6d63681f433dc19bd0">cpl_ensure</a>, <a class="el" href="group__cpl__error.html#gga49a0c316d52d2afbfd9fd94b95344900a0d916ea6a7e198a74863ecd9ea03d733">CPL_ERROR_ACCESS_OUT_OF_RANGE</a>, <a class="el" href="group__cpl__error.html#gga49a0c316d52d2afbfd9fd94b95344900a7b054cf7927d1bd0a9b3693a6715be84">CPL_ERROR_NULL_INPUT</a>, and <a class="el" href="group__cpl__mask.html#gabc90bc577ad09eb79cbd702cbd69dec2">cpl_mask_get()</a>.</p>
</div>
</div>
<a class="anchor" id="gad38071b4db44e17818a0bade99a123c0"></a>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">cpl_image* cpl_image_labelise_mask_create </td>
<td>(</td>
<td class="paramtype">const cpl_mask * </td>
<td class="paramname"><em>in</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype"><a class="el" href="group__cpl__type.html#gacc431432a4fedf19ec6f7668dda3fbf0">cpl_size</a> * </td>
<td class="paramname"><em>nbobjs</em> </td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td>
</tr>
</table>
</div><div class="memdoc">
<p>Labelise a mask to differentiate different objects. </p>
<dl class="params"><dt>Parameters</dt><dd>
<table class="params">
<tr><td class="paramname">in</td><td>mask to labelise </td></tr>
<tr><td class="paramname">nbobjs</td><td>If non-NULL, number of objects found on success </td></tr>
</table>
</dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>A newly allocated label image or NULL on error</dd></dl>
<p>This function labelises all blobs in a mask. All 4-neighbour connected zones set to 1 in the input mask will end up in the returned integer image as zones where all pixels are set to the same (unique for this blob in this image) label. A non-recursive flood-fill is applied to label the zones. The flood-fill is dimensioned by the number of lines in the image, and the maximal number of lines possibly covered by a blob. The returned image must be deallocated with <a class="el" href="group__cpl__image.html#ga272e4e004716651b94d6d36e575b6841" title="Free memory associated to an cpl_image object. ">cpl_image_delete()</a></p>
<p>Possible <a class="el" href="group__cpl__error.html#ga49a0c316d52d2afbfd9fd94b95344900" title="Available error codes. ">_cpl_error_code_</a> set in this function:</p><ul>
<li>CPL_ERROR_NULL_INPUT if the input mask is NULL </li>
</ul>
<p>References <a class="el" href="group__cpl__error.html#gafb123879d8683c6d63681f433dc19bd0">cpl_ensure</a>, <a class="el" href="group__cpl__error.html#gga49a0c316d52d2afbfd9fd94b95344900a7b054cf7927d1bd0a9b3693a6715be84">CPL_ERROR_NULL_INPUT</a>, <a class="el" href="group__cpl__memory.html#ga9cd2b64cbbe05ec9f34fda048184b4d1">cpl_free()</a>, <a class="el" href="group__cpl__image.html#ga0cf5fafaaece943afc2949c5d04d29ba">cpl_image_get_data_int()</a>, <a class="el" href="group__cpl__image.html#gab95562a5dbc2372f52ce644c50bfcd26">cpl_image_new()</a>, <a class="el" href="group__cpl__memory.html#gac884edcb0a592489c65239d0e5d08785">cpl_malloc()</a>, <a class="el" href="group__cpl__mask.html#gac9ab11af7ef4ff0b8424141271fd685b">cpl_mask_get_data_const()</a>, <a class="el" href="group__cpl__mask.html#gaefb412dd754146bc78faf7356209a0e6">cpl_mask_get_size_x()</a>, <a class="el" href="group__cpl__mask.html#ga2c515a5ba20381c54c0496c1b9769495">cpl_mask_get_size_y()</a>, and <a class="el" href="group__cpl__type.html#gga3f03371e201544e9115b40065e47f086ae333db5ccea0813ccd892525b4ba1345">CPL_TYPE_INT</a>.</p>
<p>Referenced by <a class="el" href="group__cpl__apertures.html#ga6d1a9d2831508426141c99b425e9dcc6">cpl_apertures_extract_mask()</a>.</p>
</div>
</div>
<a class="anchor" id="ga4a1d222d9e71fbccc9596b0d10eaf9f7"></a>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">cpl_image* cpl_image_load </td>
<td>(</td>
<td class="paramtype">const char * </td>
<td class="paramname"><em>filename</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype"><a class="el" href="group__cpl__type.html#ga01345c598396c7cd159979734adfb57d">cpl_type</a> </td>
<td class="paramname"><em>im_type</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype"><a class="el" href="group__cpl__type.html#gacc431432a4fedf19ec6f7668dda3fbf0">cpl_size</a> </td>
<td class="paramname"><em>pnum</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype"><a class="el" href="group__cpl__type.html#gacc431432a4fedf19ec6f7668dda3fbf0">cpl_size</a> </td>
<td class="paramname"><em>xtnum</em> </td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td>
</tr>
</table>
</div><div class="memdoc">
<p>Load an image from a FITS file. </p>
<dl class="params"><dt>Parameters</dt><dd>
<table class="params">
<tr><td class="paramname">filename</td><td>Name of the file to load from. </td></tr>
<tr><td class="paramname">im_type</td><td>Type of the created image </td></tr>
<tr><td class="paramname">pnum</td><td>Plane number in the Data Unit (0 for first) </td></tr>
<tr><td class="paramname">xtnum</td><td>Extension number in the file (0 for primary HDU) </td></tr>
</table>
</dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>1 newly allocated image or NULL on error</dd></dl>
<p>This function loads an image from a FITS file (NAXIS=2 or 3).</p>
<p>The returned image has to be deallocated with <a class="el" href="group__cpl__image.html#ga272e4e004716651b94d6d36e575b6841" title="Free memory associated to an cpl_image object. ">cpl_image_delete()</a>.</p>
<p>The passed type for the output image can be : CPL_TYPE_FLOAT, CPL_TYPE_DOUBLE or CPL_TYPE_INT.</p>
<p>This type is there to specify the type of the cpl_image that will be created by the function. It is totally independant from the way the data are stored in the FITS file. A FITS image containg float pixels can be loaded as a cpl_image of type double. In this case, the user would specify CPL_TYPE_DOUBLE as im_type.</p>
<p>Additionally, CPL_TYPE_UNSPECIFIED can be passed to inherit the FITS file type. The type of the image is defined based on the BITPIX information of the FITS file. After a successful call, the type of the created image can be accessed via <a class="el" href="group__cpl__image.html#ga17f97e60794f88e7f06b85cccbecc132" title="Get the image type. ">cpl_image_get_type()</a>.</p>
<p>'xtnum' specifies from which extension the image should be loaded. This could be 0 for the main data section (files without extension), or any number between 1 and N, where N is the number of extensions present in the file.</p>
<p>The requested plane number runs from 0 to nplanes-1, where nplanes is the number of planes present in the requested data section.</p>
<p>The created image has an empty bad pixel map.</p>
<p>Examples: </p><div class="fragment"><div class="line"><a name="l00001"></a><span class="lineno"> 1</span> // Load as a float image the only image in FITS file (a.fits) without ext. </div>
<div class="line"><a name="l00002"></a><span class="lineno"> 2</span> // and NAXIS=2.</div>
<div class="line"><a name="l00003"></a><span class="lineno"> 3</span> cpl_image * im = cpl_image_load("a.fits", CPL_TYPE_FLOAT, 0, 0);</div>
<div class="line"><a name="l00004"></a><span class="lineno"> 4</span> // Load as a double image the first plane in a FITS cube (a.fits) without </div>
<div class="line"><a name="l00005"></a><span class="lineno"> 5</span> // extension, NAXIS=3 and NAXIS3=128</div>
<div class="line"><a name="l00006"></a><span class="lineno"> 6</span> cpl_image * im = cpl_image_load("a.fits", CPL_TYPE_DOUBLE, 0, 0);</div>
<div class="line"><a name="l00007"></a><span class="lineno"> 7</span> // Load as an integer image the third plane in a FITS cube (a.fits) without </div>
<div class="line"><a name="l00008"></a><span class="lineno"> 8</span> // extension, NAXIS=3 and NAXIS3=128</div>
<div class="line"><a name="l00009"></a><span class="lineno"> 9</span> cpl_image * im = cpl_image_load("a.fits", CPL_TYPE_INT, 2, 0);</div>
<div class="line"><a name="l00010"></a><span class="lineno"> 10</span> // Load as a double image the first plane from extension 5</div>
<div class="line"><a name="l00011"></a><span class="lineno"> 11</span> cpl_image * im = cpl_image_load("a.fits", CPL_TYPE_DOUBLE, 0, 5);</div>
<div class="line"><a name="l00012"></a><span class="lineno"> 12</span> // Load as a double image the third plane in extension 5</div>
<div class="line"><a name="l00013"></a><span class="lineno"> 13</span> cpl_image * im = cpl_image_load("a.fits", CPL_TYPE_DOUBLE, 2, 5);</div>
</div><!-- fragment --><p>Possible <a class="el" href="group__cpl__error.html#ga49a0c316d52d2afbfd9fd94b95344900" title="Available error codes. ">_cpl_error_code_</a> set in this function:</p><ul>
<li>CPL_ERROR_FILE_IO if the file cannot be opened or does not exist</li>
<li>CPL_ERROR_BAD_FILE_FORMAT if the data cannot be loaded from the file</li>
<li>CPL_ERROR_INVALID_TYPE if the passed pixel type is not supported</li>
<li>CPL_ERROR_ILLEGAL_INPUT if the passed extension number is negative</li>
<li>CPL_ERROR_DATA_NOT_FOUND if the specified extension has no image data </li>
</ul>
</div>
</div>
<a class="anchor" id="ga4af6f45a9bcdbe9423ce24f00f4d2757"></a>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">cpl_image* cpl_image_load_window </td>
<td>(</td>
<td class="paramtype">const char * </td>
<td class="paramname"><em>filename</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype"><a class="el" href="group__cpl__type.html#ga01345c598396c7cd159979734adfb57d">cpl_type</a> </td>
<td class="paramname"><em>im_type</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype"><a class="el" href="group__cpl__type.html#gacc431432a4fedf19ec6f7668dda3fbf0">cpl_size</a> </td>
<td class="paramname"><em>pnum</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype"><a class="el" href="group__cpl__type.html#gacc431432a4fedf19ec6f7668dda3fbf0">cpl_size</a> </td>
<td class="paramname"><em>xtnum</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype"><a class="el" href="group__cpl__type.html#gacc431432a4fedf19ec6f7668dda3fbf0">cpl_size</a> </td>
<td class="paramname"><em>llx</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype"><a class="el" href="group__cpl__type.html#gacc431432a4fedf19ec6f7668dda3fbf0">cpl_size</a> </td>
<td class="paramname"><em>lly</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype"><a class="el" href="group__cpl__type.html#gacc431432a4fedf19ec6f7668dda3fbf0">cpl_size</a> </td>
<td class="paramname"><em>urx</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype"><a class="el" href="group__cpl__type.html#gacc431432a4fedf19ec6f7668dda3fbf0">cpl_size</a> </td>
<td class="paramname"><em>ury</em> </td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td>
</tr>
</table>
</div><div class="memdoc">
<p>Load an image from a FITS file. </p>
<dl class="params"><dt>Parameters</dt><dd>
<table class="params">
<tr><td class="paramname">filename</td><td>Name of the file to load from. </td></tr>
<tr><td class="paramname">im_type</td><td>Type of the created image </td></tr>
<tr><td class="paramname">pnum</td><td>Plane number in the Data Unit (0 for first) </td></tr>
<tr><td class="paramname">xtnum</td><td>Extension number in the file. </td></tr>
<tr><td class="paramname">llx</td><td>Lower left x position (FITS convention, 1 for leftmost) </td></tr>
<tr><td class="paramname">lly</td><td>Lower left y position (FITS convention, 1 for lowest) </td></tr>
<tr><td class="paramname">urx</td><td>Upper right x position (FITS convention) </td></tr>
<tr><td class="paramname">ury</td><td>Upper right y position (FITS convention) </td></tr>
</table>
</dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>1 newly allocated image or NULL on error </dd></dl>
<dl class="section see"><dt>See also</dt><dd><a class="el" href="group__cpl__image.html#ga4a1d222d9e71fbccc9596b0d10eaf9f7" title="Load an image from a FITS file. ">cpl_image_load()</a></dd></dl>
<p>Possible <a class="el" href="group__cpl__error.html#ga49a0c316d52d2afbfd9fd94b95344900" title="Available error codes. ">_cpl_error_code_</a> set in this function:</p><ul>
<li>CPL_ERROR_FILE_IO if the file does not exist</li>
<li>CPL_ERROR_BAD_FILE_FORMAT if the data cannot be loaded from the file</li>
<li>CPL_ERROR_INVALID_TYPE if the passed pixel type is not supported</li>
<li>CPL_ERROR_ILLEGAL_INPUT if the passed position is invalid </li>
</ul>
</div>
</div>
<a class="anchor" id="ga459e938fdb606d6b8309cd52ef5e42fd"></a>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname"><a class="el" href="group__cpl__error.html#ga44b4287e8a7a22122b94c220a1dd9459">cpl_error_code</a> cpl_image_logarithm </td>
<td>(</td>
<td class="paramtype">cpl_image * </td>
<td class="paramname"><em>self</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">double </td>
<td class="paramname"><em>base</em> </td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td>
</tr>
</table>
</div><div class="memdoc">
<p>Compute the elementwise logarithm of the image. </p>
<dl class="params"><dt>Parameters</dt><dd>
<table class="params">
<tr><td class="paramname">self</td><td>Image to be modified in place. </td></tr>
<tr><td class="paramname">base</td><td>Base of the logarithm. </td></tr>
</table>
</dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>CPL_ERROR_NONE or the relevant the <a class="el" href="group__cpl__error.html#ga49a0c316d52d2afbfd9fd94b95344900" title="Available error codes. ">_cpl_error_code_</a> on error</dd></dl>
<p>Modifies the image by computing the base-scalar logarithm of each of its pixels.</p>
<p>Images can be of type CPL_TYPE_INT, CPL_TYPE_FLOAT or CPL_TYPE_DOUBLE.</p>
<p>Pixels for which the logarithm is not defined are rejected and set to zero.</p>
<p>Possible <a class="el" href="group__cpl__error.html#ga49a0c316d52d2afbfd9fd94b95344900" title="Available error codes. ">_cpl_error_code_</a> set in this function:</p><ul>
<li>CPL_ERROR_NULL_INPUT if an input pointer is NULL</li>
<li>CPL_ERROR_INVALID_TYPE if the passed image type is not supported</li>
<li>CPL_ERROR_ILLEGAL_INPUT if base is non-positive</li>
<li>CPL_ERROR_DIVISION_BY_ZERO if the base equals 1 </li>
</ul>
<p>References <a class="el" href="group__cpl__error.html#gaf18e95fbc6fc2cfde2a2cc8a0920b12d">cpl_ensure_code</a>, <a class="el" href="group__cpl__error.html#gga49a0c316d52d2afbfd9fd94b95344900a7907a24014a3a45aebe5ee1842f0c6f3">CPL_ERROR_INVALID_TYPE</a>, <a class="el" href="group__cpl__error.html#gga49a0c316d52d2afbfd9fd94b95344900a0239c1c63e9d21e98e45221a3ad60406">CPL_ERROR_NONE</a>, <a class="el" href="group__cpl__error.html#gga49a0c316d52d2afbfd9fd94b95344900a7b054cf7927d1bd0a9b3693a6715be84">CPL_ERROR_NULL_INPUT</a>, <a class="el" href="group__cpl__image.html#ga17f97e60794f88e7f06b85cccbecc132">cpl_image_get_type()</a>, <a class="el" href="group__cpl__type.html#gga3f03371e201544e9115b40065e47f086a4923f03f3a673edd344b0d81835ca69e">CPL_TYPE_DOUBLE</a>, <a class="el" href="group__cpl__type.html#gga3f03371e201544e9115b40065e47f086aa44c37e26b9040a96e3a49b405946942">CPL_TYPE_FLOAT</a>, <a class="el" href="group__cpl__type.html#ga994816f2d7624221964f91e0b9556578">cpl_type_get_name()</a>, and <a class="el" href="group__cpl__type.html#gga3f03371e201544e9115b40065e47f086ae333db5ccea0813ccd892525b4ba1345">CPL_TYPE_INT</a>.</p>
<p>Referenced by <a class="el" href="group__cpl__image.html#gabfcae6086e5678420f1e69bc7917a4bd">cpl_image_logarithm_create()</a>, and <a class="el" href="group__cpl__imagelist.html#ga1eed25b7fc540105ea5b880220900ba0">cpl_imagelist_logarithm()</a>.</p>
</div>
</div>
<a class="anchor" id="gabfcae6086e5678420f1e69bc7917a4bd"></a>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">cpl_image* cpl_image_logarithm_create </td>
<td>(</td>
<td class="paramtype">const cpl_image * </td>
<td class="paramname"><em>image</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">double </td>
<td class="paramname"><em>base</em> </td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td>
</tr>
</table>
</div><div class="memdoc">
<p>Create a new image by taking the elementwise logarithm of an image. </p>
<dl class="params"><dt>Parameters</dt><dd>
<table class="params">
<tr><td class="paramname">image</td><td>Image to take logarithm of </td></tr>
<tr><td class="paramname">base</td><td>Base of the logarithm. </td></tr>
</table>
</dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>1 newly allocated image or NULL in case of an error </dd></dl>
<dl class="section see"><dt>See also</dt><dd><a class="el" href="group__cpl__image.html#ga459e938fdb606d6b8309cd52ef5e42fd" title="Compute the elementwise logarithm of the image. ">cpl_image_logarithm</a> </dd>
<dd>
<a class="el" href="group__cpl__image.html#ga956c494049f2bff35a254ee2d91a212f" title="Create a new image by elementwise addition of a scalar to an image. ">cpl_image_add_scalar_create</a> </dd></dl>
<p>References <a class="el" href="group__cpl__error.html#gafb123879d8683c6d63681f433dc19bd0">cpl_ensure</a>, <a class="el" href="group__cpl__error.html#ga724de575c31ddf40f42786306f9dbdcb">cpl_error_get_code()</a>, <a class="el" href="group__cpl__image.html#ga272e4e004716651b94d6d36e575b6841">cpl_image_delete()</a>, <a class="el" href="group__cpl__image.html#gadebfe1dae2cbd7a59fc09b323c55c10e">cpl_image_duplicate()</a>, and <a class="el" href="group__cpl__image.html#ga459e938fdb606d6b8309cd52ef5e42fd">cpl_image_logarithm()</a>.</p>
</div>
</div>
<a class="anchor" id="gaf2e8ea696ca2967a4b57d0e7940286a2"></a>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname"><a class="el" href="group__cpl__error.html#ga44b4287e8a7a22122b94c220a1dd9459">cpl_error_code</a> cpl_image_move </td>
<td>(</td>
<td class="paramtype">cpl_image * </td>
<td class="paramname"><em>im</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype"><a class="el" href="group__cpl__type.html#gacc431432a4fedf19ec6f7668dda3fbf0">cpl_size</a> </td>
<td class="paramname"><em>nb_cut</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">const <a class="el" href="group__cpl__type.html#gacc431432a4fedf19ec6f7668dda3fbf0">cpl_size</a> * </td>
<td class="paramname"><em>new_pos</em> </td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td>
</tr>
</table>
</div><div class="memdoc">
<p>Reorganize the pixels in an image. </p>
<dl class="params"><dt>Parameters</dt><dd>
<table class="params">
<tr><td class="paramname">im</td><td>the image to reorganize </td></tr>
<tr><td class="paramname">nb_cut</td><td>the number of cut in x and y </td></tr>
<tr><td class="paramname">new_pos</td><td>array with the nb_cut^2 new positions </td></tr>
</table>
</dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>the <a class="el" href="group__cpl__error.html#ga49a0c316d52d2afbfd9fd94b95344900" title="Available error codes. ">_cpl_error_code_</a> or CPL_ERROR_NONE</dd></dl>
<p>nb_cut^2 defines in how many tiles the images will be moved. Each tile will then be moved to an other place defined in new_pos. 1 will leave the image unchanged, 2 is used to move the quadrants, etc.. new_pos contains nb_cut^2 values between 1 and nb_cut^2. The zones positions are counted from the lower left part of the image. It is not allowed to move two tiles to the same position (the relation between th new tiles positions and the initial position is bijective !).</p>
<p>The image x and y sizes have to be multiples of nb_cut.</p>
<pre class="fragment">Example:
16 17 18 6 5 4
13 14 15 3 2 1
10 11 12 ----> 12 11 10
7 8 9 9 8 7
4 5 6 18 17 16
1 2 3 15 14 13
image 3x6 cpl_image_move(image, 3, new_pos);
with new_pos = {9,8,7,6,5,4,3,2,1};</pre><p>The bad pixels are moved accordingly.</p>
<p>Possible <a class="el" href="group__cpl__error.html#ga49a0c316d52d2afbfd9fd94b95344900" title="Available error codes. ">_cpl_error_code_</a> set in this function:</p><ul>
<li>CPL_ERROR_NULL_INPUT if an input pointer is NULL</li>
<li>CPL_ERROR_ILLEGAL_INPUT if nb_cut is not strictly positive or cannot divide one of the image sizes or if the new_pos array specifies to move two tiles to the same position.</li>
<li>CPL_ERROR_INVALID_TYPE if the passed image type is not supported </li>
</ul>
<p>References <a class="el" href="group__cpl__error.html#gaf18e95fbc6fc2cfde2a2cc8a0920b12d">cpl_ensure_code</a>, <a class="el" href="group__cpl__error.html#gga49a0c316d52d2afbfd9fd94b95344900ae6ab32df318c1af9afcddcb8249cad51">CPL_ERROR_ILLEGAL_INPUT</a>, <a class="el" href="group__cpl__error.html#gga49a0c316d52d2afbfd9fd94b95344900a7907a24014a3a45aebe5ee1842f0c6f3">CPL_ERROR_INVALID_TYPE</a>, <a class="el" href="group__cpl__error.html#gga49a0c316d52d2afbfd9fd94b95344900a0239c1c63e9d21e98e45221a3ad60406">CPL_ERROR_NONE</a>, <a class="el" href="group__cpl__error.html#gga49a0c316d52d2afbfd9fd94b95344900a7b054cf7927d1bd0a9b3693a6715be84">CPL_ERROR_NULL_INPUT</a>, and <a class="el" href="group__cpl__mask.html#ga2abd710ec2b8c2e9b2de9336ea6d441f">cpl_mask_move()</a>.</p>
<p>Referenced by <a class="el" href="group__cpl__image.html#gaf5d991abde7579d8c3ef59bb372b1df8">cpl_image_fft()</a>.</p>
</div>
</div>
<a class="anchor" id="gaf528eb8af9261ad974e3050c22706012"></a>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname"><a class="el" href="group__cpl__error.html#ga44b4287e8a7a22122b94c220a1dd9459">cpl_error_code</a> cpl_image_multiply </td>
<td>(</td>
<td class="paramtype">cpl_image * </td>
<td class="paramname"><em>im1</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">const cpl_image * </td>
<td class="paramname"><em>im2</em> </td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td>
</tr>
</table>
</div><div class="memdoc">
<p>Multiply two images, store the result in the first image. </p>
<dl class="params"><dt>Parameters</dt><dd>
<table class="params">
<tr><td class="paramname">im1</td><td>first operand. </td></tr>
<tr><td class="paramname">im2</td><td>second operand. </td></tr>
</table>
</dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>the <a class="el" href="group__cpl__error.html#ga49a0c316d52d2afbfd9fd94b95344900" title="Available error codes. ">_cpl_error_code_</a> or CPL_ERROR_NONE </dd></dl>
<dl class="section see"><dt>See also</dt><dd><a class="el" href="group__cpl__image.html#gaff601b28e179b3d1e62068e7561a26e8" title="Add two images, store the result in the first image. ">cpl_image_add()</a> </dd></dl>
<p>References <a class="el" href="group__cpl__error.html#gaf18e95fbc6fc2cfde2a2cc8a0920b12d">cpl_ensure_code</a>, <a class="el" href="group__cpl__error.html#gga49a0c316d52d2afbfd9fd94b95344900a67b9f44eb1db1ab12f0575dbb878c0fd">CPL_ERROR_INCOMPATIBLE_INPUT</a>, <a class="el" href="group__cpl__error.html#gga49a0c316d52d2afbfd9fd94b95344900a0239c1c63e9d21e98e45221a3ad60406">CPL_ERROR_NONE</a>, <a class="el" href="group__cpl__error.html#gga49a0c316d52d2afbfd9fd94b95344900a7b054cf7927d1bd0a9b3693a6715be84">CPL_ERROR_NULL_INPUT</a>, <a class="el" href="group__cpl__type.html#gga3f03371e201544e9115b40065e47f086afc7205e8b040bdfdee6011685cfe4345">CPL_TYPE_DOUBLE_COMPLEX</a>, and <a class="el" href="group__cpl__type.html#gga3f03371e201544e9115b40065e47f086ab2ab0f96a382011a38ee9446626fe1e0">CPL_TYPE_FLOAT_COMPLEX</a>.</p>
</div>
</div>
<a class="anchor" id="gaab88e9fed5f6cd58a5d16e970d2da6b0"></a>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">cpl_image* cpl_image_multiply_create </td>
<td>(</td>
<td class="paramtype">const cpl_image * </td>
<td class="paramname"><em>image1</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">const cpl_image * </td>
<td class="paramname"><em>image2</em> </td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td>
</tr>
</table>
</div><div class="memdoc">
<p>Multiply two images. </p>
<dl class="params"><dt>Parameters</dt><dd>
<table class="params">
<tr><td class="paramname">image1</td><td>first operand </td></tr>
<tr><td class="paramname">image2</td><td>second operand </td></tr>
</table>
</dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>1 newly allocated image or NULL on error </dd></dl>
<dl class="section see"><dt>See also</dt><dd><a class="el" href="group__cpl__image.html#ga6126fb1c1a32987e3558970aca84a5ec" title="Add two images. ">cpl_image_add_create()</a> </dd></dl>
</div>
</div>
<a class="anchor" id="gaf2a2500024307801272227e9d6abbbaa"></a>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname"><a class="el" href="group__cpl__error.html#ga44b4287e8a7a22122b94c220a1dd9459">cpl_error_code</a> cpl_image_multiply_scalar </td>
<td>(</td>
<td class="paramtype">cpl_image * </td>
<td class="paramname"><em>self</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">double </td>
<td class="paramname"><em>scalar</em> </td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td>
</tr>
</table>
</div><div class="memdoc">
<p>Elementwise multiplication of an image with a scalar. </p>
<dl class="params"><dt>Parameters</dt><dd>
<table class="params">
<tr><td class="paramname">self</td><td>Image to be modified in place. </td></tr>
<tr><td class="paramname">scalar</td><td>Number to multiply with </td></tr>
</table>
</dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>CPL_ERROR_NONE or the relevant the <a class="el" href="group__cpl__error.html#ga49a0c316d52d2afbfd9fd94b95344900" title="Available error codes. ">_cpl_error_code_</a> on error </dd></dl>
<dl class="section see"><dt>See also</dt><dd><a class="el" href="group__cpl__image.html#ga3bd51e4922065f67d7cdcc4043c6b0cd" title="Elementwise addition of a scalar to an image. ">cpl_image_add_scalar()</a> </dd></dl>
<p>References <a class="el" href="group__cpl__error.html#gaf18e95fbc6fc2cfde2a2cc8a0920b12d">cpl_ensure_code</a>, <a class="el" href="group__cpl__error.html#gga49a0c316d52d2afbfd9fd94b95344900a7907a24014a3a45aebe5ee1842f0c6f3">CPL_ERROR_INVALID_TYPE</a>, <a class="el" href="group__cpl__error.html#gga49a0c316d52d2afbfd9fd94b95344900a0239c1c63e9d21e98e45221a3ad60406">CPL_ERROR_NONE</a>, <a class="el" href="group__cpl__error.html#gga49a0c316d52d2afbfd9fd94b95344900a7b054cf7927d1bd0a9b3693a6715be84">CPL_ERROR_NULL_INPUT</a>, and <a class="el" href="group__cpl__image.html#ga17f97e60794f88e7f06b85cccbecc132">cpl_image_get_type()</a>.</p>
<p>Referenced by <a class="el" href="group__cpl__image.html#ga096a8a3b65ad42f44f6d854c6594a4e1">cpl_image_fill_test_create()</a>, <a class="el" href="group__cpl__image.html#ga0b9c44f684a3e7781ccb5777ef001b3f">cpl_image_multiply_scalar_create()</a>, <a class="el" href="group__cpl__imagelist.html#gaf16ecb3031b9c61f25f66fb9bd89e090">cpl_imagelist_multiply_scalar()</a>, and <a class="el" href="group__cpl__plot.html#gac52d4503c66e0878a162909b84120ccd">cpl_plot_image()</a>.</p>
</div>
</div>
<a class="anchor" id="ga0b9c44f684a3e7781ccb5777ef001b3f"></a>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">cpl_image* cpl_image_multiply_scalar_create </td>
<td>(</td>
<td class="paramtype">const cpl_image * </td>
<td class="paramname"><em>image</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">double </td>
<td class="paramname"><em>factor</em> </td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td>
</tr>
</table>
</div><div class="memdoc">
<p>Create a new image by multiplication of a scalar and an image. </p>
<dl class="params"><dt>Parameters</dt><dd>
<table class="params">
<tr><td class="paramname">image</td><td>Image to be multiplied </td></tr>
<tr><td class="paramname">factor</td><td>Number to multiply with </td></tr>
</table>
</dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>1 newly allocated image or NULL in case of an error </dd></dl>
<dl class="section see"><dt>See also</dt><dd><a class="el" href="group__cpl__image.html#gaf2a2500024307801272227e9d6abbbaa" title="Elementwise multiplication of an image with a scalar. ">cpl_image_multiply_scalar</a> </dd>
<dd>
<a class="el" href="group__cpl__image.html#ga956c494049f2bff35a254ee2d91a212f" title="Create a new image by elementwise addition of a scalar to an image. ">cpl_image_add_scalar_create</a> </dd></dl>
<p>References <a class="el" href="group__cpl__error.html#gafb123879d8683c6d63681f433dc19bd0">cpl_ensure</a>, <a class="el" href="group__cpl__error.html#ga724de575c31ddf40f42786306f9dbdcb">cpl_error_get_code()</a>, <a class="el" href="group__cpl__image.html#ga272e4e004716651b94d6d36e575b6841">cpl_image_delete()</a>, <a class="el" href="group__cpl__image.html#gadebfe1dae2cbd7a59fc09b323c55c10e">cpl_image_duplicate()</a>, and <a class="el" href="group__cpl__image.html#gaf2a2500024307801272227e9d6abbbaa">cpl_image_multiply_scalar()</a>.</p>
</div>
</div>
<a class="anchor" id="gab95562a5dbc2372f52ce644c50bfcd26"></a>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">cpl_image* cpl_image_new </td>
<td>(</td>
<td class="paramtype"><a class="el" href="group__cpl__type.html#gacc431432a4fedf19ec6f7668dda3fbf0">cpl_size</a> </td>
<td class="paramname"><em>nx</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype"><a class="el" href="group__cpl__type.html#gacc431432a4fedf19ec6f7668dda3fbf0">cpl_size</a> </td>
<td class="paramname"><em>ny</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype"><a class="el" href="group__cpl__type.html#ga01345c598396c7cd159979734adfb57d">cpl_type</a> </td>
<td class="paramname"><em>type</em> </td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td>
</tr>
</table>
</div><div class="memdoc">
<p>Allocate an image structure and pixel buffer for a image. </p>
<dl class="params"><dt>Parameters</dt><dd>
<table class="params">
<tr><td class="paramname">nx</td><td>Size in x (the number of columns) </td></tr>
<tr><td class="paramname">ny</td><td>Size in y (the number of rows) </td></tr>
<tr><td class="paramname">type</td><td>The pixel type </td></tr>
</table>
</dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>1 newly allocated cpl_image or NULL in case of an error</dd></dl>
<p>Allocates space for the cpl_image structure and sets the dimensions and type of pixel data. The pixel buffer is allocated and initialised to zero. The pixel array will contain nx*ny values being the image pixels from the lower left to the upper right line by line.</p>
<p>Supported pixel types are CPL_TYPE_INT, CPL_TYPE_FLOAT, CPL_TYPE_DOUBLE, CPL_TYPE_FLOAT_COMPLEX and CPL_TYPE_DOUBLE_COMPLEX.</p>
<p>The returned cpl_image must be deallocated using <a class="el" href="group__cpl__image.html#ga272e4e004716651b94d6d36e575b6841" title="Free memory associated to an cpl_image object. ">cpl_image_delete()</a>.</p>
<p>Possible <a class="el" href="group__cpl__error.html#ga49a0c316d52d2afbfd9fd94b95344900" title="Available error codes. ">_cpl_error_code_</a> set in this function:</p><ul>
<li>CPL_ERROR_ILLEGAL_INPUT if nx or ny is non-positive</li>
<li>CPL_ERROR_INVALID_TYPE if the passed pixel type is not supported </li>
</ul>
<p>Referenced by <a class="el" href="group__cpl__geom__img.html#ga135df3510913add18d5550a8aa356923">cpl_geom_img_offset_fine()</a>, <a class="el" href="group__cpl__geom__img.html#ga8df5c11aeb84394817af6a0680c2859c">cpl_geom_img_offset_saa()</a>, <a class="el" href="group__cpl__image.html#ga3a2ac9628c7dd3d8bc8355980474af72">cpl_image_fill_jacobian()</a>, <a class="el" href="group__cpl__image.html#ga096a8a3b65ad42f44f6d854c6594a4e1">cpl_image_fill_test_create()</a>, <a class="el" href="group__cpl__image.html#gab4b4d2c7ec03d2f0e9f0abae612927b5">cpl_image_filter_linear()</a>, <a class="el" href="group__cpl__image.html#ga52d2e5aa1ce2c9bc3c560209e344ba40">cpl_image_filter_median()</a>, <a class="el" href="group__cpl__image.html#ga22149f62af2c9c0c02ac7a5bf9c259c1">cpl_image_filter_morpho()</a>, <a class="el" href="group__cpl__image.html#ga19d4e60abbeaf99717d3985c76aaadbd">cpl_image_filter_stdev()</a>, <a class="el" href="group__cpl__image.html#gad38071b4db44e17818a0bade99a123c0">cpl_image_labelise_mask_create()</a>, and <a class="el" href="group__cpl__imagelist.html#ga27af298cfe9123948061d86c43877ad5">cpl_image_new_from_accepted()</a>.</p>
</div>
</div>
<a class="anchor" id="ga258483437ae0eb156025b379ef8fe810"></a>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">cpl_image* cpl_image_new_from_mask </td>
<td>(</td>
<td class="paramtype">const cpl_mask * </td>
<td class="paramname"><em>mask</em></td><td>)</td>
<td></td>
</tr>
</table>
</div><div class="memdoc">
<p>Create an int image from a mask. </p>
<dl class="params"><dt>Parameters</dt><dd>
<table class="params">
<tr><td class="paramname">mask</td><td>the original mask </td></tr>
</table>
</dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>1 newly allocated cpl_image or NULL on error</dd></dl>
<p>The created image is of type CPL_TYPE_INT.</p>
<p>Possible <a class="el" href="group__cpl__error.html#ga49a0c316d52d2afbfd9fd94b95344900" title="Available error codes. ">_cpl_error_code_</a> set in this function:</p><ul>
<li>CPL_ERROR_NULL_INPUT if an input pointer is NULL </li>
</ul>
<p>References <a class="el" href="group__cpl__error.html#gafb123879d8683c6d63681f433dc19bd0">cpl_ensure</a>, <a class="el" href="group__cpl__error.html#gga49a0c316d52d2afbfd9fd94b95344900a7b054cf7927d1bd0a9b3693a6715be84">CPL_ERROR_NULL_INPUT</a>, <a class="el" href="group__cpl__image.html#ga9ccaf8ab0d6e20c7aba7b3da1bade322">cpl_image_wrap_int()</a>, <a class="el" href="group__cpl__memory.html#gac884edcb0a592489c65239d0e5d08785">cpl_malloc()</a>, <a class="el" href="group__cpl__mask.html#gac9ab11af7ef4ff0b8424141271fd685b">cpl_mask_get_data_const()</a>, <a class="el" href="group__cpl__mask.html#gaefb412dd754146bc78faf7356209a0e6">cpl_mask_get_size_x()</a>, and <a class="el" href="group__cpl__mask.html#ga2c515a5ba20381c54c0496c1b9769495">cpl_mask_get_size_y()</a>.</p>
<p>Referenced by <a class="el" href="group__cpl__geom__img.html#ga8df5c11aeb84394817af6a0680c2859c">cpl_geom_img_offset_saa()</a>.</p>
</div>
</div>
<a class="anchor" id="gaa1a902191405d8bd33e1bc5b239dfef0"></a>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname"><a class="el" href="group__cpl__error.html#ga44b4287e8a7a22122b94c220a1dd9459">cpl_error_code</a> cpl_image_normalise </td>
<td>(</td>
<td class="paramtype">cpl_image * </td>
<td class="paramname"><em>image</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">cpl_norm </td>
<td class="paramname"><em>mode</em> </td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td>
</tr>
</table>
</div><div class="memdoc">
<p>Normalise pixels in an image. </p>
<dl class="params"><dt>Parameters</dt><dd>
<table class="params">
<tr><td class="paramname">image</td><td>Image operand. </td></tr>
<tr><td class="paramname">mode</td><td>Normalisation mode. </td></tr>
</table>
</dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>CPL_ERROR_NONE, or the relevant <a class="el" href="group__cpl__error.html#ga49a0c316d52d2afbfd9fd94b95344900" title="Available error codes. ">_cpl_error_code_</a> on error.</dd></dl>
<p>Normalises an image according to a given criterion.</p>
<p>Possible normalisations are:</p><ul>
<li>CPL_NORM_SCALE sets the pixel interval to [0,1].</li>
<li>CPL_NORM_MEAN sets the mean value to 1.</li>
<li>CPL_NORM_FLUX sets the flux to 1.</li>
<li>CPL_NORM_ABSFLUX sets the absolute flux to 1.</li>
</ul>
<p>Possible <a class="el" href="group__cpl__error.html#ga49a0c316d52d2afbfd9fd94b95344900" title="Available error codes. ">_cpl_error_code_</a> set in this function:</p><ul>
<li>CPL_ERROR_NULL_INPUT if an input pointer is NULL </li>
</ul>
<p>References <a class="el" href="group__cpl__error.html#gaf18e95fbc6fc2cfde2a2cc8a0920b12d">cpl_ensure_code</a>, <a class="el" href="group__cpl__error.html#ga724de575c31ddf40f42786306f9dbdcb">cpl_error_get_code()</a>, <a class="el" href="group__cpl__error.html#gga49a0c316d52d2afbfd9fd94b95344900a7907a24014a3a45aebe5ee1842f0c6f3">CPL_ERROR_INVALID_TYPE</a>, <a class="el" href="group__cpl__error.html#gga49a0c316d52d2afbfd9fd94b95344900a0239c1c63e9d21e98e45221a3ad60406">CPL_ERROR_NONE</a>, <a class="el" href="group__cpl__error.html#gga49a0c316d52d2afbfd9fd94b95344900a7b054cf7927d1bd0a9b3693a6715be84">CPL_ERROR_NULL_INPUT</a>, <a class="el" href="group__cpl__image.html#gaa5075dc76993fd8a36b7b11b682be3e6">cpl_image_divide_scalar()</a>, <a class="el" href="group__cpl__image.html#gaefffa452a6a75e6779295239bfef871c">cpl_image_get_absflux()</a>, <a class="el" href="group__cpl__image.html#ga31362a6926babd7f71b2583bc2fa6bb9">cpl_image_get_flux()</a>, <a class="el" href="group__cpl__image.html#gae5e53e16a908d98359aa77ffb59b24ee">cpl_image_get_mean()</a>, <a class="el" href="group__cpl__image.html#gae6e76e5c9c03f0da6f57d21f3060146f">cpl_image_subtract_scalar()</a>, <a class="el" href="group__cpl__stats.html#ga9a617966b9fbe303830574288732336e">cpl_stats_get_max()</a>, <a class="el" href="group__cpl__stats.html#gaa618bec2089163effaa2f5204720118e">cpl_stats_get_min()</a>, <a class="el" href="group__cpl__stats.html#gga2f1e5b7648471006c73e2f2305648686a2b65abcb94db5f501555c424c3a45bef">CPL_STATS_MAX</a>, and <a class="el" href="group__cpl__stats.html#gga2f1e5b7648471006c73e2f2305648686a35ea96c1a4bc17db370111a26e1ef37b">CPL_STATS_MIN</a>.</p>
<p>Referenced by <a class="el" href="group__cpl__image.html#ga995346cf9ad364225c3eb6f81ae32f84">cpl_image_normalise_create()</a>, and <a class="el" href="group__cpl__imagelist.html#ga96bddf68350e9f273f37a0d833b9eae2">cpl_imagelist_normalise()</a>.</p>
</div>
</div>
<a class="anchor" id="ga995346cf9ad364225c3eb6f81ae32f84"></a>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">cpl_image* cpl_image_normalise_create </td>
<td>(</td>
<td class="paramtype">const cpl_image * </td>
<td class="paramname"><em>image_in</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">cpl_norm </td>
<td class="paramname"><em>mode</em> </td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td>
</tr>
</table>
</div><div class="memdoc">
<p>Create a new normalised image from an existing image. </p>
<dl class="params"><dt>Parameters</dt><dd>
<table class="params">
<tr><td class="paramname">image_in</td><td>Image operand. </td></tr>
<tr><td class="paramname">mode</td><td>Normalisation mode. </td></tr>
</table>
</dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>1 newly allocated image or NULL on error </dd></dl>
<dl class="section see"><dt>See also</dt><dd><a class="el" href="group__cpl__image.html#gaa1a902191405d8bd33e1bc5b239dfef0" title="Normalise pixels in an image. ">cpl_image_normalise</a></dd></dl>
<p>Stores the result in a newly allocated image and returns it. The returned image must be deallocated using <a class="el" href="group__cpl__image.html#ga272e4e004716651b94d6d36e575b6841" title="Free memory associated to an cpl_image object. ">cpl_image_delete()</a>.</p>
<ul>
<li>CPL_ERROR_NULL_INPUT if an input pointer is NULL </li>
</ul>
<p>References <a class="el" href="group__cpl__error.html#gafb123879d8683c6d63681f433dc19bd0">cpl_ensure</a>, <a class="el" href="group__cpl__error.html#gga49a0c316d52d2afbfd9fd94b95344900a7b054cf7927d1bd0a9b3693a6715be84">CPL_ERROR_NULL_INPUT</a>, <a class="el" href="group__cpl__image.html#ga272e4e004716651b94d6d36e575b6841">cpl_image_delete()</a>, <a class="el" href="group__cpl__image.html#gadebfe1dae2cbd7a59fc09b323c55c10e">cpl_image_duplicate()</a>, and <a class="el" href="group__cpl__image.html#gaa1a902191405d8bd33e1bc5b239dfef0">cpl_image_normalise()</a>.</p>
</div>
</div>
<a class="anchor" id="ga22eb04de3cd84dade9190302c705e9a5"></a>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname"><a class="el" href="group__cpl__error.html#ga44b4287e8a7a22122b94c220a1dd9459">cpl_error_code</a> cpl_image_not </td>
<td>(</td>
<td class="paramtype">cpl_image * </td>
<td class="paramname"><em>self</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">const cpl_image * </td>
<td class="paramname"><em>first</em> </td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td>
</tr>
</table>
</div><div class="memdoc">
<p>The bit-wise complement (not) of an image with integer pixels. </p>
<dl class="params"><dt>Parameters</dt><dd>
<table class="params">
<tr><td class="paramname">self</td><td>Pre-allocated image to hold the result </td></tr>
<tr><td class="paramname">first</td><td>First operand, or NULL for an in-place operation </td></tr>
</table>
</dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>CPL_ERROR_NONE or the relevant the <a class="el" href="group__cpl__error.html#ga49a0c316d52d2afbfd9fd94b95344900" title="Available error codes. ">_cpl_error_code_</a> on error </dd></dl>
<dl class="section note"><dt>Note</dt><dd>CPL_TYPE_INT is required </dd></dl>
<dl class="section see"><dt>See also</dt><dd><a class="el" href="group__cpl__mask.html#gaa30bea67c21cd608beb6add0a45a3f2f" title="Performs a logical NOT on a mask. ">cpl_mask_not()</a> for the equivalent logical operation</dd></dl>
<p>Possible <a class="el" href="group__cpl__error.html#ga49a0c316d52d2afbfd9fd94b95344900" title="Available error codes. ">_cpl_error_code_</a> set in this function:</p><ul>
<li>CPL_ERROR_NULL_INPUT if an input pointer is NULL</li>
<li>CPL_ERROR_INCOMPATIBLE_INPUT if the images have different sizes</li>
<li>CPL_ERROR_INVALID_TYPE if the passed image type is as required </li>
</ul>
<p>References <a class="el" href="group__cpl__error.html#gaf18e95fbc6fc2cfde2a2cc8a0920b12d">cpl_ensure_code</a>, <a class="el" href="group__cpl__error.html#gga49a0c316d52d2afbfd9fd94b95344900a67b9f44eb1db1ab12f0575dbb878c0fd">CPL_ERROR_INCOMPATIBLE_INPUT</a>, <a class="el" href="group__cpl__error.html#gga49a0c316d52d2afbfd9fd94b95344900a7907a24014a3a45aebe5ee1842f0c6f3">CPL_ERROR_INVALID_TYPE</a>, <a class="el" href="group__cpl__error.html#gga49a0c316d52d2afbfd9fd94b95344900a0239c1c63e9d21e98e45221a3ad60406">CPL_ERROR_NONE</a>, <a class="el" href="group__cpl__error.html#gga49a0c316d52d2afbfd9fd94b95344900a7b054cf7927d1bd0a9b3693a6715be84">CPL_ERROR_NULL_INPUT</a>, <a class="el" href="group__cpl__image.html#ga17f97e60794f88e7f06b85cccbecc132">cpl_image_get_type()</a>, <a class="el" href="group__cpl__image.html#ga6c69e93b4bdfa9d09730d3707a4786b9">cpl_image_or_mask_unary()</a>, <a class="el" href="group__cpl__type.html#ga994816f2d7624221964f91e0b9556578">cpl_type_get_name()</a>, <a class="el" href="group__cpl__type.html#ga5098a0d41d12e907e5cacce2052a345e">cpl_type_get_sizeof()</a>, and <a class="el" href="group__cpl__type.html#gga3f03371e201544e9115b40065e47f086ae333db5ccea0813ccd892525b4ba1345">CPL_TYPE_INT</a>.</p>
</div>
</div>
<a class="anchor" id="gab458b92eba7eea710c82fab760ac92b2"></a>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname"><a class="el" href="group__cpl__error.html#ga44b4287e8a7a22122b94c220a1dd9459">cpl_error_code</a> cpl_image_or </td>
<td>(</td>
<td class="paramtype">cpl_image * </td>
<td class="paramname"><em>self</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">const cpl_image * </td>
<td class="paramname"><em>first</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">const cpl_image * </td>
<td class="paramname"><em>second</em> </td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td>
</tr>
</table>
</div><div class="memdoc">
<p>The bit-wise or of two images with integer pixels. </p>
<dl class="params"><dt>Parameters</dt><dd>
<table class="params">
<tr><td class="paramname">self</td><td>Pre-allocated image to hold the result </td></tr>
<tr><td class="paramname">first</td><td>First operand, or NULL for an in-place operation </td></tr>
<tr><td class="paramname">second</td><td>Second operand </td></tr>
</table>
</dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>CPL_ERROR_NONE or the relevant the <a class="el" href="group__cpl__error.html#ga49a0c316d52d2afbfd9fd94b95344900" title="Available error codes. ">_cpl_error_code_</a> on error </dd></dl>
<dl class="section note"><dt>Note</dt><dd>CPL_TYPE_INT is required </dd></dl>
<dl class="section see"><dt>See also</dt><dd><a class="el" href="group__cpl__mask.html#gaf12dc55fffbbd55e9525bc69f39339a4" title="Performs a logical OR of one mask onto another. ">cpl_mask_or()</a> for the equivalent logical operation</dd></dl>
<p>Possible <a class="el" href="group__cpl__error.html#ga49a0c316d52d2afbfd9fd94b95344900" title="Available error codes. ">_cpl_error_code_</a> set in this function:</p><ul>
<li>CPL_ERROR_NULL_INPUT if an input pointer is NULL</li>
<li>CPL_ERROR_INCOMPATIBLE_INPUT if the images have different sizes</li>
<li>CPL_ERROR_INVALID_TYPE if the passed image type is as required </li>
</ul>
<p>References <a class="el" href="group__cpl__error.html#gaf18e95fbc6fc2cfde2a2cc8a0920b12d">cpl_ensure_code</a>, <a class="el" href="group__cpl__error.html#gga49a0c316d52d2afbfd9fd94b95344900a67b9f44eb1db1ab12f0575dbb878c0fd">CPL_ERROR_INCOMPATIBLE_INPUT</a>, <a class="el" href="group__cpl__error.html#gga49a0c316d52d2afbfd9fd94b95344900a7907a24014a3a45aebe5ee1842f0c6f3">CPL_ERROR_INVALID_TYPE</a>, <a class="el" href="group__cpl__error.html#gga49a0c316d52d2afbfd9fd94b95344900a0239c1c63e9d21e98e45221a3ad60406">CPL_ERROR_NONE</a>, <a class="el" href="group__cpl__error.html#gga49a0c316d52d2afbfd9fd94b95344900a7b054cf7927d1bd0a9b3693a6715be84">CPL_ERROR_NULL_INPUT</a>, <a class="el" href="group__cpl__image.html#ga17f97e60794f88e7f06b85cccbecc132">cpl_image_get_type()</a>, <a class="el" href="group__cpl__image.html#ga787eff33b78af1e8d6d79189cdcf418b">cpl_image_or_mask()</a>, <a class="el" href="group__cpl__type.html#ga994816f2d7624221964f91e0b9556578">cpl_type_get_name()</a>, <a class="el" href="group__cpl__type.html#ga5098a0d41d12e907e5cacce2052a345e">cpl_type_get_sizeof()</a>, and <a class="el" href="group__cpl__type.html#gga3f03371e201544e9115b40065e47f086ae333db5ccea0813ccd892525b4ba1345">CPL_TYPE_INT</a>.</p>
</div>
</div>
<a class="anchor" id="ga787eff33b78af1e8d6d79189cdcf418b"></a>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">void cpl_image_or_mask </td>
<td>(</td>
<td class="paramtype">cpl_image * </td>
<td class="paramname"><em>self</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">const cpl_image * </td>
<td class="paramname"><em>first</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">const cpl_image * </td>
<td class="paramname"><em>second</em> </td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td>
</tr>
</table>
</div><div class="memdoc">
<p>The bit-wise or of the input masks onto the output mask. </p>
<dl class="params"><dt>Parameters</dt><dd>
<table class="params">
<tr><td class="paramname">self</td><td>Pre-allocated image to hold the result </td></tr>
<tr><td class="paramname">first</td><td>First operand, or NULL for an in-place operation </td></tr>
<tr><td class="paramname">second</td><td>Second operand </td></tr>
</table>
</dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>void </dd></dl>
<dl class="section note"><dt>Note</dt><dd>Error checking assumed to have been performed by the caller </dd></dl>
<p>References <a class="el" href="group__cpl__memory.html#gac884edcb0a592489c65239d0e5d08785">cpl_malloc()</a>, <a class="el" href="group__cpl__mask.html#ga9eb7b94e28606874356b70be4eedb53d">cpl_mask_duplicate()</a>, <a class="el" href="group__cpl__mask.html#ga462a148e501731a123e573e6f818f8c2">cpl_mask_get_data()</a>, <a class="el" href="group__cpl__mask.html#gac9ab11af7ef4ff0b8424141271fd685b">cpl_mask_get_data_const()</a>, <a class="el" href="group__cpl__mask.html#gaf12dc55fffbbd55e9525bc69f39339a4">cpl_mask_or()</a>, and <a class="el" href="group__cpl__mask.html#ga7f9767654033c50dd87d31cbde060593">cpl_mask_wrap()</a>.</p>
<p>Referenced by <a class="el" href="group__cpl__image.html#ga6e4e66328086841fcd96e2eec56a7bb7">cpl_image_and()</a>, <a class="el" href="group__cpl__image.html#gab458b92eba7eea710c82fab760ac92b2">cpl_image_or()</a>, and <a class="el" href="group__cpl__image.html#ga1a0b22a6882d30ffe5de44afe04a016e">cpl_image_xor()</a>.</p>
</div>
</div>
<a class="anchor" id="ga6c69e93b4bdfa9d09730d3707a4786b9"></a>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">void cpl_image_or_mask_unary </td>
<td>(</td>
<td class="paramtype">cpl_image * </td>
<td class="paramname"><em>self</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">const cpl_image * </td>
<td class="paramname"><em>first</em> </td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td>
</tr>
</table>
</div><div class="memdoc">
<p>The bit-wise or of the input mask(s) onto the output mask. </p>
<dl class="params"><dt>Parameters</dt><dd>
<table class="params">
<tr><td class="paramname">self</td><td>Pre-allocated image to hold the result </td></tr>
<tr><td class="paramname">first</td><td>First operand, or NULL for an in-place operation </td></tr>
</table>
</dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>void </dd></dl>
<dl class="section note"><dt>Note</dt><dd>Error checking assumed to have been performed by the caller </dd></dl>
<dl class="section see"><dt>See also</dt><dd><a class="el" href="group__cpl__image.html#ga787eff33b78af1e8d6d79189cdcf418b" title="The bit-wise or of the input masks onto the output mask. ">cpl_image_or_mask</a> </dd></dl>
<p>References <a class="el" href="group__cpl__mask.html#ga9eb7b94e28606874356b70be4eedb53d">cpl_mask_duplicate()</a>, <a class="el" href="group__cpl__mask.html#ga462a148e501731a123e573e6f818f8c2">cpl_mask_get_data()</a>, and <a class="el" href="group__cpl__mask.html#gac9ab11af7ef4ff0b8424141271fd685b">cpl_mask_get_data_const()</a>.</p>
<p>Referenced by <a class="el" href="group__cpl__image.html#ga7b1a20dae105755712e56ea22942add5">cpl_image_and_scalar()</a>, <a class="el" href="group__cpl__image.html#ga22eb04de3cd84dade9190302c705e9a5">cpl_image_not()</a>, <a class="el" href="group__cpl__image.html#gad2984ac935275437f2f8ed4c5a8cd86c">cpl_image_or_scalar()</a>, and <a class="el" href="group__cpl__image.html#ga1599090c62fe7b0fdcbb7231e95c9a19">cpl_image_xor_scalar()</a>.</p>
</div>
</div>
<a class="anchor" id="gad2984ac935275437f2f8ed4c5a8cd86c"></a>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname"><a class="el" href="group__cpl__error.html#ga44b4287e8a7a22122b94c220a1dd9459">cpl_error_code</a> cpl_image_or_scalar </td>
<td>(</td>
<td class="paramtype">cpl_image * </td>
<td class="paramname"><em>self</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">const cpl_image * </td>
<td class="paramname"><em>first</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype"><a class="el" href="group__cpl__type.html#ga8d50ea1fd78afcce32f5bcc94a3b8f03">cpl_bitmask</a> </td>
<td class="paramname"><em>second</em> </td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td>
</tr>
</table>
</div><div class="memdoc">
<p>The bit-wise or of a scalar and an image with integer pixels. </p>
<dl class="params"><dt>Parameters</dt><dd>
<table class="params">
<tr><td class="paramname">self</td><td>Pre-allocated image to hold the result </td></tr>
<tr><td class="paramname">first</td><td>First operand, or NULL for an in-place operation </td></tr>
<tr><td class="paramname">second</td><td>Second operand (scalar) </td></tr>
</table>
</dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>CPL_ERROR_NONE or the relevant the <a class="el" href="group__cpl__error.html#ga49a0c316d52d2afbfd9fd94b95344900" title="Available error codes. ">_cpl_error_code_</a> on error </dd></dl>
<dl class="section note"><dt>Note</dt><dd>CPL_TYPE_INT is required</dd></dl>
<p>Possible <a class="el" href="group__cpl__error.html#ga49a0c316d52d2afbfd9fd94b95344900" title="Available error codes. ">_cpl_error_code_</a> set in this function:</p><ul>
<li>CPL_ERROR_NULL_INPUT if an input pointer is NULL</li>
<li>CPL_ERROR_INCOMPATIBLE_INPUT if the images have different sizes</li>
<li>CPL_ERROR_INVALID_TYPE if the passed image type is as required </li>
</ul>
<p>References <a class="el" href="group__cpl__error.html#gaf18e95fbc6fc2cfde2a2cc8a0920b12d">cpl_ensure_code</a>, <a class="el" href="group__cpl__error.html#gga49a0c316d52d2afbfd9fd94b95344900a67b9f44eb1db1ab12f0575dbb878c0fd">CPL_ERROR_INCOMPATIBLE_INPUT</a>, <a class="el" href="group__cpl__error.html#gga49a0c316d52d2afbfd9fd94b95344900a7907a24014a3a45aebe5ee1842f0c6f3">CPL_ERROR_INVALID_TYPE</a>, <a class="el" href="group__cpl__error.html#gga49a0c316d52d2afbfd9fd94b95344900a0239c1c63e9d21e98e45221a3ad60406">CPL_ERROR_NONE</a>, <a class="el" href="group__cpl__error.html#gga49a0c316d52d2afbfd9fd94b95344900a7b054cf7927d1bd0a9b3693a6715be84">CPL_ERROR_NULL_INPUT</a>, <a class="el" href="group__cpl__image.html#ga17f97e60794f88e7f06b85cccbecc132">cpl_image_get_type()</a>, <a class="el" href="group__cpl__image.html#ga6c69e93b4bdfa9d09730d3707a4786b9">cpl_image_or_mask_unary()</a>, <a class="el" href="group__cpl__type.html#ga994816f2d7624221964f91e0b9556578">cpl_type_get_name()</a>, <a class="el" href="group__cpl__type.html#ga5098a0d41d12e907e5cacce2052a345e">cpl_type_get_sizeof()</a>, and <a class="el" href="group__cpl__type.html#gga3f03371e201544e9115b40065e47f086ae333db5ccea0813ccd892525b4ba1345">CPL_TYPE_INT</a>.</p>
</div>
</div>
<a class="anchor" id="gad657aba1581d332aa8ba1d101f0269bd"></a>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname"><a class="el" href="group__cpl__error.html#ga44b4287e8a7a22122b94c220a1dd9459">cpl_error_code</a> cpl_image_power </td>
<td>(</td>
<td class="paramtype">cpl_image * </td>
<td class="paramname"><em>self</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">double </td>
<td class="paramname"><em>exponent</em> </td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td>
</tr>
</table>
</div><div class="memdoc">
<p>Compute the elementwise power of the image. </p>
<dl class="params"><dt>Parameters</dt><dd>
<table class="params">
<tr><td class="paramname">self</td><td>Image to be modified in place. </td></tr>
<tr><td class="paramname">exponent</td><td>Scalar exponent. </td></tr>
</table>
</dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>CPL_ERROR_NONE or the relevant the <a class="el" href="group__cpl__error.html#ga49a0c316d52d2afbfd9fd94b95344900" title="Available error codes. ">_cpl_error_code_</a> on error</dd></dl>
<p>Modifies the image by lifting each of its pixels to exponent.</p>
<p>Images can be of type CPL_TYPE_INT, CPL_TYPE_FLOAT or CPL_TYPE_DOUBLE.</p>
<p>Pixels for which the power to the given exponent is not defined are rejected and set to zero.</p>
<p>Possible <a class="el" href="group__cpl__error.html#ga49a0c316d52d2afbfd9fd94b95344900" title="Available error codes. ">_cpl_error_code_</a> set in this function:</p><ul>
<li>CPL_ERROR_NULL_INPUT if an input pointer is NULL</li>
<li>CPL_ERROR_INVALID_TYPE if the passed image type is not supported </li>
</ul>
<p>References <a class="el" href="group__cpl__error.html#gaf18e95fbc6fc2cfde2a2cc8a0920b12d">cpl_ensure_code</a>, <a class="el" href="group__cpl__error.html#gga49a0c316d52d2afbfd9fd94b95344900a7907a24014a3a45aebe5ee1842f0c6f3">CPL_ERROR_INVALID_TYPE</a>, <a class="el" href="group__cpl__error.html#gga49a0c316d52d2afbfd9fd94b95344900a0239c1c63e9d21e98e45221a3ad60406">CPL_ERROR_NONE</a>, <a class="el" href="group__cpl__error.html#gga49a0c316d52d2afbfd9fd94b95344900a7b054cf7927d1bd0a9b3693a6715be84">CPL_ERROR_NULL_INPUT</a>, <a class="el" href="group__cpl__image.html#ga17f97e60794f88e7f06b85cccbecc132">cpl_image_get_type()</a>, <a class="el" href="group__cpl__type.html#gga3f03371e201544e9115b40065e47f086a4923f03f3a673edd344b0d81835ca69e">CPL_TYPE_DOUBLE</a>, <a class="el" href="group__cpl__type.html#gga3f03371e201544e9115b40065e47f086aa44c37e26b9040a96e3a49b405946942">CPL_TYPE_FLOAT</a>, <a class="el" href="group__cpl__type.html#ga994816f2d7624221964f91e0b9556578">cpl_type_get_name()</a>, and <a class="el" href="group__cpl__type.html#gga3f03371e201544e9115b40065e47f086ae333db5ccea0813ccd892525b4ba1345">CPL_TYPE_INT</a>.</p>
<p>Referenced by <a class="el" href="group__cpl__image.html#ga2f5949377b34ba90b60a9335a9cc0c1a">cpl_image_power_create()</a>, and <a class="el" href="group__cpl__imagelist.html#ga1fa1ac7146960ccbe417e5bac52f54ec">cpl_imagelist_power()</a>.</p>
</div>
</div>
<a class="anchor" id="ga2f5949377b34ba90b60a9335a9cc0c1a"></a>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">cpl_image* cpl_image_power_create </td>
<td>(</td>
<td class="paramtype">const cpl_image * </td>
<td class="paramname"><em>image</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">double </td>
<td class="paramname"><em>exponent</em> </td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td>
</tr>
</table>
</div><div class="memdoc">
<p>Create a new image by elementwise raising of an image to a power. </p>
<dl class="params"><dt>Parameters</dt><dd>
<table class="params">
<tr><td class="paramname">image</td><td>Image to raise to a power </td></tr>
<tr><td class="paramname">exponent</td><td>scalar exponent </td></tr>
</table>
</dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>1 newly allocated image or NULL in case of an error </dd></dl>
<dl class="section see"><dt>See also</dt><dd><a class="el" href="group__cpl__image.html#gad657aba1581d332aa8ba1d101f0269bd" title="Compute the elementwise power of the image. ">cpl_image_power</a> </dd>
<dd>
<a class="el" href="group__cpl__image.html#ga956c494049f2bff35a254ee2d91a212f" title="Create a new image by elementwise addition of a scalar to an image. ">cpl_image_add_scalar_create</a> </dd></dl>
<p>References <a class="el" href="group__cpl__error.html#gafb123879d8683c6d63681f433dc19bd0">cpl_ensure</a>, <a class="el" href="group__cpl__error.html#ga724de575c31ddf40f42786306f9dbdcb">cpl_error_get_code()</a>, <a class="el" href="group__cpl__image.html#ga272e4e004716651b94d6d36e575b6841">cpl_image_delete()</a>, <a class="el" href="group__cpl__image.html#gadebfe1dae2cbd7a59fc09b323c55c10e">cpl_image_duplicate()</a>, and <a class="el" href="group__cpl__image.html#gad657aba1581d332aa8ba1d101f0269bd">cpl_image_power()</a>.</p>
</div>
</div>
<a class="anchor" id="ga509a88acd4a109ff88d699df01b64baa"></a>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">cpl_image* cpl_image_rebin </td>
<td>(</td>
<td class="paramtype">const cpl_image * </td>
<td class="paramname"><em>image</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype"><a class="el" href="group__cpl__type.html#gacc431432a4fedf19ec6f7668dda3fbf0">cpl_size</a> </td>
<td class="paramname"><em>xstart</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype"><a class="el" href="group__cpl__type.html#gacc431432a4fedf19ec6f7668dda3fbf0">cpl_size</a> </td>
<td class="paramname"><em>ystart</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype"><a class="el" href="group__cpl__type.html#gacc431432a4fedf19ec6f7668dda3fbf0">cpl_size</a> </td>
<td class="paramname"><em>xstep</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype"><a class="el" href="group__cpl__type.html#gacc431432a4fedf19ec6f7668dda3fbf0">cpl_size</a> </td>
<td class="paramname"><em>ystep</em> </td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td>
</tr>
</table>
</div><div class="memdoc">
<p>Rebin an image. </p>
<dl class="params"><dt>Parameters</dt><dd>
<table class="params">
<tr><td class="paramname">image</td><td>The image to rebin </td></tr>
<tr><td class="paramname">xstart</td><td>start x position of binning (starting from 1...) </td></tr>
<tr><td class="paramname">ystart</td><td>start y position of binning (starting from 1...) </td></tr>
<tr><td class="paramname">xstep</td><td>Bin size in x. </td></tr>
<tr><td class="paramname">ystep</td><td>Bin size in y. </td></tr>
</table>
</dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>The newly allocated rebinned image or NULL in case of error</dd></dl>
<p>If both bin sizes in x and y are = 2, an image with (about) a quarter of the pixels of the input image will be created. Each new pixel will be the sum of the values of all contributing input pixels. If a bin is incomplete (i.e., the input image size is not a multiple of the bin sizes), it is not computed.</p>
<p>xstep and ystep must not be greater than the sizes of the rebinned region.</p>
<p>The input image type can be CPL_TYPE_INT, CPL_TYPE_FLOAT and CPL_TYPE_DOUBLE. If the image has bad pixels, they will be propagated to the rebinned image "pessimistically", i.e., if at least one of the contributing input pixels is bad, then the corresponding output pixel will also be flagged "bad". If you need an image of "weights" for each rebinned pixel, just cast the input image bpm into a CPL_TYPE_INT image, and apply <a class="el" href="group__cpl__image.html#ga509a88acd4a109ff88d699df01b64baa" title="Rebin an image. ">cpl_image_rebin()</a> to it too.</p>
<p>The returned image must be deallocated using <a class="el" href="group__cpl__image.html#ga272e4e004716651b94d6d36e575b6841" title="Free memory associated to an cpl_image object. ">cpl_image_delete()</a>.</p>
<p>Possible <a class="el" href="group__cpl__error.html#ga49a0c316d52d2afbfd9fd94b95344900" title="Available error codes. ">_cpl_error_code_</a> set in this function:</p><ul>
<li>CPL_ERROR_NULL_INPUT if the input pointer is NULL</li>
<li>CPL_ERROR_ILLEGAL_INPUT if xstep, ystep, xstart, ystart are not positive</li>
<li>CPL_ERROR_INVALID_TYPE if the passed image type is not supported </li>
</ul>
<p>References <a class="el" href="group__cpl__error.html#gafb123879d8683c6d63681f433dc19bd0">cpl_ensure</a>, <a class="el" href="group__cpl__error.html#gga49a0c316d52d2afbfd9fd94b95344900ae6ab32df318c1af9afcddcb8249cad51">CPL_ERROR_ILLEGAL_INPUT</a>, <a class="el" href="group__cpl__error.html#gga49a0c316d52d2afbfd9fd94b95344900a7907a24014a3a45aebe5ee1842f0c6f3">CPL_ERROR_INVALID_TYPE</a>, <a class="el" href="group__cpl__error.html#gga49a0c316d52d2afbfd9fd94b95344900a7b054cf7927d1bd0a9b3693a6715be84">CPL_ERROR_NULL_INPUT</a>, <a class="el" href="group__cpl__image.html#gab5a6bc059aa1d38c37ab5852b5170e45">cpl_image_get_size_x()</a>, <a class="el" href="group__cpl__mask.html#ga462a148e501731a123e573e6f818f8c2">cpl_mask_get_data()</a>, <a class="el" href="group__cpl__mask.html#gac9ab11af7ef4ff0b8424141271fd685b">cpl_mask_get_data_const()</a>, and <a class="el" href="group__cpl__mask.html#gab67918578893ea4a0e005cb4397f8754">cpl_mask_new()</a>.</p>
</div>
</div>
<a class="anchor" id="gafaa53eac47a33da029e30b9b44bf91be"></a>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname"><a class="el" href="group__cpl__error.html#ga44b4287e8a7a22122b94c220a1dd9459">cpl_error_code</a> cpl_image_reject </td>
<td>(</td>
<td class="paramtype">cpl_image * </td>
<td class="paramname"><em>im</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype"><a class="el" href="group__cpl__type.html#gacc431432a4fedf19ec6f7668dda3fbf0">cpl_size</a> </td>
<td class="paramname"><em>x</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype"><a class="el" href="group__cpl__type.html#gacc431432a4fedf19ec6f7668dda3fbf0">cpl_size</a> </td>
<td class="paramname"><em>y</em> </td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td>
</tr>
</table>
</div><div class="memdoc">
<p>Set a pixel as bad in an image. </p>
<dl class="params"><dt>Parameters</dt><dd>
<table class="params">
<tr><td class="paramname">im</td><td>the input image </td></tr>
<tr><td class="paramname">x</td><td>the x pixel position in the image (first pixel is 1) </td></tr>
<tr><td class="paramname">y</td><td>the y pixel position in the image (first pixel is 1) </td></tr>
</table>
</dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>the <a class="el" href="group__cpl__error.html#ga49a0c316d52d2afbfd9fd94b95344900" title="Available error codes. ">_cpl_error_code_</a> or CPL_ERROR_NONE</dd></dl>
<p>Possible <a class="el" href="group__cpl__error.html#ga49a0c316d52d2afbfd9fd94b95344900" title="Available error codes. ">_cpl_error_code_</a> set in this function:</p><ul>
<li>CPL_ERROR_NULL_INPUT if an input pointer is NULL</li>
<li>CPL_ERROR_ACCESS_OUT_OF_RANGE if the specified position is out of the image </li>
</ul>
<p>References <a class="el" href="group__cpl__error.html#gaf18e95fbc6fc2cfde2a2cc8a0920b12d">cpl_ensure_code</a>, <a class="el" href="group__cpl__error.html#gga49a0c316d52d2afbfd9fd94b95344900a0d916ea6a7e198a74863ecd9ea03d733">CPL_ERROR_ACCESS_OUT_OF_RANGE</a>, <a class="el" href="group__cpl__error.html#gga49a0c316d52d2afbfd9fd94b95344900a0239c1c63e9d21e98e45221a3ad60406">CPL_ERROR_NONE</a>, <a class="el" href="group__cpl__error.html#gga49a0c316d52d2afbfd9fd94b95344900a7b054cf7927d1bd0a9b3693a6715be84">CPL_ERROR_NULL_INPUT</a>, <a class="el" href="group__cpl__mask.html#ga462a148e501731a123e573e6f818f8c2">cpl_mask_get_data()</a>, and <a class="el" href="group__cpl__mask.html#gab67918578893ea4a0e005cb4397f8754">cpl_mask_new()</a>.</p>
</div>
</div>
<a class="anchor" id="ga2596acf228f922542f4a1ff4f17d7e71"></a>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname"><a class="el" href="group__cpl__error.html#ga44b4287e8a7a22122b94c220a1dd9459">cpl_error_code</a> cpl_image_reject_from_mask </td>
<td>(</td>
<td class="paramtype">cpl_image * </td>
<td class="paramname"><em>im</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">const cpl_mask * </td>
<td class="paramname"><em>map</em> </td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td>
</tr>
</table>
</div><div class="memdoc">
<p>Set the bad pixels in an image as defined in a mask. </p>
<dl class="params"><dt>Parameters</dt><dd>
<table class="params">
<tr><td class="paramname">im</td><td>the input image </td></tr>
<tr><td class="paramname">map</td><td>the mask defining the bad pixels </td></tr>
</table>
</dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>the <a class="el" href="group__cpl__error.html#ga49a0c316d52d2afbfd9fd94b95344900" title="Available error codes. ">_cpl_error_code_</a> or CPL_ERROR_NONE</dd></dl>
<p>If the input image has a bad pixel map prior to the call, it is overwritten.</p>
<p>Possible <a class="el" href="group__cpl__error.html#ga49a0c316d52d2afbfd9fd94b95344900" title="Available error codes. ">_cpl_error_code_</a> set in this function:</p><ul>
<li>CPL_ERROR_NULL_INPUT if the input image or the input map is NULL</li>
<li>CPL_ERROR_INCOMPATIBLE_INPUT if the image and the map have different sizes </li>
</ul>
<p>References <a class="el" href="group__cpl__error.html#gaf18e95fbc6fc2cfde2a2cc8a0920b12d">cpl_ensure_code</a>, <a class="el" href="group__cpl__error.html#gga49a0c316d52d2afbfd9fd94b95344900a67b9f44eb1db1ab12f0575dbb878c0fd">CPL_ERROR_INCOMPATIBLE_INPUT</a>, <a class="el" href="group__cpl__error.html#gga49a0c316d52d2afbfd9fd94b95344900a0239c1c63e9d21e98e45221a3ad60406">CPL_ERROR_NONE</a>, <a class="el" href="group__cpl__error.html#gga49a0c316d52d2afbfd9fd94b95344900a7b054cf7927d1bd0a9b3693a6715be84">CPL_ERROR_NULL_INPUT</a>, <a class="el" href="group__cpl__image.html#gae9bede9669991943541a96e6921b4637">cpl_image_get_bpm()</a>, <a class="el" href="group__cpl__mask.html#ga462a148e501731a123e573e6f818f8c2">cpl_mask_get_data()</a>, <a class="el" href="group__cpl__mask.html#gac9ab11af7ef4ff0b8424141271fd685b">cpl_mask_get_data_const()</a>, <a class="el" href="group__cpl__mask.html#gaefb412dd754146bc78faf7356209a0e6">cpl_mask_get_size_x()</a>, and <a class="el" href="group__cpl__mask.html#ga2c515a5ba20381c54c0496c1b9769495">cpl_mask_get_size_y()</a>.</p>
<p>Referenced by <a class="el" href="group__cpl__apertures.html#ga23b66826669fa90caafd5ad3060a116d">cpl_apertures_new_from_image()</a>, <a class="el" href="group__cpl__image.html#ga53d75eb2e23114e4870c4d523081bfda">cpl_image_warp()</a>, <a class="el" href="group__cpl__image.html#ga34b80ed421f88c5bdad3f0127d251975">cpl_image_warp_polynomial()</a>, and <a class="el" href="group__cpl__imagelist.html#gaebff09158515dcd0e9e95a32f3678631">cpl_imagelist_swap_axis_create()</a>.</p>
</div>
</div>
<a class="anchor" id="gaa636187251be1b861b2ee370dea3a3b9"></a>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname"><a class="el" href="group__cpl__error.html#ga44b4287e8a7a22122b94c220a1dd9459">cpl_error_code</a> cpl_image_reject_value </td>
<td>(</td>
<td class="paramtype">cpl_image * </td>
<td class="paramname"><em>self</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype"><a class="el" href="group__cpl__image.html#gab3784dca1e5dc78c42fb1b416158c511">cpl_value</a> </td>
<td class="paramname"><em>mode</em> </td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td>
</tr>
</table>
</div><div class="memdoc">
<p>Reject pixels with the specified special value(s) </p>
<dl class="params"><dt>Parameters</dt><dd>
<table class="params">
<tr><td class="paramname">self</td><td>Input image to modify </td></tr>
<tr><td class="paramname">mode</td><td>Bit field specifying which special value(s) to reject</td></tr>
</table>
</dd>
</dl>
<p>Possible <a class="el" href="group__cpl__error.html#ga49a0c316d52d2afbfd9fd94b95344900" title="Available error codes. ">_cpl_error_code_</a> set in this function:</p><ul>
<li>CPL_ERROR_NULL_INPUT if an input pointer is NULL</li>
<li>CPL_ERROR_INVALID_TYPE if mode is 1, e.g. due to a logical or (||) of the allowed options or if the pixel type is complex</li>
<li>CPL_ERROR_UNSUPPORTED_MODE if mode is otherwise different from the allowed options. </li>
</ul>
<p>References <a class="el" href="group__cpl__error.html#gga49a0c316d52d2afbfd9fd94b95344900a7907a24014a3a45aebe5ee1842f0c6f3">CPL_ERROR_INVALID_TYPE</a>, <a class="el" href="group__cpl__error.html#gga49a0c316d52d2afbfd9fd94b95344900a0239c1c63e9d21e98e45221a3ad60406">CPL_ERROR_NONE</a>, <a class="el" href="group__cpl__error.html#gga49a0c316d52d2afbfd9fd94b95344900a7b054cf7927d1bd0a9b3693a6715be84">CPL_ERROR_NULL_INPUT</a>, <a class="el" href="group__cpl__image.html#ga17f97e60794f88e7f06b85cccbecc132">cpl_image_get_type()</a>, <a class="el" href="group__cpl__type.html#gga3f03371e201544e9115b40065e47f086a4923f03f3a673edd344b0d81835ca69e">CPL_TYPE_DOUBLE</a>, <a class="el" href="group__cpl__type.html#gga3f03371e201544e9115b40065e47f086afc7205e8b040bdfdee6011685cfe4345">CPL_TYPE_DOUBLE_COMPLEX</a>, <a class="el" href="group__cpl__type.html#gga3f03371e201544e9115b40065e47f086aa44c37e26b9040a96e3a49b405946942">CPL_TYPE_FLOAT</a>, <a class="el" href="group__cpl__type.html#gga3f03371e201544e9115b40065e47f086ab2ab0f96a382011a38ee9446626fe1e0">CPL_TYPE_FLOAT_COMPLEX</a>, and <a class="el" href="group__cpl__type.html#gga3f03371e201544e9115b40065e47f086ae333db5ccea0813ccd892525b4ba1345">CPL_TYPE_INT</a>.</p>
</div>
</div>
<a class="anchor" id="ga370a42c6399b44a1e74f4fb6e0c87457"></a>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname"><a class="el" href="group__cpl__error.html#ga44b4287e8a7a22122b94c220a1dd9459">cpl_error_code</a> cpl_image_save </td>
<td>(</td>
<td class="paramtype">const cpl_image * </td>
<td class="paramname"><em>self</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">const char * </td>
<td class="paramname"><em>filename</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype"><a class="el" href="group__cpl__type.html#ga01345c598396c7cd159979734adfb57d">cpl_type</a> </td>
<td class="paramname"><em>type</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">const <a class="el" href="group__cpl__propertylist.html#gab1629461e5d64dd8594cd505e3ea46ab">cpl_propertylist</a> * </td>
<td class="paramname"><em>pl</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">unsigned </td>
<td class="paramname"><em>mode</em> </td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td>
</tr>
</table>
</div><div class="memdoc">
<p>Save an image to a FITS file. </p>
<dl class="params"><dt>Parameters</dt><dd>
<table class="params">
<tr><td class="paramname">self</td><td>Image to write to disk or NULL </td></tr>
<tr><td class="paramname">filename</td><td>Name of the file to write to </td></tr>
<tr><td class="paramname">type</td><td>The type used to represent the data in the file </td></tr>
<tr><td class="paramname">pl</td><td>Property list for the output header or NULL </td></tr>
<tr><td class="paramname">mode</td><td>The desired output options </td></tr>
</table>
</dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>CPL_ERROR_NONE or the relevant <a class="el" href="group__cpl__error.html#ga49a0c316d52d2afbfd9fd94b95344900" title="Available error codes. ">_cpl_error_code_</a> on error </dd></dl>
<dl class="section see"><dt>See also</dt><dd><a class="el" href="group__cpl__propertylist.html#gacd7a0cbf0a42ae4fef7dcd34a897b773" title="Save a property list to a FITS file. ">cpl_propertylist_save()</a></dd></dl>
<p>This function saves an image to a FITS file. If a property list is provided, it is written to the header where the image is written. The image may be NULL, in this case only the propertylist is saved.</p>
<p>Supported image types are CPL_TYPE_DOUBLE, CPL_TYPE_FLOAT, CPL_TYPE_INT.</p>
<p>The type used in the file can be one of: CPL_TYPE_UCHAR (8 bit unsigned), CPL_TYPE_SHORT (16 bit signed), CPL_TYPE_USHORT (16 bit unsigned), CPL_TYPE_INT (32 bit signed), CPL_TYPE_FLOAT (32 bit floating point), or CPL_TYPE_DOUBLE (64 bit floating point). Additionally, the special value CPL_TYPE_UNSPECIFIED is allowed. This value means that the type used for saving is the pixel type of the input image. Using the image pixel type as saving type ensures that the saving incurs no loss of information.</p>
<p>Supported output modes are CPL_IO_CREATE (create a new file) and CPL_IO_EXTEND (append a new extension to an existing file).</p>
<p>Upon success the image will reside in a FITS data unit with NAXIS = 2. Is it possible to save a single image in a FITS data unit with NAXIS = 3, see <a class="el" href="group__cpl__imagelist.html#ga8584cfc734bf716addd9315afd1ceaf2" title="Save an imagelist to disk in FITS format. ">cpl_imagelist_save()</a>.</p>
<p>When the data written to disk are of an integer type, the output mode CPL_IO_EXTEND can be combined (via bit-wise or) with an option for tile-compression. This compression of integer data is lossless. The options are: CPL_IO_COMPRESS_GZIP, CPL_IO_COMPRESS_RICE, CPL_IO_COMPRESS_HCOMPRESS, CPL_IO_COMPRESS_PLIO. With compression the type must be CPL_TYPE_UNSPECIFIED or CPL_TYPE_INT.</p>
<p>Note that in append mode the file must be writable (and do not take for granted that a file is writable just because it was created by the same application, as this depends from the system <em>umask</em>).</p>
<p>Possible <a class="el" href="group__cpl__error.html#ga49a0c316d52d2afbfd9fd94b95344900" title="Available error codes. ">_cpl_error_code_</a> set in this function:</p><ul>
<li>CPL_ERROR_NULL_INPUT if an input pointer is NULL</li>
<li>CPL_ERROR_ILLEGAL_INPUT if the type or the mode is not supported</li>
<li>CPL_ERROR_INVALID_TYPE if the passed pixel type is not supported</li>
<li>CPL_ERROR_FILE_NOT_CREATED if the output file cannot be created</li>
<li>CPL_ERROR_FILE_IO if the data cannot be written to the file </li>
</ul>
<p>References <a class="el" href="group__cpl__error.html#gga49a0c316d52d2afbfd9fd94b95344900a0239c1c63e9d21e98e45221a3ad60406">CPL_ERROR_NONE</a>, and <a class="el" href="group__cpl__propertylist.html#gacd7a0cbf0a42ae4fef7dcd34a897b773">cpl_propertylist_save()</a>.</p>
</div>
</div>
<a class="anchor" id="gaceda29961b159f8ae6d19b1759d6b34b"></a>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname"><a class="el" href="group__cpl__error.html#ga44b4287e8a7a22122b94c220a1dd9459">cpl_error_code</a> cpl_image_set </td>
<td>(</td>
<td class="paramtype">cpl_image * </td>
<td class="paramname"><em>image</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype"><a class="el" href="group__cpl__type.html#gacc431432a4fedf19ec6f7668dda3fbf0">cpl_size</a> </td>
<td class="paramname"><em>xpos</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype"><a class="el" href="group__cpl__type.html#gacc431432a4fedf19ec6f7668dda3fbf0">cpl_size</a> </td>
<td class="paramname"><em>ypos</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">double </td>
<td class="paramname"><em>value</em> </td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td>
</tr>
</table>
</div><div class="memdoc">
<p>Set the pixel at the given position to the given value. </p>
<dl class="params"><dt>Parameters</dt><dd>
<table class="params">
<tr><td class="paramname">image</td><td>input image. </td></tr>
<tr><td class="paramname">xpos</td><td>Pixel x position (FITS convention, 1 for leftmost) </td></tr>
<tr><td class="paramname">ypos</td><td>Pixel y position (FITS convention, 1 for lowest) </td></tr>
<tr><td class="paramname">value</td><td>New pixel value </td></tr>
</table>
</dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>CPL_ERROR_NONE or the relevant <a class="el" href="group__cpl__error.html#ga49a0c316d52d2afbfd9fd94b95344900" title="Available error codes. ">_cpl_error_code_</a> on error</dd></dl>
<p>Images can be CPL_TYPE_FLOAT, CPL_TYPE_INT, CPL_TYPE_DOUBLE.</p>
<p>If the pixel is flagged as rejected, this flag is removed.</p>
<p>Possible <a class="el" href="group__cpl__error.html#ga49a0c316d52d2afbfd9fd94b95344900" title="Available error codes. ">_cpl_error_code_</a> set in this function:</p><ul>
<li>CPL_ERROR_NULL_INPUT if an input pointer is NULL</li>
<li>CPL_ERROR_ACCESS_OUT_OF_RANGE if the passed position is not in the image</li>
<li>CPL_ERROR_INVALID_TYPE if the image pixel type is not supported </li>
</ul>
<p>References <a class="el" href="group__cpl__error.html#gaf18e95fbc6fc2cfde2a2cc8a0920b12d">cpl_ensure_code</a>, <a class="el" href="group__cpl__error.html#gga49a0c316d52d2afbfd9fd94b95344900a0d916ea6a7e198a74863ecd9ea03d733">CPL_ERROR_ACCESS_OUT_OF_RANGE</a>, <a class="el" href="group__cpl__error.html#gga49a0c316d52d2afbfd9fd94b95344900a7907a24014a3a45aebe5ee1842f0c6f3">CPL_ERROR_INVALID_TYPE</a>, <a class="el" href="group__cpl__error.html#gga49a0c316d52d2afbfd9fd94b95344900a0239c1c63e9d21e98e45221a3ad60406">CPL_ERROR_NONE</a>, <a class="el" href="group__cpl__error.html#gga49a0c316d52d2afbfd9fd94b95344900a7b054cf7927d1bd0a9b3693a6715be84">CPL_ERROR_NULL_INPUT</a>, and <a class="el" href="group__cpl__image.html#gad10b1cfd108bca93f71cf0bdf74366d9">cpl_image_accept()</a>.</p>
<p>Referenced by <a class="el" href="group__cpl__image.html#gab2611352be67b89c2169cd49830c92ca">cpl_image_fill_window()</a>.</p>
</div>
</div>
<a class="anchor" id="gacd6baa173d1f126885d9daafc71a75df"></a>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">cpl_mask* cpl_image_set_bpm </td>
<td>(</td>
<td class="paramtype">cpl_image * </td>
<td class="paramname"><em>self</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">cpl_mask * </td>
<td class="paramname"><em>bpm</em> </td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td>
</tr>
</table>
</div><div class="memdoc">
<p>Replace the bad pixel map of the image. </p>
<dl class="params"><dt>Parameters</dt><dd>
<table class="params">
<tr><td class="paramname">self</td><td>Image to modfify </td></tr>
<tr><td class="paramname">bpm</td><td>Bad Pixel Map (BPM) to set, replacing the old one, or NULL </td></tr>
</table>
</dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>A pointer to the old mask of bad pixels, or NULL </dd></dl>
<dl class="section note"><dt>Note</dt><dd>NULL is returned if the image had no bad pixel map, while a non-NULL returned mask must be deallocated by the caller using <a class="el" href="group__cpl__mask.html#gaa312160718b8fdc24de0cd755cf35224" title="Delete a cpl_mask. ">cpl_mask_delete()</a>. </dd></dl>
<dl class="section see"><dt>See also</dt><dd><a class="el" href="group__cpl__image.html#gaa199c6fc00ac1d83ed37fb9717e2c4bd" title="Gets the bad pixels map. ">cpl_image_get_bpm_const()</a></dd></dl>
<p>Possible <a class="el" href="group__cpl__error.html#ga49a0c316d52d2afbfd9fd94b95344900" title="Available error codes. ">_cpl_error_code_</a> set in this function:</p><ul>
<li>CPL_ERROR_NULL_INPUT if self is NULL </li>
</ul>
<p>References <a class="el" href="group__cpl__error.html#gafb123879d8683c6d63681f433dc19bd0">cpl_ensure</a>, and <a class="el" href="group__cpl__error.html#gga49a0c316d52d2afbfd9fd94b95344900a7b054cf7927d1bd0a9b3693a6715be84">CPL_ERROR_NULL_INPUT</a>.</p>
<p>Referenced by <a class="el" href="group__cpl__image.html#gaa78c1412f0efea52c2d6f5e7d5528eca">cpl_image_unset_bpm()</a>.</p>
</div>
</div>
<a class="anchor" id="ga4621604fefc84c57d5f198e02ef49260"></a>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname"><a class="el" href="group__cpl__error.html#ga44b4287e8a7a22122b94c220a1dd9459">cpl_error_code</a> cpl_image_set_complex </td>
<td>(</td>
<td class="paramtype">cpl_image * </td>
<td class="paramname"><em>image</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype"><a class="el" href="group__cpl__type.html#gacc431432a4fedf19ec6f7668dda3fbf0">cpl_size</a> </td>
<td class="paramname"><em>xpos</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype"><a class="el" href="group__cpl__type.html#gacc431432a4fedf19ec6f7668dda3fbf0">cpl_size</a> </td>
<td class="paramname"><em>ypos</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">double complex </td>
<td class="paramname"><em>value</em> </td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td>
</tr>
</table>
</div><div class="memdoc">
<p>Set the pixel at the given position to the given complex value. </p>
<dl class="params"><dt>Parameters</dt><dd>
<table class="params">
<tr><td class="paramname">image</td><td>input image. </td></tr>
<tr><td class="paramname">xpos</td><td>Pixel x position (FITS convention, 1 for leftmost) </td></tr>
<tr><td class="paramname">ypos</td><td>Pixel y position (FITS convention, 1 for lowest) </td></tr>
<tr><td class="paramname">value</td><td>New pixel value </td></tr>
</table>
</dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>CPL_ERROR_NONE or the relevant <a class="el" href="group__cpl__error.html#ga49a0c316d52d2afbfd9fd94b95344900" title="Available error codes. ">_cpl_error_code_</a> on error </dd></dl>
<dl class="section see"><dt>See also</dt><dd><a class="el" href="group__cpl__image.html#gaceda29961b159f8ae6d19b1759d6b34b" title="Set the pixel at the given position to the given value. ">cpl_image_set()</a> </dd></dl>
<dl class="section note"><dt>Note</dt><dd>This function is available iff the application includes complex.h</dd></dl>
<p>Images can be CPL_TYPE_FLOAT_COMPLEX or CPL_TYPE_DOUBLE_COMPLEX.</p>
<p>If the pixel is flagged as rejected, this flag is removed.</p>
<p>Possible <a class="el" href="group__cpl__error.html#ga49a0c316d52d2afbfd9fd94b95344900" title="Available error codes. ">_cpl_error_code_</a> set in this function:</p><ul>
<li>CPL_ERROR_NULL_INPUT if an input pointer is NULL</li>
<li>CPL_ERROR_ACCESS_OUT_OF_RANGE if the passed position is not in the image</li>
<li>CPL_ERROR_INVALID_TYPE if the image pixel type is not supported </li>
</ul>
<p>References <a class="el" href="group__cpl__error.html#gaf18e95fbc6fc2cfde2a2cc8a0920b12d">cpl_ensure_code</a>, <a class="el" href="group__cpl__error.html#gga49a0c316d52d2afbfd9fd94b95344900a0d916ea6a7e198a74863ecd9ea03d733">CPL_ERROR_ACCESS_OUT_OF_RANGE</a>, <a class="el" href="group__cpl__error.html#gga49a0c316d52d2afbfd9fd94b95344900a0239c1c63e9d21e98e45221a3ad60406">CPL_ERROR_NONE</a>, <a class="el" href="group__cpl__error.html#gga49a0c316d52d2afbfd9fd94b95344900a7b054cf7927d1bd0a9b3693a6715be84">CPL_ERROR_NULL_INPUT</a>, <a class="el" href="group__cpl__image.html#gad10b1cfd108bca93f71cf0bdf74366d9">cpl_image_accept()</a>, and <a class="el" href="group__cpl__type.html#gga3f03371e201544e9115b40065e47f086ab2ab0f96a382011a38ee9446626fe1e0">CPL_TYPE_FLOAT_COMPLEX</a>.</p>
</div>
</div>
<a class="anchor" id="gaec847d228bb8d3f8c74831e33d93b758"></a>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname"><a class="el" href="group__cpl__error.html#ga44b4287e8a7a22122b94c220a1dd9459">cpl_error_code</a> cpl_image_shift </td>
<td>(</td>
<td class="paramtype">cpl_image * </td>
<td class="paramname"><em>self</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype"><a class="el" href="group__cpl__type.html#gacc431432a4fedf19ec6f7668dda3fbf0">cpl_size</a> </td>
<td class="paramname"><em>dx</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype"><a class="el" href="group__cpl__type.html#gacc431432a4fedf19ec6f7668dda3fbf0">cpl_size</a> </td>
<td class="paramname"><em>dy</em> </td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td>
</tr>
</table>
</div><div class="memdoc">
<p>Shift an image by integer offsets. </p>
<dl class="params"><dt>Parameters</dt><dd>
<table class="params">
<tr><td class="paramname">self</td><td>The image to shift in place </td></tr>
<tr><td class="paramname">dx</td><td>The shift in X </td></tr>
<tr><td class="paramname">dy</td><td>The shift in Y </td></tr>
</table>
</dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>the <a class="el" href="group__cpl__error.html#ga49a0c316d52d2afbfd9fd94b95344900" title="Available error codes. ">_cpl_error_code_</a> or CPL_ERROR_NONE</dd></dl>
<p>The new zones (in the result image) where no new value is computed are set to 0 and flagged as bad pixels. The shift values have to be valid: -nx < dx < nx and -ny < dy < ny</p>
<p>Possible <a class="el" href="group__cpl__error.html#ga49a0c316d52d2afbfd9fd94b95344900" title="Available error codes. ">_cpl_error_code_</a> set in this function:</p><ul>
<li>CPL_ERROR_NULL_INPUT if an input pointer is NULL</li>
<li>CPL_ERROR_ILLEGAL_INPUT if the requested shift is bigger than the image size </li>
</ul>
<p>References <a class="el" href="group__cpl__error.html#gaf18e95fbc6fc2cfde2a2cc8a0920b12d">cpl_ensure_code</a>, <a class="el" href="group__cpl__error.html#gga49a0c316d52d2afbfd9fd94b95344900a0239c1c63e9d21e98e45221a3ad60406">CPL_ERROR_NONE</a>, <a class="el" href="group__cpl__error.html#gga49a0c316d52d2afbfd9fd94b95344900a7b054cf7927d1bd0a9b3693a6715be84">CPL_ERROR_NULL_INPUT</a>, <a class="el" href="group__cpl__mask.html#gab67918578893ea4a0e005cb4397f8754">cpl_mask_new()</a>, <a class="el" href="group__cpl__mask.html#gab90af7f91b5537fa94a77472869c9588">cpl_mask_shift()</a>, and <a class="el" href="group__cpl__type.html#ga5098a0d41d12e907e5cacce2052a345e">cpl_type_get_sizeof()</a>.</p>
</div>
</div>
<a class="anchor" id="ga1690a4cca5ff0ceae4e2e5e0caa1c422"></a>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname"><a class="el" href="group__cpl__error.html#ga44b4287e8a7a22122b94c220a1dd9459">cpl_error_code</a> cpl_image_subtract </td>
<td>(</td>
<td class="paramtype">cpl_image * </td>
<td class="paramname"><em>im1</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">const cpl_image * </td>
<td class="paramname"><em>im2</em> </td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td>
</tr>
</table>
</div><div class="memdoc">
<p>Subtract two images, store the result in the first image. </p>
<dl class="params"><dt>Parameters</dt><dd>
<table class="params">
<tr><td class="paramname">im1</td><td>first operand. </td></tr>
<tr><td class="paramname">im2</td><td>second operand. </td></tr>
</table>
</dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>the <a class="el" href="group__cpl__error.html#ga49a0c316d52d2afbfd9fd94b95344900" title="Available error codes. ">_cpl_error_code_</a> or CPL_ERROR_NONE </dd></dl>
<dl class="section see"><dt>See also</dt><dd><a class="el" href="group__cpl__image.html#gaff601b28e179b3d1e62068e7561a26e8" title="Add two images, store the result in the first image. ">cpl_image_add()</a> </dd></dl>
</div>
</div>
<a class="anchor" id="ga13510651b6275b269a61b8e596a01768"></a>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">cpl_image* cpl_image_subtract_create </td>
<td>(</td>
<td class="paramtype">const cpl_image * </td>
<td class="paramname"><em>image1</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">const cpl_image * </td>
<td class="paramname"><em>image2</em> </td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td>
</tr>
</table>
</div><div class="memdoc">
<p>Subtract two images. </p>
<dl class="params"><dt>Parameters</dt><dd>
<table class="params">
<tr><td class="paramname">image1</td><td>first operand </td></tr>
<tr><td class="paramname">image2</td><td>second operand </td></tr>
</table>
</dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>1 newly allocated image or NULL on error </dd></dl>
<dl class="section see"><dt>See also</dt><dd><a class="el" href="group__cpl__image.html#ga6126fb1c1a32987e3558970aca84a5ec" title="Add two images. ">cpl_image_add_create()</a> </dd></dl>
</div>
</div>
<a class="anchor" id="gae6e76e5c9c03f0da6f57d21f3060146f"></a>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname"><a class="el" href="group__cpl__error.html#ga44b4287e8a7a22122b94c220a1dd9459">cpl_error_code</a> cpl_image_subtract_scalar </td>
<td>(</td>
<td class="paramtype">cpl_image * </td>
<td class="paramname"><em>self</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">double </td>
<td class="paramname"><em>scalar</em> </td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td>
</tr>
</table>
</div><div class="memdoc">
<p>Elementwise subtraction of a scalar from an image. </p>
<dl class="params"><dt>Parameters</dt><dd>
<table class="params">
<tr><td class="paramname">self</td><td>Image to be modified in place. </td></tr>
<tr><td class="paramname">scalar</td><td>Number to subtract </td></tr>
</table>
</dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>CPL_ERROR_NONE or the relevant the <a class="el" href="group__cpl__error.html#ga49a0c316d52d2afbfd9fd94b95344900" title="Available error codes. ">_cpl_error_code_</a> on error </dd></dl>
<dl class="section see"><dt>See also</dt><dd><a class="el" href="group__cpl__image.html#ga3bd51e4922065f67d7cdcc4043c6b0cd" title="Elementwise addition of a scalar to an image. ">cpl_image_add_scalar()</a> </dd></dl>
<p>References <a class="el" href="group__cpl__error.html#gaf18e95fbc6fc2cfde2a2cc8a0920b12d">cpl_ensure_code</a>, <a class="el" href="group__cpl__error.html#gga49a0c316d52d2afbfd9fd94b95344900a7907a24014a3a45aebe5ee1842f0c6f3">CPL_ERROR_INVALID_TYPE</a>, <a class="el" href="group__cpl__error.html#gga49a0c316d52d2afbfd9fd94b95344900a0239c1c63e9d21e98e45221a3ad60406">CPL_ERROR_NONE</a>, <a class="el" href="group__cpl__error.html#gga49a0c316d52d2afbfd9fd94b95344900a7b054cf7927d1bd0a9b3693a6715be84">CPL_ERROR_NULL_INPUT</a>, and <a class="el" href="group__cpl__image.html#ga17f97e60794f88e7f06b85cccbecc132">cpl_image_get_type()</a>.</p>
<p>Referenced by <a class="el" href="group__cpl__image.html#gaa1a902191405d8bd33e1bc5b239dfef0">cpl_image_normalise()</a>, <a class="el" href="group__cpl__image.html#ga07f1a13958fb9f1d3bba6e1a28b618f8">cpl_image_subtract_scalar_create()</a>, <a class="el" href="group__cpl__imagelist.html#gaecf3c255e40abb4e930a74a6b384fdd2">cpl_imagelist_subtract_scalar()</a>, and <a class="el" href="group__cpl__plot.html#gac52d4503c66e0878a162909b84120ccd">cpl_plot_image()</a>.</p>
</div>
</div>
<a class="anchor" id="ga07f1a13958fb9f1d3bba6e1a28b618f8"></a>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">cpl_image* cpl_image_subtract_scalar_create </td>
<td>(</td>
<td class="paramtype">const cpl_image * </td>
<td class="paramname"><em>image</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">double </td>
<td class="paramname"><em>subtrahend</em> </td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td>
</tr>
</table>
</div><div class="memdoc">
<p>Create an image by elementwise subtraction of a scalar from an image. </p>
<dl class="params"><dt>Parameters</dt><dd>
<table class="params">
<tr><td class="paramname">image</td><td>Image to be subtracted from </td></tr>
<tr><td class="paramname">subtrahend</td><td>Number to subtract </td></tr>
</table>
</dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>1 newly allocated image or NULL in case of an error </dd></dl>
<dl class="section see"><dt>See also</dt><dd><a class="el" href="group__cpl__image.html#gae6e76e5c9c03f0da6f57d21f3060146f" title="Elementwise subtraction of a scalar from an image. ">cpl_image_subtract_scalar</a> </dd>
<dd>
<a class="el" href="group__cpl__image.html#ga956c494049f2bff35a254ee2d91a212f" title="Create a new image by elementwise addition of a scalar to an image. ">cpl_image_add_scalar_create</a> </dd></dl>
<p>References <a class="el" href="group__cpl__error.html#gafb123879d8683c6d63681f433dc19bd0">cpl_ensure</a>, <a class="el" href="group__cpl__error.html#ga724de575c31ddf40f42786306f9dbdcb">cpl_error_get_code()</a>, <a class="el" href="group__cpl__image.html#ga272e4e004716651b94d6d36e575b6841">cpl_image_delete()</a>, <a class="el" href="group__cpl__image.html#gadebfe1dae2cbd7a59fc09b323c55c10e">cpl_image_duplicate()</a>, and <a class="el" href="group__cpl__image.html#gae6e76e5c9c03f0da6f57d21f3060146f">cpl_image_subtract_scalar()</a>.</p>
<p>Referenced by <a class="el" href="group__cpl__plot.html#gac52d4503c66e0878a162909b84120ccd">cpl_plot_image()</a>.</p>
</div>
</div>
<a class="anchor" id="gab648aa6971f664e8e696a79479459270"></a>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname"><a class="el" href="group__cpl__error.html#ga44b4287e8a7a22122b94c220a1dd9459">cpl_error_code</a> cpl_image_threshold </td>
<td>(</td>
<td class="paramtype">cpl_image * </td>
<td class="paramname"><em>image_in</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">double </td>
<td class="paramname"><em>lo_cut</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">double </td>
<td class="paramname"><em>hi_cut</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">double </td>
<td class="paramname"><em>assign_lo_cut</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">double </td>
<td class="paramname"><em>assign_hi_cut</em> </td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td>
</tr>
</table>
</div><div class="memdoc">
<p>Threshold an image to a given interval. </p>
<dl class="params"><dt>Parameters</dt><dd>
<table class="params">
<tr><td class="paramname">image_in</td><td>Image to threshold. </td></tr>
<tr><td class="paramname">lo_cut</td><td>Lower bound. </td></tr>
<tr><td class="paramname">hi_cut</td><td>Higher bound. </td></tr>
<tr><td class="paramname">assign_lo_cut</td><td>Value to assign to pixels below low bound. </td></tr>
<tr><td class="paramname">assign_hi_cut</td><td>Value to assign to pixels above high bound. </td></tr>
</table>
</dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>the <a class="el" href="group__cpl__error.html#ga49a0c316d52d2afbfd9fd94b95344900" title="Available error codes. ">_cpl_error_code_</a> or CPL_ERROR_NONE</dd></dl>
<p>Pixels outside of the provided interval are assigned the given values.</p>
<p>Use FLT_MIN and FLT_MAX for floating point images and DBL_MIN and DBL_MAX for double images for the lo_cut and hi_cut to avoid any pixel replacement.</p>
<p>Images can be of type CPL_TYPE_INT, CPL_TYPE_FLOAT or CPL_TYPE_DOUBLE. lo_cut must be smaller than or equal to hi_cut.</p>
<p>Possible <a class="el" href="group__cpl__error.html#ga49a0c316d52d2afbfd9fd94b95344900" title="Available error codes. ">_cpl_error_code_</a> set in this function:</p><ul>
<li>CPL_ERROR_NULL_INPUT if an input pointer is NULL</li>
<li>CPL_ERROR_INVALID_TYPE if the passed image type is not supported</li>
<li>CPL_ERROR_ILLEGAL_INPUT if lo_cut is greater than hi_cut </li>
</ul>
<p>References <a class="el" href="group__cpl__error.html#gaf18e95fbc6fc2cfde2a2cc8a0920b12d">cpl_ensure_code</a>, <a class="el" href="group__cpl__error.html#gga49a0c316d52d2afbfd9fd94b95344900ae6ab32df318c1af9afcddcb8249cad51">CPL_ERROR_ILLEGAL_INPUT</a>, <a class="el" href="group__cpl__error.html#gga49a0c316d52d2afbfd9fd94b95344900a7907a24014a3a45aebe5ee1842f0c6f3">CPL_ERROR_INVALID_TYPE</a>, <a class="el" href="group__cpl__error.html#gga49a0c316d52d2afbfd9fd94b95344900a0239c1c63e9d21e98e45221a3ad60406">CPL_ERROR_NONE</a>, and <a class="el" href="group__cpl__error.html#gga49a0c316d52d2afbfd9fd94b95344900a7b054cf7927d1bd0a9b3693a6715be84">CPL_ERROR_NULL_INPUT</a>.</p>
<p>Referenced by <a class="el" href="group__cpl__imagelist.html#ga9d64f52bb968cd34701da0edb3821a42">cpl_imagelist_threshold()</a>.</p>
</div>
</div>
<a class="anchor" id="ga0693c816bb297e093454d3031dcdbc1f"></a>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname"><a class="el" href="group__cpl__error.html#ga44b4287e8a7a22122b94c220a1dd9459">cpl_error_code</a> cpl_image_turn </td>
<td>(</td>
<td class="paramtype">cpl_image * </td>
<td class="paramname"><em>self</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">int </td>
<td class="paramname"><em>rot</em> </td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td>
</tr>
</table>
</div><div class="memdoc">
<p>Rotate an image by a multiple of 90 degrees clockwise. </p>
<dl class="params"><dt>Parameters</dt><dd>
<table class="params">
<tr><td class="paramname">self</td><td>The image to rotate in place. </td></tr>
<tr><td class="paramname">rot</td><td>The multiple: -1 is a rotation of 90 deg counterclockwise. </td></tr>
</table>
</dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>CPL_ERROR_NONE on success, otherwise the relevant <a class="el" href="group__cpl__error.html#ga49a0c316d52d2afbfd9fd94b95344900" title="Available error codes. ">_cpl_error_code_</a> </dd></dl>
<dl class="section note"><dt>Note</dt><dd>The dimension of a rectangular image is changed.</dd></dl>
<p>Images can be of type CPL_TYPE_INT, CPL_TYPE_FLOAT or CPL_TYPE_DOUBLE.</p>
<p>The definition of the rotation relies on the FITS convention: The lower left corner of the image is at (1,1), x increasing from left to right, y increasing from bottom to top.</p>
<p>For rotations of +90 or -90 degrees on rectangular non-1D-images, the pixel buffer is temporarily duplicated.</p>
<p>rot may be any integer value, its modulo 4 determines the rotation:</p><ul>
<li>-3 to turn 270 degrees counterclockwise.</li>
<li>-2 to turn 180 degrees counterclockwise.</li>
<li>-1 to turn 90 degrees counterclockwise.</li>
<li>0 to not turn</li>
<li>+1 to turn 90 degrees clockwise (same as -3)</li>
<li>+2 to turn 180 degrees clockwise (same as -2).</li>
<li>+3 to turn 270 degrees clockwise (same as -1).</li>
</ul>
<p>Possible <a class="el" href="group__cpl__error.html#ga49a0c316d52d2afbfd9fd94b95344900" title="Available error codes. ">_cpl_error_code_</a> set in this function:</p><ul>
<li>CPL_ERROR_NULL_INPUT if an input pointer is NULL</li>
<li>CPL_ERROR_INVALID_TYPE if the passed image type is not supported </li>
</ul>
<p>References <a class="el" href="group__cpl__error.html#gaf18e95fbc6fc2cfde2a2cc8a0920b12d">cpl_ensure_code</a>, <a class="el" href="group__cpl__error.html#gga49a0c316d52d2afbfd9fd94b95344900a7907a24014a3a45aebe5ee1842f0c6f3">CPL_ERROR_INVALID_TYPE</a>, <a class="el" href="group__cpl__error.html#gga49a0c316d52d2afbfd9fd94b95344900a0239c1c63e9d21e98e45221a3ad60406">CPL_ERROR_NONE</a>, <a class="el" href="group__cpl__error.html#gga49a0c316d52d2afbfd9fd94b95344900a7b054cf7927d1bd0a9b3693a6715be84">CPL_ERROR_NULL_INPUT</a>, and <a class="el" href="group__cpl__mask.html#ga2a4b0a1ac819f9904541feb96bc7c82d">cpl_mask_turn()</a>.</p>
</div>
</div>
<a class="anchor" id="gaa78c1412f0efea52c2d6f5e7d5528eca"></a>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">cpl_mask* cpl_image_unset_bpm </td>
<td>(</td>
<td class="paramtype">cpl_image * </td>
<td class="paramname"><em>self</em></td><td>)</td>
<td></td>
</tr>
</table>
</div><div class="memdoc">
<p>Remove the bad pixel map from the image. </p>
<dl class="params"><dt>Parameters</dt><dd>
<table class="params">
<tr><td class="paramname">self</td><td>image to process </td></tr>
</table>
</dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>A pointer to the cpl_mask of bad pixels, or NULL </dd></dl>
<dl class="section note"><dt>Note</dt><dd>NULL is returned if the image has no bad pixel map </dd>
<dd>
The returned mask must be deallocated using <a class="el" href="group__cpl__mask.html#gaa312160718b8fdc24de0cd755cf35224" title="Delete a cpl_mask. ">cpl_mask_delete()</a>. </dd></dl>
<dl class="section see"><dt>See also</dt><dd><a class="el" href="group__cpl__image.html#gacd6baa173d1f126885d9daafc71a75df" title="Replace the bad pixel map of the image. ">cpl_image_set_bpm()</a></dd></dl>
<p>Possible <a class="el" href="group__cpl__error.html#ga49a0c316d52d2afbfd9fd94b95344900" title="Available error codes. ">_cpl_error_code_</a> set in this function:</p><ul>
<li>CPL_ERROR_NULL_INPUT if an input pointer is NULL </li>
</ul>
<p>References <a class="el" href="group__cpl__error.html#gafb123879d8683c6d63681f433dc19bd0">cpl_ensure</a>, <a class="el" href="group__cpl__error.html#gga49a0c316d52d2afbfd9fd94b95344900a7b054cf7927d1bd0a9b3693a6715be84">CPL_ERROR_NULL_INPUT</a>, and <a class="el" href="group__cpl__image.html#gacd6baa173d1f126885d9daafc71a75df">cpl_image_set_bpm()</a>.</p>
<p>Referenced by <a class="el" href="group__cpl__image.html#ga035ba167b6776b782e9920335dba5587">cpl_image_accept_all()</a>, <a class="el" href="group__cpl__imagelist.html#ga279d1cfa700e3da60be0e569e56080c4">cpl_imagelist_cast()</a>, <a class="el" href="group__cpl__imagelist.html#gaeb30a698e9bf61b0a52e240c2e2d4076">cpl_imagelist_empty()</a>, <a class="el" href="group__cpl__imagelist.html#gacd75e9eed1780f9b63807be2d2fd0803">cpl_imagelist_erase()</a>, and <a class="el" href="group__cpl__imagelist.html#gad6bce4e990300800fa351fe73d0865b6">cpl_imagelist_set()</a>.</p>
</div>
</div>
<a class="anchor" id="ga0e7668aa99a78f4f5314cfc00a89a04f"></a>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">void* cpl_image_unwrap </td>
<td>(</td>
<td class="paramtype">cpl_image * </td>
<td class="paramname"><em>d</em></td><td>)</td>
<td></td>
</tr>
</table>
</div><div class="memdoc">
<p>Free memory associated to an cpl_image object, but the pixel buffer. </p>
<dl class="params"><dt>Parameters</dt><dd>
<table class="params">
<tr><td class="paramname">d</td><td>Image to destroy. </td></tr>
</table>
</dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>A pointer to the data array or NULL if the input is NULL.</dd></dl>
<p>Frees all memory associated to an cpl_image, except the pixel buffer. <a class="el" href="group__cpl__image.html#ga0e7668aa99a78f4f5314cfc00a89a04f" title="Free memory associated to an cpl_image object, but the pixel buffer. ">cpl_image_unwrap()</a> is provided for images that are constructed by passing a pixel buffer to one of cpl_image_wrap_{double,float,int}().</p>
<dl class="section note"><dt>Note</dt><dd>The pixel buffer must subsequently be deallocated. Failure to do so will result in a memory leak. </dd></dl>
<p>References <a class="el" href="group__cpl__memory.html#ga9cd2b64cbbe05ec9f34fda048184b4d1">cpl_free()</a>, and <a class="el" href="group__cpl__mask.html#gaa312160718b8fdc24de0cd755cf35224">cpl_mask_delete()</a>.</p>
<p>Referenced by <a class="el" href="group__cpl__vector.html#gaac7e1c59050e53a96573f904db76ec43">cpl_vector_cycle()</a>, and <a class="el" href="group__cpl__vector.html#gae804fc37f617a11d5c5e73f901c55f36">cpl_vector_filter_median_create()</a>.</p>
</div>
</div>
<a class="anchor" id="ga53d75eb2e23114e4870c4d523081bfda"></a>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname"><a class="el" href="group__cpl__error.html#ga44b4287e8a7a22122b94c220a1dd9459">cpl_error_code</a> cpl_image_warp </td>
<td>(</td>
<td class="paramtype">cpl_image * </td>
<td class="paramname"><em>out</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">const cpl_image * </td>
<td class="paramname"><em>in</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">const cpl_image * </td>
<td class="paramname"><em>deltax</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">const cpl_image * </td>
<td class="paramname"><em>deltay</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">const cpl_vector * </td>
<td class="paramname"><em>xprofile</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">double </td>
<td class="paramname"><em>xradius</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">const cpl_vector * </td>
<td class="paramname"><em>yprofile</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">double </td>
<td class="paramname"><em>yradius</em> </td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td>
</tr>
</table>
</div><div class="memdoc">
<p>Warp an image. </p>
<dl class="params"><dt>Parameters</dt><dd>
<table class="params">
<tr><td class="paramname">out</td><td>Pre-allocated destination image to hold the result </td></tr>
<tr><td class="paramname">in</td><td>Source image to warp </td></tr>
<tr><td class="paramname">deltax</td><td>The x shift of each pixel, same image size as out </td></tr>
<tr><td class="paramname">deltay</td><td>The y shift of each pixel, same image size as out </td></tr>
<tr><td class="paramname">xprofile</td><td>Interpolation weight as a function of the distance in X </td></tr>
<tr><td class="paramname">xradius</td><td>Positive inclusion radius in the X-dimension </td></tr>
<tr><td class="paramname">yprofile</td><td>Interpolation weight as a function of the distance in Y </td></tr>
<tr><td class="paramname">yradius</td><td>Positive inclusion radius in the Y-dimension </td></tr>
</table>
</dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>CPL_ERROR_NONE or the relevant <a class="el" href="group__cpl__error.html#ga49a0c316d52d2afbfd9fd94b95344900" title="Available error codes. ">_cpl_error_code_</a> on error </dd></dl>
<dl class="section see"><dt>See also</dt><dd><a class="el" href="group__cpl__image.html#ga7b4a871df75c1e8198ebe9359efd181b" title="Interpolate a pixel. ">cpl_image_get_interpolated()</a></dd></dl>
<p>The pixel value at the (integer) position (u, v) in the destination image is interpolated from the (typically non-integer) pixel position (x, y) in the source image, where</p>
<pre class="fragment">x = u - deltax(u, v),
y = v - deltay(u, v).
</pre><p>The identity transform is thus given by deltax and deltay filled with zeros.</p>
<p>The first pixel is (1, 1), located in the lower left. 'out' and 'in' may have different sizes, while deltax and deltay must have the same size as 'out'. deltax and deltay must have pixel type CPL_TYPE_DOUBLE.</p>
<p>Beware that extreme transformations may lead to blank images.</p>
<p>'out' and 'in' may be of type CPL_TYPE_INT, CPL_TYPE_FLOAT or CPL_TYPE_DOUBLE.</p>
<p>Examples of profiles and radius are:</p>
<pre class="fragment">xprofile = cpl_vector_new(CPL_KERNEL_DEF_SAMPLES);
cpl_vector_fill_kernel_profile(profile, CPL_KERNEL_DEFAULT,
CPL_KERNEL_DEF_WIDTH);
xradius = CPL_KERNEL_DEF_WIDTH;
</pre><p>In case a correction for flux conservation were required, please create a correction map using the function <code><a class="el" href="group__cpl__image.html#ga3a2ac9628c7dd3d8bc8355980474af72" title="Compute area change ratio for a transformation map. ">cpl_image_fill_jacobian()</a></code>.</p>
<p>Possible <a class="el" href="group__cpl__error.html#ga49a0c316d52d2afbfd9fd94b95344900" title="Available error codes. ">_cpl_error_code_</a> set in this function:</p><ul>
<li>CPL_ERROR_NULL_INPUT if (one of) the input pointer(s) is NULL</li>
<li>CPL_ERROR_ILLEGAL_INPUT if the input images sizes are incompatible or if the delta images are not of type CPL_TYPE_DOUBLE</li>
<li>CPL_ERROR_INVALID_TYPE if the passed image type is not supported </li>
</ul>
<p>References <a class="el" href="group__cpl__error.html#gaf18e95fbc6fc2cfde2a2cc8a0920b12d">cpl_ensure_code</a>, <a class="el" href="group__cpl__error.html#gga49a0c316d52d2afbfd9fd94b95344900ae6ab32df318c1af9afcddcb8249cad51">CPL_ERROR_ILLEGAL_INPUT</a>, <a class="el" href="group__cpl__error.html#gga49a0c316d52d2afbfd9fd94b95344900a7907a24014a3a45aebe5ee1842f0c6f3">CPL_ERROR_INVALID_TYPE</a>, <a class="el" href="group__cpl__error.html#gga49a0c316d52d2afbfd9fd94b95344900a0239c1c63e9d21e98e45221a3ad60406">CPL_ERROR_NONE</a>, <a class="el" href="group__cpl__error.html#gga49a0c316d52d2afbfd9fd94b95344900a7b054cf7927d1bd0a9b3693a6715be84">CPL_ERROR_NULL_INPUT</a>, <a class="el" href="group__cpl__image.html#ga2bf936dc6e939e2be9b8bd0d959c52e8">cpl_image_get_data_double_const()</a>, <a class="el" href="group__cpl__image.html#gab5a6bc059aa1d38c37ab5852b5170e45">cpl_image_get_size_x()</a>, <a class="el" href="group__cpl__image.html#gaf3495f9be1d6892cfed9c5232ccee350">cpl_image_get_size_y()</a>, <a class="el" href="group__cpl__image.html#ga17f97e60794f88e7f06b85cccbecc132">cpl_image_get_type()</a>, <a class="el" href="group__cpl__image.html#ga2596acf228f922542f4a1ff4f17d7e71">cpl_image_reject_from_mask()</a>, <a class="el" href="group__cpl__mask.html#gaa312160718b8fdc24de0cd755cf35224">cpl_mask_delete()</a>, <a class="el" href="group__cpl__mask.html#ga462a148e501731a123e573e6f818f8c2">cpl_mask_get_data()</a>, <a class="el" href="group__cpl__mask.html#gab67918578893ea4a0e005cb4397f8754">cpl_mask_new()</a>, <a class="el" href="group__cpl__type.html#gga3f03371e201544e9115b40065e47f086a4923f03f3a673edd344b0d81835ca69e">CPL_TYPE_DOUBLE</a>, <a class="el" href="group__cpl__vector.html#ga991ded30622122c78bb34191f7c7a7c6">cpl_vector_get_data_const()</a>, and <a class="el" href="group__cpl__vector.html#gac72d7e38ce2f5ac2e0863e2a11e9af1d">cpl_vector_get_size()</a>.</p>
</div>
</div>
<a class="anchor" id="ga34b80ed421f88c5bdad3f0127d251975"></a>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname"><a class="el" href="group__cpl__error.html#ga44b4287e8a7a22122b94c220a1dd9459">cpl_error_code</a> cpl_image_warp_polynomial </td>
<td>(</td>
<td class="paramtype">cpl_image * </td>
<td class="paramname"><em>out</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">const cpl_image * </td>
<td class="paramname"><em>in</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">const cpl_polynomial * </td>
<td class="paramname"><em>poly_x</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">const cpl_polynomial * </td>
<td class="paramname"><em>poly_y</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">const cpl_vector * </td>
<td class="paramname"><em>xprofile</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">double </td>
<td class="paramname"><em>xradius</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">const cpl_vector * </td>
<td class="paramname"><em>yprofile</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">double </td>
<td class="paramname"><em>yradius</em> </td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td>
</tr>
</table>
</div><div class="memdoc">
<p>Warp an image according to a 2D polynomial transformation. </p>
<dl class="params"><dt>Parameters</dt><dd>
<table class="params">
<tr><td class="paramname">out</td><td>Pre-allocated image to hold the result </td></tr>
<tr><td class="paramname">in</td><td>Image to warp. </td></tr>
<tr><td class="paramname">poly_x</td><td>Defines source x-pos corresponding to destination (u,v). </td></tr>
<tr><td class="paramname">poly_y</td><td>Defines source y-pos corresponding to destination (u,v). </td></tr>
<tr><td class="paramname">xprofile</td><td>Interpolation weight as a function of the distance in X </td></tr>
<tr><td class="paramname">xradius</td><td>Positive inclusion radius in the X-dimension </td></tr>
<tr><td class="paramname">yprofile</td><td>Interpolation weight as a function of the distance in Y </td></tr>
<tr><td class="paramname">yradius</td><td>Positive inclusion radius in the Y-dimension </td></tr>
</table>
</dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>CPL_ERROR_NONE or the relevant <a class="el" href="group__cpl__error.html#ga49a0c316d52d2afbfd9fd94b95344900" title="Available error codes. ">_cpl_error_code_</a> on error </dd></dl>
<dl class="section see"><dt>See also</dt><dd><a class="el" href="group__cpl__image.html#ga7b4a871df75c1e8198ebe9359efd181b" title="Interpolate a pixel. ">cpl_image_get_interpolated()</a></dd></dl>
<p>'out' and 'in' may have different dimensions and types.</p>
<p>The pair of 2D polynomials are used internally like this</p>
<pre class="fragment">x = cpl_polynomial_eval(poly_x, (u, v));
y = cpl_polynomial_eval(poly_y, (u, v));
</pre><p>where (u,v) are (integer) pixel positions in the destination image and (x,y) are the corresponding pixel positions (typically non-integer) in the source image.</p>
<p>The identity transform (poly_x(u,v) = u, poly_y(u,v) = v) would thus overwrite the 'out' image with the 'in' image, starting from the lower left if the two images are of different sizes.</p>
<p>Beware that extreme transformations may lead to blank images.</p>
<p>The input image type may be CPL_TYPE_INT, CPL_TYPE_FLOAT or CPL_TYPE_DOUBLE.</p>
<p>In case a correction for flux conservation were required, please create a correction map using the function <code><a class="el" href="group__cpl__image.html#ga9da9342bdd22b4db42abd6cdf32dd5c3" title="Compute area change ratio for a 2D polynomial transformation. ">cpl_image_fill_jacobian_polynomial()</a></code>.</p>
<p>Possible <a class="el" href="group__cpl__error.html#ga49a0c316d52d2afbfd9fd94b95344900" title="Available error codes. ">_cpl_error_code_</a> set in this function:</p><ul>
<li>CPL_ERROR_NULL_INPUT if (one of) the input pointer(s) is NULL</li>
<li>CPL_ERROR_ILLEGAL_INPUT if the polynomial dimensions are not 2</li>
<li>CPL_ERROR_INVALID_TYPE if the passed image type is not supported </li>
</ul>
<p>References <a class="el" href="group__cpl__error.html#gafb123879d8683c6d63681f433dc19bd0">cpl_ensure</a>, <a class="el" href="group__cpl__error.html#gaf18e95fbc6fc2cfde2a2cc8a0920b12d">cpl_ensure_code</a>, <a class="el" href="group__cpl__error.html#ga724de575c31ddf40f42786306f9dbdcb">cpl_error_get_code()</a>, <a class="el" href="group__cpl__error.html#gga49a0c316d52d2afbfd9fd94b95344900ae6ab32df318c1af9afcddcb8249cad51">CPL_ERROR_ILLEGAL_INPUT</a>, <a class="el" href="group__cpl__error.html#gga49a0c316d52d2afbfd9fd94b95344900a7907a24014a3a45aebe5ee1842f0c6f3">CPL_ERROR_INVALID_TYPE</a>, <a class="el" href="group__cpl__error.html#gga49a0c316d52d2afbfd9fd94b95344900a0239c1c63e9d21e98e45221a3ad60406">CPL_ERROR_NONE</a>, <a class="el" href="group__cpl__error.html#gga49a0c316d52d2afbfd9fd94b95344900a7b054cf7927d1bd0a9b3693a6715be84">CPL_ERROR_NULL_INPUT</a>, <a class="el" href="group__cpl__image.html#ga2596acf228f922542f4a1ff4f17d7e71">cpl_image_reject_from_mask()</a>, <a class="el" href="group__cpl__mask.html#gaa312160718b8fdc24de0cd755cf35224">cpl_mask_delete()</a>, <a class="el" href="group__cpl__mask.html#ga462a148e501731a123e573e6f818f8c2">cpl_mask_get_data()</a>, <a class="el" href="group__cpl__mask.html#gab67918578893ea4a0e005cb4397f8754">cpl_mask_new()</a>, <a class="el" href="group__cpl__polynomial.html#ga4436f9900625ba6f19f189f5b0ee99d2">cpl_polynomial_get_dimension()</a>, <a class="el" href="group__cpl__vector.html#gaf563c19d309c5b60d148a84cb156c2cf">cpl_vector_delete()</a>, <a class="el" href="group__cpl__vector.html#gaca37a188555aff6e2379199e7fae49be">cpl_vector_get_data()</a>, <a class="el" href="group__cpl__vector.html#ga991ded30622122c78bb34191f7c7a7c6">cpl_vector_get_data_const()</a>, <a class="el" href="group__cpl__vector.html#gac72d7e38ce2f5ac2e0863e2a11e9af1d">cpl_vector_get_size()</a>, and <a class="el" href="group__cpl__vector.html#ga0a0d8b61b19cd1d3668525a3f2d55e72">cpl_vector_new()</a>.</p>
</div>
</div>
<a class="anchor" id="ga1d73459cb0b071aac6892e2152aa5be7"></a>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">cpl_image* cpl_image_wrap_double </td>
<td>(</td>
<td class="paramtype"><a class="el" href="group__cpl__type.html#gacc431432a4fedf19ec6f7668dda3fbf0">cpl_size</a> </td>
<td class="paramname"><em>nx</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype"><a class="el" href="group__cpl__type.html#gacc431432a4fedf19ec6f7668dda3fbf0">cpl_size</a> </td>
<td class="paramname"><em>ny</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">double * </td>
<td class="paramname"><em>pixels</em> </td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td>
</tr>
</table>
</div><div class="memdoc">
<p>Create a double image using an existing pixel buffer. </p>
<dl class="params"><dt>Parameters</dt><dd>
<table class="params">
<tr><td class="paramname">nx</td><td>Size in x (the number of columns) </td></tr>
<tr><td class="paramname">ny</td><td>Size in y (the number of rows) </td></tr>
<tr><td class="paramname">pixels</td><td>double * pixel data </td></tr>
</table>
</dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>1 newly allocated cpl_image or NULL in case of an error </dd></dl>
<dl class="section see"><dt>See also</dt><dd><a class="el" href="group__cpl__image.html#gab95562a5dbc2372f52ce644c50bfcd26" title="Allocate an image structure and pixel buffer for a image. ">cpl_image_new</a></dd></dl>
<p>The pixel array is set to point to that of the argument. The pixel array must contain nx*ny doubles.</p>
<p>The allocated image must be deallocated with <a class="el" href="group__cpl__image.html#ga0e7668aa99a78f4f5314cfc00a89a04f" title="Free memory associated to an cpl_image object, but the pixel buffer. ">cpl_image_unwrap()</a>.</p>
<p>Possible <a class="el" href="group__cpl__error.html#ga49a0c316d52d2afbfd9fd94b95344900" title="Available error codes. ">_cpl_error_code_</a> set in this function:</p><ul>
<li>CPL_ERROR_NULL_INPUT if an input pointer is NULL</li>
<li>CPL_ERROR_ILLEGAL_INPUT if nx or ny is non-positive or zero. </li>
</ul>
<p>References <a class="el" href="group__cpl__error.html#gafb123879d8683c6d63681f433dc19bd0">cpl_ensure</a>, <a class="el" href="group__cpl__error.html#gga49a0c316d52d2afbfd9fd94b95344900a7b054cf7927d1bd0a9b3693a6715be84">CPL_ERROR_NULL_INPUT</a>, and <a class="el" href="group__cpl__type.html#gga3f03371e201544e9115b40065e47f086a4923f03f3a673edd344b0d81835ca69e">CPL_TYPE_DOUBLE</a>.</p>
<p>Referenced by <a class="el" href="group__cpl__image.html#gafad621e6d1960251ec23984039e838c6">cpl_image_divide_create()</a>, <a class="el" href="group__cpl__vector.html#gaac7e1c59050e53a96573f904db76ec43">cpl_vector_cycle()</a>, and <a class="el" href="group__cpl__vector.html#gae804fc37f617a11d5c5e73f901c55f36">cpl_vector_filter_median_create()</a>.</p>
</div>
</div>
<a class="anchor" id="ga54e215dd1d59d52dd131c855073bdbd1"></a>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">cpl_image* cpl_image_wrap_double_complex </td>
<td>(</td>
<td class="paramtype"><a class="el" href="group__cpl__type.html#gacc431432a4fedf19ec6f7668dda3fbf0">cpl_size</a> </td>
<td class="paramname"><em>nx</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype"><a class="el" href="group__cpl__type.html#gacc431432a4fedf19ec6f7668dda3fbf0">cpl_size</a> </td>
<td class="paramname"><em>ny</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">double complex * </td>
<td class="paramname"><em>pixels</em> </td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td>
</tr>
</table>
</div><div class="memdoc">
<p>Create a double complex image using an existing pixel buffer. </p>
<dl class="params"><dt>Parameters</dt><dd>
<table class="params">
<tr><td class="paramname">nx</td><td>Size in x (the number of columns) </td></tr>
<tr><td class="paramname">ny</td><td>Size in y (the number of rows) </td></tr>
<tr><td class="paramname">pixels</td><td>double complex * pixel data. </td></tr>
</table>
</dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>1 newly allocated cpl_image or NULL on error </dd></dl>
<dl class="section see"><dt>See also</dt><dd><a class="el" href="group__cpl__image.html#ga1d73459cb0b071aac6892e2152aa5be7" title="Create a double image using an existing pixel buffer. ">cpl_image_wrap_double()</a> </dd></dl>
<dl class="section note"><dt>Note</dt><dd>This function is available iff the application includes complex.h </dd></dl>
<p>References <a class="el" href="group__cpl__error.html#gafb123879d8683c6d63681f433dc19bd0">cpl_ensure</a>, <a class="el" href="group__cpl__error.html#gga49a0c316d52d2afbfd9fd94b95344900a7b054cf7927d1bd0a9b3693a6715be84">CPL_ERROR_NULL_INPUT</a>, and <a class="el" href="group__cpl__type.html#gga3f03371e201544e9115b40065e47f086afc7205e8b040bdfdee6011685cfe4345">CPL_TYPE_DOUBLE_COMPLEX</a>.</p>
<p>Referenced by <a class="el" href="group__cpl__image.html#gafad621e6d1960251ec23984039e838c6">cpl_image_divide_create()</a>.</p>
</div>
</div>
<a class="anchor" id="ga63e10a27014ea9ea425889a12e49ebf5"></a>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">cpl_image* cpl_image_wrap_float </td>
<td>(</td>
<td class="paramtype"><a class="el" href="group__cpl__type.html#gacc431432a4fedf19ec6f7668dda3fbf0">cpl_size</a> </td>
<td class="paramname"><em>nx</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype"><a class="el" href="group__cpl__type.html#gacc431432a4fedf19ec6f7668dda3fbf0">cpl_size</a> </td>
<td class="paramname"><em>ny</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">float * </td>
<td class="paramname"><em>pixels</em> </td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td>
</tr>
</table>
</div><div class="memdoc">
<p>Create a float image using an existing pixel buffer. </p>
<dl class="params"><dt>Parameters</dt><dd>
<table class="params">
<tr><td class="paramname">nx</td><td>Size in x (the number of columns) </td></tr>
<tr><td class="paramname">ny</td><td>Size in y (the number of rows) </td></tr>
<tr><td class="paramname">pixels</td><td>float * pixel data. </td></tr>
</table>
</dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>1 newly allocated cpl_image or NULL on error </dd></dl>
<dl class="section see"><dt>See also</dt><dd><a class="el" href="group__cpl__image.html#ga1d73459cb0b071aac6892e2152aa5be7" title="Create a double image using an existing pixel buffer. ">cpl_image_wrap_double()</a> </dd></dl>
<p>References <a class="el" href="group__cpl__error.html#gafb123879d8683c6d63681f433dc19bd0">cpl_ensure</a>, <a class="el" href="group__cpl__error.html#gga49a0c316d52d2afbfd9fd94b95344900a7b054cf7927d1bd0a9b3693a6715be84">CPL_ERROR_NULL_INPUT</a>, and <a class="el" href="group__cpl__type.html#gga3f03371e201544e9115b40065e47f086aa44c37e26b9040a96e3a49b405946942">CPL_TYPE_FLOAT</a>.</p>
<p>Referenced by <a class="el" href="group__cpl__image.html#gafad621e6d1960251ec23984039e838c6">cpl_image_divide_create()</a>.</p>
</div>
</div>
<a class="anchor" id="ga6fa6e6bded41fb636fd868a40e3fd8be"></a>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">cpl_image* cpl_image_wrap_float_complex </td>
<td>(</td>
<td class="paramtype"><a class="el" href="group__cpl__type.html#gacc431432a4fedf19ec6f7668dda3fbf0">cpl_size</a> </td>
<td class="paramname"><em>nx</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype"><a class="el" href="group__cpl__type.html#gacc431432a4fedf19ec6f7668dda3fbf0">cpl_size</a> </td>
<td class="paramname"><em>ny</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">float complex * </td>
<td class="paramname"><em>pixels</em> </td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td>
</tr>
</table>
</div><div class="memdoc">
<p>Create a float complex image using an existing pixel buffer. </p>
<dl class="params"><dt>Parameters</dt><dd>
<table class="params">
<tr><td class="paramname">nx</td><td>Size in x (the number of columns) </td></tr>
<tr><td class="paramname">ny</td><td>Size in y (the number of rows) </td></tr>
<tr><td class="paramname">pixels</td><td>float complex * pixel data. </td></tr>
</table>
</dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>1 newly allocated cpl_image or NULL on error </dd></dl>
<dl class="section see"><dt>See also</dt><dd><a class="el" href="group__cpl__image.html#ga54e215dd1d59d52dd131c855073bdbd1" title="Create a double complex image using an existing pixel buffer. ">cpl_image_wrap_double_complex()</a> </dd></dl>
<p>References <a class="el" href="group__cpl__error.html#gafb123879d8683c6d63681f433dc19bd0">cpl_ensure</a>, <a class="el" href="group__cpl__error.html#gga49a0c316d52d2afbfd9fd94b95344900a7b054cf7927d1bd0a9b3693a6715be84">CPL_ERROR_NULL_INPUT</a>, and <a class="el" href="group__cpl__type.html#gga3f03371e201544e9115b40065e47f086ab2ab0f96a382011a38ee9446626fe1e0">CPL_TYPE_FLOAT_COMPLEX</a>.</p>
<p>Referenced by <a class="el" href="group__cpl__image.html#gafad621e6d1960251ec23984039e838c6">cpl_image_divide_create()</a>.</p>
</div>
</div>
<a class="anchor" id="ga9ccaf8ab0d6e20c7aba7b3da1bade322"></a>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">cpl_image* cpl_image_wrap_int </td>
<td>(</td>
<td class="paramtype"><a class="el" href="group__cpl__type.html#gacc431432a4fedf19ec6f7668dda3fbf0">cpl_size</a> </td>
<td class="paramname"><em>nx</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype"><a class="el" href="group__cpl__type.html#gacc431432a4fedf19ec6f7668dda3fbf0">cpl_size</a> </td>
<td class="paramname"><em>ny</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">int * </td>
<td class="paramname"><em>pixels</em> </td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td>
</tr>
</table>
</div><div class="memdoc">
<p>Create an integer image using an existing pixel buffer. </p>
<dl class="params"><dt>Parameters</dt><dd>
<table class="params">
<tr><td class="paramname">nx</td><td>Size in x (the number of columns) </td></tr>
<tr><td class="paramname">ny</td><td>Size in y (the number of rows) </td></tr>
<tr><td class="paramname">pixels</td><td>int * pixel data. </td></tr>
</table>
</dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>1 newly allocated cpl_image or NULL on error </dd></dl>
<dl class="section see"><dt>See also</dt><dd><a class="el" href="group__cpl__image.html#ga1d73459cb0b071aac6892e2152aa5be7" title="Create a double image using an existing pixel buffer. ">cpl_image_wrap_double()</a> </dd></dl>
<p>References <a class="el" href="group__cpl__error.html#gafb123879d8683c6d63681f433dc19bd0">cpl_ensure</a>, <a class="el" href="group__cpl__error.html#gga49a0c316d52d2afbfd9fd94b95344900a7b054cf7927d1bd0a9b3693a6715be84">CPL_ERROR_NULL_INPUT</a>, and <a class="el" href="group__cpl__type.html#gga3f03371e201544e9115b40065e47f086ae333db5ccea0813ccd892525b4ba1345">CPL_TYPE_INT</a>.</p>
<p>Referenced by <a class="el" href="group__cpl__geom__img.html#ga8df5c11aeb84394817af6a0680c2859c">cpl_geom_img_offset_saa()</a>, <a class="el" href="group__cpl__image.html#gafad621e6d1960251ec23984039e838c6">cpl_image_divide_create()</a>, and <a class="el" href="group__cpl__image.html#ga258483437ae0eb156025b379ef8fe810">cpl_image_new_from_mask()</a>.</p>
</div>
</div>
<a class="anchor" id="ga1a0b22a6882d30ffe5de44afe04a016e"></a>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname"><a class="el" href="group__cpl__error.html#ga44b4287e8a7a22122b94c220a1dd9459">cpl_error_code</a> cpl_image_xor </td>
<td>(</td>
<td class="paramtype">cpl_image * </td>
<td class="paramname"><em>self</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">const cpl_image * </td>
<td class="paramname"><em>first</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">const cpl_image * </td>
<td class="paramname"><em>second</em> </td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td>
</tr>
</table>
</div><div class="memdoc">
<p>The bit-wise xor of two images with integer pixels. </p>
<dl class="params"><dt>Parameters</dt><dd>
<table class="params">
<tr><td class="paramname">self</td><td>Pre-allocated image to hold the result </td></tr>
<tr><td class="paramname">first</td><td>First operand, or NULL for an in-place operation </td></tr>
<tr><td class="paramname">second</td><td>Second operand </td></tr>
</table>
</dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>CPL_ERROR_NONE or the relevant the <a class="el" href="group__cpl__error.html#ga49a0c316d52d2afbfd9fd94b95344900" title="Available error codes. ">_cpl_error_code_</a> on error </dd></dl>
<dl class="section note"><dt>Note</dt><dd>CPL_TYPE_INT is required </dd></dl>
<dl class="section see"><dt>See also</dt><dd><a class="el" href="group__cpl__mask.html#gaa8fcc4a4de703661d38198e74002a777" title="Performs a logical XOR of one mask onto another. ">cpl_mask_xor()</a> for the equivalent logical operation</dd></dl>
<p>Possible <a class="el" href="group__cpl__error.html#ga49a0c316d52d2afbfd9fd94b95344900" title="Available error codes. ">_cpl_error_code_</a> set in this function:</p><ul>
<li>CPL_ERROR_NULL_INPUT if an input pointer is NULL</li>
<li>CPL_ERROR_INCOMPATIBLE_INPUT if the images have different sizes</li>
<li>CPL_ERROR_INVALID_TYPE if the passed image type is as required </li>
</ul>
<p>References <a class="el" href="group__cpl__error.html#gaf18e95fbc6fc2cfde2a2cc8a0920b12d">cpl_ensure_code</a>, <a class="el" href="group__cpl__error.html#gga49a0c316d52d2afbfd9fd94b95344900a67b9f44eb1db1ab12f0575dbb878c0fd">CPL_ERROR_INCOMPATIBLE_INPUT</a>, <a class="el" href="group__cpl__error.html#gga49a0c316d52d2afbfd9fd94b95344900a7907a24014a3a45aebe5ee1842f0c6f3">CPL_ERROR_INVALID_TYPE</a>, <a class="el" href="group__cpl__error.html#gga49a0c316d52d2afbfd9fd94b95344900a0239c1c63e9d21e98e45221a3ad60406">CPL_ERROR_NONE</a>, <a class="el" href="group__cpl__error.html#gga49a0c316d52d2afbfd9fd94b95344900a7b054cf7927d1bd0a9b3693a6715be84">CPL_ERROR_NULL_INPUT</a>, <a class="el" href="group__cpl__image.html#ga17f97e60794f88e7f06b85cccbecc132">cpl_image_get_type()</a>, <a class="el" href="group__cpl__image.html#ga787eff33b78af1e8d6d79189cdcf418b">cpl_image_or_mask()</a>, <a class="el" href="group__cpl__type.html#ga994816f2d7624221964f91e0b9556578">cpl_type_get_name()</a>, <a class="el" href="group__cpl__type.html#ga5098a0d41d12e907e5cacce2052a345e">cpl_type_get_sizeof()</a>, and <a class="el" href="group__cpl__type.html#gga3f03371e201544e9115b40065e47f086ae333db5ccea0813ccd892525b4ba1345">CPL_TYPE_INT</a>.</p>
</div>
</div>
<a class="anchor" id="ga1599090c62fe7b0fdcbb7231e95c9a19"></a>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname"><a class="el" href="group__cpl__error.html#ga44b4287e8a7a22122b94c220a1dd9459">cpl_error_code</a> cpl_image_xor_scalar </td>
<td>(</td>
<td class="paramtype">cpl_image * </td>
<td class="paramname"><em>self</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">const cpl_image * </td>
<td class="paramname"><em>first</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype"><a class="el" href="group__cpl__type.html#ga8d50ea1fd78afcce32f5bcc94a3b8f03">cpl_bitmask</a> </td>
<td class="paramname"><em>second</em> </td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td>
</tr>
</table>
</div><div class="memdoc">
<p>The bit-wise xor of a scalar and an image with integer pixels. </p>
<dl class="params"><dt>Parameters</dt><dd>
<table class="params">
<tr><td class="paramname">self</td><td>Pre-allocated image to hold the result </td></tr>
<tr><td class="paramname">first</td><td>First operand, or NULL for an in-place operation </td></tr>
<tr><td class="paramname">second</td><td>Second operand (scalar) </td></tr>
</table>
</dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>CPL_ERROR_NONE or the relevant the <a class="el" href="group__cpl__error.html#ga49a0c316d52d2afbfd9fd94b95344900" title="Available error codes. ">_cpl_error_code_</a> on error </dd></dl>
<dl class="section note"><dt>Note</dt><dd>CPL_TYPE_INT is required</dd></dl>
<p>Possible <a class="el" href="group__cpl__error.html#ga49a0c316d52d2afbfd9fd94b95344900" title="Available error codes. ">_cpl_error_code_</a> set in this function:</p><ul>
<li>CPL_ERROR_NULL_INPUT if an input pointer is NULL</li>
<li>CPL_ERROR_INCOMPATIBLE_INPUT if the images have different sizes</li>
<li>CPL_ERROR_INVALID_TYPE if the passed image type is as required </li>
</ul>
<p>References <a class="el" href="group__cpl__error.html#gaf18e95fbc6fc2cfde2a2cc8a0920b12d">cpl_ensure_code</a>, <a class="el" href="group__cpl__error.html#gga49a0c316d52d2afbfd9fd94b95344900a67b9f44eb1db1ab12f0575dbb878c0fd">CPL_ERROR_INCOMPATIBLE_INPUT</a>, <a class="el" href="group__cpl__error.html#gga49a0c316d52d2afbfd9fd94b95344900a7907a24014a3a45aebe5ee1842f0c6f3">CPL_ERROR_INVALID_TYPE</a>, <a class="el" href="group__cpl__error.html#gga49a0c316d52d2afbfd9fd94b95344900a0239c1c63e9d21e98e45221a3ad60406">CPL_ERROR_NONE</a>, <a class="el" href="group__cpl__error.html#gga49a0c316d52d2afbfd9fd94b95344900a7b054cf7927d1bd0a9b3693a6715be84">CPL_ERROR_NULL_INPUT</a>, <a class="el" href="group__cpl__image.html#ga17f97e60794f88e7f06b85cccbecc132">cpl_image_get_type()</a>, <a class="el" href="group__cpl__image.html#ga6c69e93b4bdfa9d09730d3707a4786b9">cpl_image_or_mask_unary()</a>, <a class="el" href="group__cpl__type.html#ga994816f2d7624221964f91e0b9556578">cpl_type_get_name()</a>, <a class="el" href="group__cpl__type.html#ga5098a0d41d12e907e5cacce2052a345e">cpl_type_get_sizeof()</a>, and <a class="el" href="group__cpl__type.html#gga3f03371e201544e9115b40065e47f086ae333db5ccea0813ccd892525b4ba1345">CPL_TYPE_INT</a>.</p>
</div>
</div>
<a class="anchor" id="gaf56b8dc8f9e7aa1379f1ec57101b4da5"></a>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">cpl_vector* cpl_vector_new_from_image_column </td>
<td>(</td>
<td class="paramtype">const cpl_image * </td>
<td class="paramname"><em>image_in</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype"><a class="el" href="group__cpl__type.html#gacc431432a4fedf19ec6f7668dda3fbf0">cpl_size</a> </td>
<td class="paramname"><em>pos</em> </td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td>
</tr>
</table>
</div><div class="memdoc">
<p>Extract a column from an image. </p>
<dl class="params"><dt>Parameters</dt><dd>
<table class="params">
<tr><td class="paramname">image_in</td><td>Input image </td></tr>
<tr><td class="paramname">pos</td><td>Position of the column (1 for the left one) </td></tr>
</table>
</dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>1 newly allocated cpl_vector or NULL on error</dd></dl>
<p>Images can be of type CPL_TYPE_INT, CPL_TYPE_FLOAT or CPL_TYPE_DOUBLE. The returned vector must be deallocated using <a class="el" href="group__cpl__vector.html#gaf563c19d309c5b60d148a84cb156c2cf" title="Delete a cpl_vector. ">cpl_vector_delete()</a>.</p>
<p>The bad pixels map is not taken into account in this function.</p>
<p>Possible <a class="el" href="group__cpl__error.html#ga49a0c316d52d2afbfd9fd94b95344900" title="Available error codes. ">_cpl_error_code_</a> set in this function:</p><ul>
<li>CPL_ERROR_NULL_INPUT if an input pointer is NULL</li>
<li>CPL_ERROR_ILLEGAL_INPUT if pos is not valid</li>
<li>CPL_ERROR_INVALID_TYPE if the passed image type is not supported </li>
</ul>
<p>References <a class="el" href="group__cpl__error.html#gafb123879d8683c6d63681f433dc19bd0">cpl_ensure</a>, <a class="el" href="group__cpl__error.html#gga49a0c316d52d2afbfd9fd94b95344900ae6ab32df318c1af9afcddcb8249cad51">CPL_ERROR_ILLEGAL_INPUT</a>, <a class="el" href="group__cpl__error.html#gga49a0c316d52d2afbfd9fd94b95344900a7907a24014a3a45aebe5ee1842f0c6f3">CPL_ERROR_INVALID_TYPE</a>, <a class="el" href="group__cpl__error.html#gga49a0c316d52d2afbfd9fd94b95344900a7b054cf7927d1bd0a9b3693a6715be84">CPL_ERROR_NULL_INPUT</a>, <a class="el" href="group__cpl__vector.html#gaf563c19d309c5b60d148a84cb156c2cf">cpl_vector_delete()</a>, <a class="el" href="group__cpl__vector.html#gaca37a188555aff6e2379199e7fae49be">cpl_vector_get_data()</a>, and <a class="el" href="group__cpl__vector.html#ga0a0d8b61b19cd1d3668525a3f2d55e72">cpl_vector_new()</a>.</p>
<p>Referenced by <a class="el" href="group__cpl__image.html#gad26891c8556c11a731cdedaa5fbbb009">cpl_image_get_fwhm()</a>.</p>
</div>
</div>
<a class="anchor" id="ga793a1282c1792be89a7328cb0973e4e0"></a>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">cpl_vector* cpl_vector_new_from_image_row </td>
<td>(</td>
<td class="paramtype">const cpl_image * </td>
<td class="paramname"><em>image_in</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype"><a class="el" href="group__cpl__type.html#gacc431432a4fedf19ec6f7668dda3fbf0">cpl_size</a> </td>
<td class="paramname"><em>pos</em> </td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td>
</tr>
</table>
</div><div class="memdoc">
<p>Extract a row from an image. </p>
<dl class="params"><dt>Parameters</dt><dd>
<table class="params">
<tr><td class="paramname">image_in</td><td>Input image </td></tr>
<tr><td class="paramname">pos</td><td>Position of the row (1 for the bottom one) </td></tr>
</table>
</dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>1 newly allocated cpl_vector or NULL on error</dd></dl>
<p>Images can be of type CPL_TYPE_INT, CPL_TYPE_FLOAT or CPL_TYPE_DOUBLE. The returned vector must be deallocated using <a class="el" href="group__cpl__vector.html#gaf563c19d309c5b60d148a84cb156c2cf" title="Delete a cpl_vector. ">cpl_vector_delete()</a>.</p>
<p>The bad pixels map is not taken into account in this function.</p>
<p>Possible <a class="el" href="group__cpl__error.html#ga49a0c316d52d2afbfd9fd94b95344900" title="Available error codes. ">_cpl_error_code_</a> set in this function:</p><ul>
<li>CPL_ERROR_NULL_INPUT if an input pointer is NULL</li>
<li>CPL_ERROR_ILLEGAL_INPUT if pos is not valid</li>
<li>CPL_ERROR_INVALID_TYPE if the passed image type is not supported </li>
</ul>
<p>References <a class="el" href="group__cpl__error.html#gafb123879d8683c6d63681f433dc19bd0">cpl_ensure</a>, <a class="el" href="group__cpl__error.html#gga49a0c316d52d2afbfd9fd94b95344900ae6ab32df318c1af9afcddcb8249cad51">CPL_ERROR_ILLEGAL_INPUT</a>, <a class="el" href="group__cpl__error.html#gga49a0c316d52d2afbfd9fd94b95344900a7907a24014a3a45aebe5ee1842f0c6f3">CPL_ERROR_INVALID_TYPE</a>, <a class="el" href="group__cpl__error.html#gga49a0c316d52d2afbfd9fd94b95344900a7b054cf7927d1bd0a9b3693a6715be84">CPL_ERROR_NULL_INPUT</a>, <a class="el" href="group__cpl__vector.html#gaf563c19d309c5b60d148a84cb156c2cf">cpl_vector_delete()</a>, <a class="el" href="group__cpl__vector.html#gaca37a188555aff6e2379199e7fae49be">cpl_vector_get_data()</a>, and <a class="el" href="group__cpl__vector.html#ga0a0d8b61b19cd1d3668525a3f2d55e72">cpl_vector_new()</a>.</p>
<p>Referenced by <a class="el" href="group__cpl__image.html#gad26891c8556c11a731cdedaa5fbbb009">cpl_image_get_fwhm()</a>.</p>
</div>
</div>
</div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated by  <a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.8.10
</small></address>
</body>
</html>
|