@basemaps/lambda-tiler 6.28.1 → 6.31.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (570) hide show
  1. package/CHANGELOG.md +61 -0
  2. package/build/__tests__/config.data.d.ts +6 -0
  3. package/build/__tests__/config.data.d.ts.map +1 -0
  4. package/build/__tests__/config.data.js +81 -0
  5. package/build/__tests__/config.data.js.map +1 -0
  6. package/build/__tests__/index.test.js +4 -3
  7. package/build/__tests__/index.test.js.map +1 -0
  8. package/build/__tests__/route.test.js +1 -0
  9. package/build/__tests__/route.test.js.map +1 -0
  10. package/build/__tests__/tiff.cache.test.js +1 -0
  11. package/build/__tests__/tiff.cache.test.js.map +1 -0
  12. package/build/__tests__/tile.cache.key.test.js +1 -0
  13. package/build/__tests__/tile.cache.key.test.js.map +1 -0
  14. package/build/__tests__/tile.set.cache.test.js +2 -53
  15. package/build/__tests__/tile.set.cache.test.js.map +1 -0
  16. package/build/__tests__/tile.set.test.js +1 -0
  17. package/build/__tests__/tile.set.test.js.map +1 -0
  18. package/build/__tests__/tile.style.json.test.js +1 -0
  19. package/build/__tests__/tile.style.json.test.js.map +1 -0
  20. package/build/__tests__/wmts.capability.test.d.ts +1 -1
  21. package/build/__tests__/wmts.capability.test.d.ts.map +1 -1
  22. package/build/__tests__/wmts.capability.test.js +286 -125
  23. package/build/__tests__/wmts.capability.test.js.map +1 -0
  24. package/build/__tests__/xyz.test.js +6 -37
  25. package/build/__tests__/xyz.test.js.map +1 -0
  26. package/build/__tests__/xyz.util.d.ts +0 -2
  27. package/build/__tests__/xyz.util.d.ts.map +1 -1
  28. package/build/__tests__/xyz.util.js +7 -30
  29. package/build/__tests__/xyz.util.js.map +1 -0
  30. package/build/api.key.js +1 -0
  31. package/build/api.key.js.map +1 -0
  32. package/build/cli/dump.js +1 -0
  33. package/build/cli/dump.js.map +1 -0
  34. package/build/cli/tile.set.local.js +1 -0
  35. package/build/cli/tile.set.local.js.map +1 -0
  36. package/build/cotar.cache.d.ts +25 -0
  37. package/build/cotar.cache.d.ts.map +1 -0
  38. package/build/cotar.cache.js +50 -0
  39. package/build/cotar.cache.js.map +1 -0
  40. package/build/index.d.ts.map +1 -1
  41. package/build/index.js +34 -33
  42. package/build/index.js.map +1 -0
  43. package/build/router.js +1 -0
  44. package/build/router.js.map +1 -0
  45. package/build/routes/__tests__/attribution.test.js +9 -8
  46. package/build/routes/__tests__/attribution.test.js.map +1 -0
  47. package/build/routes/__tests__/fonts.test.d.ts +2 -0
  48. package/build/routes/__tests__/fonts.test.d.ts.map +1 -0
  49. package/build/routes/__tests__/fonts.test.js +68 -0
  50. package/build/routes/__tests__/fonts.test.js.map +1 -0
  51. package/build/routes/__tests__/health.test.js +1 -0
  52. package/build/routes/__tests__/health.test.js.map +1 -0
  53. package/build/routes/__tests__/imagery.test.js +1 -0
  54. package/build/routes/__tests__/imagery.test.js.map +1 -0
  55. package/build/routes/__tests__/memory.fs.d.ts +18 -0
  56. package/build/routes/__tests__/memory.fs.d.ts.map +1 -0
  57. package/build/routes/__tests__/memory.fs.js +74 -0
  58. package/build/routes/__tests__/memory.fs.js.map +1 -0
  59. package/build/routes/__tests__/sprites.test.d.ts +2 -0
  60. package/build/routes/__tests__/sprites.test.d.ts.map +1 -0
  61. package/build/routes/__tests__/sprites.test.js +56 -0
  62. package/build/routes/__tests__/sprites.test.js.map +1 -0
  63. package/build/routes/__tests__/wmts.test.js +59 -10
  64. package/build/routes/__tests__/wmts.test.js.map +1 -0
  65. package/build/routes/api.d.ts +0 -1
  66. package/build/routes/api.d.ts.map +1 -1
  67. package/build/routes/api.js +1 -3
  68. package/build/routes/api.js.map +1 -0
  69. package/build/routes/attribution.d.ts +2 -2
  70. package/build/routes/attribution.d.ts.map +1 -1
  71. package/build/routes/attribution.js +16 -19
  72. package/build/routes/attribution.js.map +1 -0
  73. package/build/routes/esri/rest.js +1 -0
  74. package/build/routes/esri/rest.js.map +1 -0
  75. package/build/routes/fonts.d.ts +13 -0
  76. package/build/routes/fonts.d.ts.map +1 -0
  77. package/build/routes/fonts.js +58 -0
  78. package/build/routes/fonts.js.map +1 -0
  79. package/build/routes/health.js +1 -0
  80. package/build/routes/health.js.map +1 -0
  81. package/build/routes/imagery.d.ts +8 -1
  82. package/build/routes/imagery.d.ts.map +1 -1
  83. package/build/routes/imagery.js +6 -7
  84. package/build/routes/imagery.js.map +1 -0
  85. package/build/routes/response.js +1 -0
  86. package/build/routes/response.js.map +1 -0
  87. package/build/routes/sprites.d.ts +9 -0
  88. package/build/routes/sprites.d.ts.map +1 -0
  89. package/build/routes/sprites.js +36 -0
  90. package/build/routes/sprites.js.map +1 -0
  91. package/build/routes/tile.etag.js +1 -0
  92. package/build/routes/tile.etag.js.map +1 -0
  93. package/build/routes/tile.js +1 -0
  94. package/build/routes/tile.js.map +1 -0
  95. package/build/routes/tile.json.d.ts.map +1 -1
  96. package/build/routes/tile.json.js +2 -2
  97. package/build/routes/tile.json.js.map +1 -0
  98. package/build/routes/tile.style.json.js +1 -0
  99. package/build/routes/tile.style.json.js.map +1 -0
  100. package/build/routes/tile.wmts.d.ts.map +1 -1
  101. package/build/routes/tile.wmts.js +19 -23
  102. package/build/routes/tile.wmts.js.map +1 -0
  103. package/build/routes/tile.xyz.js +1 -0
  104. package/build/routes/tile.xyz.js.map +1 -0
  105. package/build/source.tracer.js +1 -0
  106. package/build/source.tracer.js.map +1 -0
  107. package/build/tiff.cache.js +1 -0
  108. package/build/tiff.cache.js.map +1 -0
  109. package/build/tile.set.cache.d.ts +0 -1
  110. package/build/tile.set.cache.d.ts.map +1 -1
  111. package/build/tile.set.cache.js +1 -29
  112. package/build/tile.set.cache.js.map +1 -0
  113. package/build/tile.set.js +1 -0
  114. package/build/tile.set.js.map +1 -0
  115. package/build/tile.set.raster.d.ts.map +1 -1
  116. package/build/tile.set.raster.js +6 -3
  117. package/build/tile.set.raster.js.map +1 -0
  118. package/build/tile.set.vector.d.ts +0 -7
  119. package/build/tile.set.vector.d.ts.map +1 -1
  120. package/build/tile.set.vector.js +3 -20
  121. package/build/tile.set.vector.js.map +1 -0
  122. package/build/validate.js +1 -0
  123. package/build/validate.js.map +1 -0
  124. package/build/wmts.capability.d.ts +26 -12
  125. package/build/wmts.capability.d.ts.map +1 -1
  126. package/build/wmts.capability.js +156 -55
  127. package/build/wmts.capability.js.map +1 -0
  128. package/dist/index.js +197 -0
  129. package/dist/node_modules/.package-lock.json +488 -0
  130. package/dist/node_modules/base64-js/LICENSE +21 -0
  131. package/dist/node_modules/base64-js/README.md +34 -0
  132. package/dist/node_modules/base64-js/base64js.min.js +1 -0
  133. package/dist/node_modules/base64-js/index.d.ts +3 -0
  134. package/dist/node_modules/base64-js/index.js +150 -0
  135. package/dist/node_modules/base64-js/package.json +47 -0
  136. package/dist/node_modules/bl/.travis.yml +17 -0
  137. package/dist/node_modules/bl/BufferList.js +396 -0
  138. package/dist/node_modules/bl/LICENSE.md +13 -0
  139. package/dist/node_modules/bl/README.md +247 -0
  140. package/dist/node_modules/bl/bl.js +84 -0
  141. package/dist/node_modules/bl/package.json +37 -0
  142. package/dist/node_modules/bl/test/convert.js +21 -0
  143. package/dist/node_modules/bl/test/indexOf.js +492 -0
  144. package/dist/node_modules/bl/test/isBufferList.js +32 -0
  145. package/dist/node_modules/bl/test/test.js +869 -0
  146. package/dist/node_modules/buffer/AUTHORS.md +70 -0
  147. package/dist/node_modules/buffer/LICENSE +21 -0
  148. package/dist/node_modules/buffer/README.md +410 -0
  149. package/dist/node_modules/buffer/index.d.ts +186 -0
  150. package/dist/node_modules/buffer/index.js +1817 -0
  151. package/dist/node_modules/buffer/package.json +96 -0
  152. package/dist/node_modules/chownr/LICENSE +15 -0
  153. package/dist/node_modules/chownr/README.md +3 -0
  154. package/dist/node_modules/chownr/chownr.js +167 -0
  155. package/dist/node_modules/chownr/package.json +29 -0
  156. package/dist/node_modules/color/LICENSE +21 -0
  157. package/dist/node_modules/color/README.md +123 -0
  158. package/dist/node_modules/color/index.js +496 -0
  159. package/dist/node_modules/color/package.json +47 -0
  160. package/dist/node_modules/color-convert/CHANGELOG.md +54 -0
  161. package/dist/node_modules/color-convert/LICENSE +21 -0
  162. package/dist/node_modules/color-convert/README.md +68 -0
  163. package/dist/node_modules/color-convert/conversions.js +839 -0
  164. package/dist/node_modules/color-convert/index.js +81 -0
  165. package/dist/node_modules/color-convert/package.json +48 -0
  166. package/dist/node_modules/color-convert/route.js +97 -0
  167. package/dist/node_modules/color-name/LICENSE +8 -0
  168. package/dist/node_modules/color-name/README.md +11 -0
  169. package/dist/node_modules/color-name/index.js +152 -0
  170. package/dist/node_modules/color-name/package.json +28 -0
  171. package/dist/node_modules/color-string/LICENSE +21 -0
  172. package/dist/node_modules/color-string/README.md +62 -0
  173. package/dist/node_modules/color-string/index.js +242 -0
  174. package/dist/node_modules/color-string/package.json +39 -0
  175. package/dist/node_modules/decompress-response/index.d.ts +22 -0
  176. package/dist/node_modules/decompress-response/index.js +58 -0
  177. package/dist/node_modules/decompress-response/license +9 -0
  178. package/dist/node_modules/decompress-response/package.json +56 -0
  179. package/dist/node_modules/decompress-response/readme.md +48 -0
  180. package/dist/node_modules/deep-extend/CHANGELOG.md +46 -0
  181. package/dist/node_modules/deep-extend/LICENSE +20 -0
  182. package/dist/node_modules/deep-extend/README.md +91 -0
  183. package/dist/node_modules/deep-extend/index.js +1 -0
  184. package/dist/node_modules/deep-extend/lib/deep-extend.js +150 -0
  185. package/dist/node_modules/deep-extend/package.json +62 -0
  186. package/dist/node_modules/detect-libc/LICENSE +201 -0
  187. package/dist/node_modules/detect-libc/README.md +160 -0
  188. package/dist/node_modules/detect-libc/index.d.ts +11 -0
  189. package/dist/node_modules/detect-libc/lib/detect-libc.js +178 -0
  190. package/dist/node_modules/detect-libc/lib/process.js +16 -0
  191. package/dist/node_modules/detect-libc/package.json +36 -0
  192. package/dist/node_modules/end-of-stream/LICENSE +21 -0
  193. package/dist/node_modules/end-of-stream/README.md +54 -0
  194. package/dist/node_modules/end-of-stream/index.js +94 -0
  195. package/dist/node_modules/end-of-stream/package.json +37 -0
  196. package/dist/node_modules/expand-template/.travis.yml +6 -0
  197. package/dist/node_modules/expand-template/LICENSE +21 -0
  198. package/dist/node_modules/expand-template/README.md +43 -0
  199. package/dist/node_modules/expand-template/index.js +26 -0
  200. package/dist/node_modules/expand-template/package.json +29 -0
  201. package/dist/node_modules/expand-template/test.js +67 -0
  202. package/dist/node_modules/fs-constants/LICENSE +21 -0
  203. package/dist/node_modules/fs-constants/README.md +26 -0
  204. package/dist/node_modules/fs-constants/browser.js +1 -0
  205. package/dist/node_modules/fs-constants/index.js +1 -0
  206. package/dist/node_modules/fs-constants/package.json +19 -0
  207. package/dist/node_modules/github-from-package/.travis.yml +4 -0
  208. package/dist/node_modules/github-from-package/LICENSE +18 -0
  209. package/dist/node_modules/github-from-package/example/package.json +8 -0
  210. package/dist/node_modules/github-from-package/example/url.js +3 -0
  211. package/dist/node_modules/github-from-package/index.js +17 -0
  212. package/dist/node_modules/github-from-package/package.json +30 -0
  213. package/dist/node_modules/github-from-package/readme.markdown +53 -0
  214. package/dist/node_modules/github-from-package/test/a.json +8 -0
  215. package/dist/node_modules/github-from-package/test/b.json +5 -0
  216. package/dist/node_modules/github-from-package/test/c.json +5 -0
  217. package/dist/node_modules/github-from-package/test/d.json +7 -0
  218. package/dist/node_modules/github-from-package/test/e.json +5 -0
  219. package/dist/node_modules/github-from-package/test/url.js +19 -0
  220. package/dist/node_modules/ieee754/LICENSE +11 -0
  221. package/dist/node_modules/ieee754/README.md +51 -0
  222. package/dist/node_modules/ieee754/index.d.ts +10 -0
  223. package/dist/node_modules/ieee754/index.js +85 -0
  224. package/dist/node_modules/ieee754/package.json +52 -0
  225. package/dist/node_modules/inherits/LICENSE +16 -0
  226. package/dist/node_modules/inherits/README.md +42 -0
  227. package/dist/node_modules/inherits/inherits.js +9 -0
  228. package/dist/node_modules/inherits/inherits_browser.js +27 -0
  229. package/dist/node_modules/inherits/package.json +29 -0
  230. package/dist/node_modules/ini/LICENSE +15 -0
  231. package/dist/node_modules/ini/README.md +102 -0
  232. package/dist/node_modules/ini/ini.js +206 -0
  233. package/dist/node_modules/ini/package.json +33 -0
  234. package/dist/node_modules/is-arrayish/LICENSE +21 -0
  235. package/dist/node_modules/is-arrayish/README.md +16 -0
  236. package/dist/node_modules/is-arrayish/index.js +9 -0
  237. package/dist/node_modules/is-arrayish/package.json +45 -0
  238. package/dist/node_modules/is-arrayish/yarn-error.log +1443 -0
  239. package/dist/node_modules/lru-cache/LICENSE +15 -0
  240. package/dist/node_modules/lru-cache/README.md +166 -0
  241. package/dist/node_modules/lru-cache/index.js +334 -0
  242. package/dist/node_modules/lru-cache/package.json +34 -0
  243. package/dist/node_modules/mimic-response/index.d.ts +17 -0
  244. package/dist/node_modules/mimic-response/index.js +77 -0
  245. package/dist/node_modules/mimic-response/license +9 -0
  246. package/dist/node_modules/mimic-response/package.json +42 -0
  247. package/dist/node_modules/mimic-response/readme.md +78 -0
  248. package/dist/node_modules/minimist/.travis.yml +8 -0
  249. package/dist/node_modules/minimist/LICENSE +18 -0
  250. package/dist/node_modules/minimist/example/parse.js +2 -0
  251. package/dist/node_modules/minimist/index.js +249 -0
  252. package/dist/node_modules/minimist/package.json +45 -0
  253. package/dist/node_modules/minimist/readme.markdown +98 -0
  254. package/dist/node_modules/minimist/test/all_bool.js +32 -0
  255. package/dist/node_modules/minimist/test/bool.js +178 -0
  256. package/dist/node_modules/minimist/test/dash.js +31 -0
  257. package/dist/node_modules/minimist/test/default_bool.js +35 -0
  258. package/dist/node_modules/minimist/test/dotted.js +22 -0
  259. package/dist/node_modules/minimist/test/kv_short.js +16 -0
  260. package/dist/node_modules/minimist/test/long.js +31 -0
  261. package/dist/node_modules/minimist/test/num.js +36 -0
  262. package/dist/node_modules/minimist/test/parse.js +197 -0
  263. package/dist/node_modules/minimist/test/parse_modified.js +9 -0
  264. package/dist/node_modules/minimist/test/proto.js +60 -0
  265. package/dist/node_modules/minimist/test/short.js +67 -0
  266. package/dist/node_modules/minimist/test/stop_early.js +15 -0
  267. package/dist/node_modules/minimist/test/unknown.js +102 -0
  268. package/dist/node_modules/minimist/test/whitespace.js +8 -0
  269. package/dist/node_modules/mkdirp-classic/LICENSE +21 -0
  270. package/dist/node_modules/mkdirp-classic/README.md +18 -0
  271. package/dist/node_modules/mkdirp-classic/index.js +98 -0
  272. package/dist/node_modules/mkdirp-classic/package.json +18 -0
  273. package/dist/node_modules/napi-build-utils/LICENSE +21 -0
  274. package/dist/node_modules/napi-build-utils/README.md +48 -0
  275. package/dist/node_modules/napi-build-utils/index.js +213 -0
  276. package/dist/node_modules/napi-build-utils/index.md +81 -0
  277. package/dist/node_modules/napi-build-utils/package.json +41 -0
  278. package/dist/node_modules/node-abi/.circleci/config.yml +63 -0
  279. package/dist/node_modules/node-abi/.github/workflows/update-abi.yml +41 -0
  280. package/dist/node_modules/node-abi/.releaserc.json +9 -0
  281. package/dist/node_modules/node-abi/CODE_OF_CONDUCT.md +73 -0
  282. package/dist/node_modules/node-abi/CONTRIBUTING.md +62 -0
  283. package/dist/node_modules/node-abi/LICENSE +21 -0
  284. package/dist/node_modules/node-abi/README.md +50 -0
  285. package/dist/node_modules/node-abi/abi_registry.json +210 -0
  286. package/dist/node_modules/node-abi/index.js +179 -0
  287. package/dist/node_modules/node-abi/package.json +39 -0
  288. package/dist/node_modules/node-abi/scripts/update-abi-registry.js +119 -0
  289. package/dist/node_modules/node-abi/test/index.js +166 -0
  290. package/dist/node_modules/node-addon-api/LICENSE.md +13 -0
  291. package/dist/node_modules/node-addon-api/README.md +293 -0
  292. package/dist/node_modules/node-addon-api/common.gypi +21 -0
  293. package/dist/node_modules/node-addon-api/except.gypi +25 -0
  294. package/dist/node_modules/node-addon-api/index.js +11 -0
  295. package/dist/node_modules/node-addon-api/napi-inl.deprecated.h +192 -0
  296. package/dist/node_modules/node-addon-api/napi-inl.h +6259 -0
  297. package/dist/node_modules/node-addon-api/napi.h +3003 -0
  298. package/dist/node_modules/node-addon-api/node_api.gyp +9 -0
  299. package/dist/node_modules/node-addon-api/noexcept.gypi +26 -0
  300. package/dist/node_modules/node-addon-api/nothing.c +0 -0
  301. package/dist/node_modules/node-addon-api/package-support.json +21 -0
  302. package/dist/node_modules/node-addon-api/package.json +415 -0
  303. package/dist/node_modules/node-addon-api/tools/README.md +73 -0
  304. package/dist/node_modules/node-addon-api/tools/check-napi.js +100 -0
  305. package/dist/node_modules/node-addon-api/tools/clang-format.js +71 -0
  306. package/dist/node_modules/node-addon-api/tools/conversion.js +309 -0
  307. package/dist/node_modules/node-addon-api/tools/eslint-format.js +71 -0
  308. package/dist/node_modules/once/LICENSE +15 -0
  309. package/dist/node_modules/once/README.md +79 -0
  310. package/dist/node_modules/once/once.js +42 -0
  311. package/dist/node_modules/once/package.json +33 -0
  312. package/dist/node_modules/prebuild-install/CHANGELOG.md +116 -0
  313. package/dist/node_modules/prebuild-install/CONTRIBUTING.md +6 -0
  314. package/dist/node_modules/prebuild-install/LICENSE +21 -0
  315. package/dist/node_modules/prebuild-install/README.md +163 -0
  316. package/dist/node_modules/prebuild-install/asset.js +44 -0
  317. package/dist/node_modules/prebuild-install/bin.js +78 -0
  318. package/dist/node_modules/prebuild-install/download.js +142 -0
  319. package/dist/node_modules/prebuild-install/error.js +14 -0
  320. package/dist/node_modules/prebuild-install/help.txt +16 -0
  321. package/dist/node_modules/prebuild-install/index.js +1 -0
  322. package/dist/node_modules/prebuild-install/log.js +33 -0
  323. package/dist/node_modules/prebuild-install/package.json +67 -0
  324. package/dist/node_modules/prebuild-install/proxy.js +35 -0
  325. package/dist/node_modules/prebuild-install/rc.js +64 -0
  326. package/dist/node_modules/prebuild-install/util.js +143 -0
  327. package/dist/node_modules/pump/.travis.yml +5 -0
  328. package/dist/node_modules/pump/LICENSE +21 -0
  329. package/dist/node_modules/pump/README.md +65 -0
  330. package/dist/node_modules/pump/index.js +82 -0
  331. package/dist/node_modules/pump/package.json +24 -0
  332. package/dist/node_modules/pump/test-browser.js +66 -0
  333. package/dist/node_modules/pump/test-node.js +53 -0
  334. package/dist/node_modules/rc/LICENSE.APACHE2 +15 -0
  335. package/dist/node_modules/rc/LICENSE.BSD +26 -0
  336. package/dist/node_modules/rc/LICENSE.MIT +24 -0
  337. package/dist/node_modules/rc/README.md +227 -0
  338. package/dist/node_modules/rc/browser.js +7 -0
  339. package/dist/node_modules/rc/cli.js +4 -0
  340. package/dist/node_modules/rc/index.js +53 -0
  341. package/dist/node_modules/rc/lib/utils.js +104 -0
  342. package/dist/node_modules/rc/package.json +29 -0
  343. package/dist/node_modules/rc/test/ini.js +16 -0
  344. package/dist/node_modules/rc/test/nested-env-vars.js +50 -0
  345. package/dist/node_modules/rc/test/test.js +59 -0
  346. package/dist/node_modules/readable-stream/CONTRIBUTING.md +38 -0
  347. package/dist/node_modules/readable-stream/GOVERNANCE.md +136 -0
  348. package/dist/node_modules/readable-stream/LICENSE +47 -0
  349. package/dist/node_modules/readable-stream/README.md +106 -0
  350. package/dist/node_modules/readable-stream/errors-browser.js +127 -0
  351. package/dist/node_modules/readable-stream/errors.js +116 -0
  352. package/dist/node_modules/readable-stream/experimentalWarning.js +17 -0
  353. package/dist/node_modules/readable-stream/lib/_stream_duplex.js +139 -0
  354. package/dist/node_modules/readable-stream/lib/_stream_passthrough.js +39 -0
  355. package/dist/node_modules/readable-stream/lib/_stream_readable.js +1124 -0
  356. package/dist/node_modules/readable-stream/lib/_stream_transform.js +201 -0
  357. package/dist/node_modules/readable-stream/lib/_stream_writable.js +697 -0
  358. package/dist/node_modules/readable-stream/lib/internal/streams/async_iterator.js +207 -0
  359. package/dist/node_modules/readable-stream/lib/internal/streams/buffer_list.js +210 -0
  360. package/dist/node_modules/readable-stream/lib/internal/streams/destroy.js +105 -0
  361. package/dist/node_modules/readable-stream/lib/internal/streams/end-of-stream.js +104 -0
  362. package/dist/node_modules/readable-stream/lib/internal/streams/from-browser.js +3 -0
  363. package/dist/node_modules/readable-stream/lib/internal/streams/from.js +64 -0
  364. package/dist/node_modules/readable-stream/lib/internal/streams/pipeline.js +97 -0
  365. package/dist/node_modules/readable-stream/lib/internal/streams/state.js +27 -0
  366. package/dist/node_modules/readable-stream/lib/internal/streams/stream-browser.js +1 -0
  367. package/dist/node_modules/readable-stream/lib/internal/streams/stream.js +1 -0
  368. package/dist/node_modules/readable-stream/package.json +68 -0
  369. package/dist/node_modules/readable-stream/readable-browser.js +9 -0
  370. package/dist/node_modules/readable-stream/readable.js +16 -0
  371. package/dist/node_modules/safe-buffer/LICENSE +21 -0
  372. package/dist/node_modules/safe-buffer/README.md +584 -0
  373. package/dist/node_modules/safe-buffer/index.d.ts +187 -0
  374. package/dist/node_modules/safe-buffer/index.js +65 -0
  375. package/dist/node_modules/safe-buffer/package.json +51 -0
  376. package/dist/node_modules/semver/LICENSE +15 -0
  377. package/dist/node_modules/semver/README.md +568 -0
  378. package/dist/node_modules/semver/bin/semver.js +183 -0
  379. package/dist/node_modules/semver/classes/comparator.js +136 -0
  380. package/dist/node_modules/semver/classes/index.js +5 -0
  381. package/dist/node_modules/semver/classes/range.js +519 -0
  382. package/dist/node_modules/semver/classes/semver.js +287 -0
  383. package/dist/node_modules/semver/functions/clean.js +6 -0
  384. package/dist/node_modules/semver/functions/cmp.js +52 -0
  385. package/dist/node_modules/semver/functions/coerce.js +52 -0
  386. package/dist/node_modules/semver/functions/compare-build.js +7 -0
  387. package/dist/node_modules/semver/functions/compare-loose.js +3 -0
  388. package/dist/node_modules/semver/functions/compare.js +5 -0
  389. package/dist/node_modules/semver/functions/diff.js +23 -0
  390. package/dist/node_modules/semver/functions/eq.js +3 -0
  391. package/dist/node_modules/semver/functions/gt.js +3 -0
  392. package/dist/node_modules/semver/functions/gte.js +3 -0
  393. package/dist/node_modules/semver/functions/inc.js +18 -0
  394. package/dist/node_modules/semver/functions/lt.js +3 -0
  395. package/dist/node_modules/semver/functions/lte.js +3 -0
  396. package/dist/node_modules/semver/functions/major.js +3 -0
  397. package/dist/node_modules/semver/functions/minor.js +3 -0
  398. package/dist/node_modules/semver/functions/neq.js +3 -0
  399. package/dist/node_modules/semver/functions/parse.js +33 -0
  400. package/dist/node_modules/semver/functions/patch.js +3 -0
  401. package/dist/node_modules/semver/functions/prerelease.js +6 -0
  402. package/dist/node_modules/semver/functions/rcompare.js +3 -0
  403. package/dist/node_modules/semver/functions/rsort.js +3 -0
  404. package/dist/node_modules/semver/functions/satisfies.js +10 -0
  405. package/dist/node_modules/semver/functions/sort.js +3 -0
  406. package/dist/node_modules/semver/functions/valid.js +6 -0
  407. package/dist/node_modules/semver/index.js +48 -0
  408. package/dist/node_modules/semver/internal/constants.js +17 -0
  409. package/dist/node_modules/semver/internal/debug.js +9 -0
  410. package/dist/node_modules/semver/internal/identifiers.js +23 -0
  411. package/dist/node_modules/semver/internal/parse-options.js +11 -0
  412. package/dist/node_modules/semver/internal/re.js +182 -0
  413. package/dist/node_modules/semver/package.json +75 -0
  414. package/dist/node_modules/semver/preload.js +2 -0
  415. package/dist/node_modules/semver/range.bnf +16 -0
  416. package/dist/node_modules/semver/ranges/gtr.js +4 -0
  417. package/dist/node_modules/semver/ranges/intersects.js +7 -0
  418. package/dist/node_modules/semver/ranges/ltr.js +4 -0
  419. package/dist/node_modules/semver/ranges/max-satisfying.js +25 -0
  420. package/dist/node_modules/semver/ranges/min-satisfying.js +24 -0
  421. package/dist/node_modules/semver/ranges/min-version.js +61 -0
  422. package/dist/node_modules/semver/ranges/outside.js +80 -0
  423. package/dist/node_modules/semver/ranges/simplify.js +47 -0
  424. package/dist/node_modules/semver/ranges/subset.js +244 -0
  425. package/dist/node_modules/semver/ranges/to-comparators.js +8 -0
  426. package/dist/node_modules/semver/ranges/valid.js +11 -0
  427. package/dist/node_modules/sharp/LICENSE +191 -0
  428. package/dist/node_modules/sharp/README.md +117 -0
  429. package/dist/node_modules/sharp/binding.gyp +233 -0
  430. package/dist/node_modules/sharp/build/Release/sharp-linux-x64.node +0 -0
  431. package/dist/node_modules/sharp/install/can-compile.js +11 -0
  432. package/dist/node_modules/sharp/install/dll-copy.js +37 -0
  433. package/dist/node_modules/sharp/install/libvips.js +215 -0
  434. package/dist/node_modules/sharp/lib/agent.js +40 -0
  435. package/dist/node_modules/sharp/lib/channel.js +171 -0
  436. package/dist/node_modules/sharp/lib/colour.js +180 -0
  437. package/dist/node_modules/sharp/lib/composite.js +193 -0
  438. package/dist/node_modules/sharp/lib/constructor.js +386 -0
  439. package/dist/node_modules/sharp/lib/index.js +13 -0
  440. package/dist/node_modules/sharp/lib/input.js +507 -0
  441. package/dist/node_modules/sharp/lib/is.js +143 -0
  442. package/dist/node_modules/sharp/lib/libvips.js +136 -0
  443. package/dist/node_modules/sharp/lib/operation.js +803 -0
  444. package/dist/node_modules/sharp/lib/output.js +1231 -0
  445. package/dist/node_modules/sharp/lib/platform.js +27 -0
  446. package/dist/node_modules/sharp/lib/resize.js +473 -0
  447. package/dist/node_modules/sharp/lib/sharp.js +35 -0
  448. package/dist/node_modules/sharp/lib/utility.js +211 -0
  449. package/dist/node_modules/sharp/package.json +196 -0
  450. package/dist/node_modules/sharp/src/common.cc +966 -0
  451. package/dist/node_modules/sharp/src/common.h +352 -0
  452. package/dist/node_modules/sharp/src/libvips/cplusplus/VConnection.cpp +152 -0
  453. package/dist/node_modules/sharp/src/libvips/cplusplus/VError.cpp +50 -0
  454. package/dist/node_modules/sharp/src/libvips/cplusplus/VImage.cpp +1523 -0
  455. package/dist/node_modules/sharp/src/libvips/cplusplus/VInterpolate.cpp +63 -0
  456. package/dist/node_modules/sharp/src/libvips/cplusplus/vips-operators.cpp +3738 -0
  457. package/dist/node_modules/sharp/src/metadata.cc +291 -0
  458. package/dist/node_modules/sharp/src/metadata.h +92 -0
  459. package/dist/node_modules/sharp/src/operations.cc +412 -0
  460. package/dist/node_modules/sharp/src/operations.h +126 -0
  461. package/dist/node_modules/sharp/src/pipeline.cc +1624 -0
  462. package/dist/node_modules/sharp/src/pipeline.h +349 -0
  463. package/dist/node_modules/sharp/src/sharp.cc +52 -0
  464. package/dist/node_modules/sharp/src/stats.cc +193 -0
  465. package/dist/node_modules/sharp/src/stats.h +70 -0
  466. package/dist/node_modules/sharp/src/utilities.cc +243 -0
  467. package/dist/node_modules/sharp/src/utilities.h +29 -0
  468. package/dist/node_modules/sharp/vendor/8.12.2/linux-x64/THIRD-PARTY-NOTICES.md +43 -0
  469. package/dist/node_modules/sharp/vendor/8.12.2/linux-x64/lib/libvips-cpp.so.42 +0 -0
  470. package/dist/node_modules/sharp/vendor/8.12.2/linux-x64/platform.json +1 -0
  471. package/dist/node_modules/sharp/vendor/8.12.2/linux-x64/versions.json +31 -0
  472. package/dist/node_modules/simple-concat/.travis.yml +3 -0
  473. package/dist/node_modules/simple-concat/LICENSE +20 -0
  474. package/dist/node_modules/simple-concat/README.md +44 -0
  475. package/dist/node_modules/simple-concat/index.js +15 -0
  476. package/dist/node_modules/simple-concat/package.json +47 -0
  477. package/dist/node_modules/simple-concat/test/basic.js +41 -0
  478. package/dist/node_modules/simple-get/.github/dependabot.yml +15 -0
  479. package/dist/node_modules/simple-get/.github/workflows/ci.yml +23 -0
  480. package/dist/node_modules/simple-get/LICENSE +20 -0
  481. package/dist/node_modules/simple-get/README.md +333 -0
  482. package/dist/node_modules/simple-get/index.js +108 -0
  483. package/dist/node_modules/simple-get/package.json +67 -0
  484. package/dist/node_modules/simple-swizzle/LICENSE +21 -0
  485. package/dist/node_modules/simple-swizzle/README.md +39 -0
  486. package/dist/node_modules/simple-swizzle/index.js +29 -0
  487. package/dist/node_modules/simple-swizzle/package.json +36 -0
  488. package/dist/node_modules/string_decoder/LICENSE +48 -0
  489. package/dist/node_modules/string_decoder/README.md +47 -0
  490. package/dist/node_modules/string_decoder/lib/string_decoder.js +296 -0
  491. package/dist/node_modules/string_decoder/package.json +34 -0
  492. package/dist/node_modules/strip-json-comments/index.js +70 -0
  493. package/dist/node_modules/strip-json-comments/license +21 -0
  494. package/dist/node_modules/strip-json-comments/package.json +42 -0
  495. package/dist/node_modules/strip-json-comments/readme.md +64 -0
  496. package/dist/node_modules/tar-fs/.travis.yml +6 -0
  497. package/dist/node_modules/tar-fs/LICENSE +21 -0
  498. package/dist/node_modules/tar-fs/README.md +165 -0
  499. package/dist/node_modules/tar-fs/index.js +351 -0
  500. package/dist/node_modules/tar-fs/package.json +41 -0
  501. package/dist/node_modules/tar-fs/test/fixtures/a/hello.txt +1 -0
  502. package/dist/node_modules/tar-fs/test/fixtures/b/a/test.txt +1 -0
  503. package/dist/node_modules/tar-fs/test/fixtures/d/file1 +0 -0
  504. package/dist/node_modules/tar-fs/test/fixtures/d/file2 +0 -0
  505. package/dist/node_modules/tar-fs/test/fixtures/d/sub-dir/file5 +0 -0
  506. package/dist/node_modules/tar-fs/test/fixtures/d/sub-files/file3 +0 -0
  507. package/dist/node_modules/tar-fs/test/fixtures/d/sub-files/file4 +0 -0
  508. package/dist/node_modules/tar-fs/test/fixtures/e/directory/.ignore +0 -0
  509. package/dist/node_modules/tar-fs/test/fixtures/e/file +0 -0
  510. package/dist/node_modules/tar-fs/test/fixtures/invalid.tar +0 -0
  511. package/dist/node_modules/tar-fs/test/index.js +346 -0
  512. package/dist/node_modules/tar-stream/LICENSE +21 -0
  513. package/dist/node_modules/tar-stream/README.md +168 -0
  514. package/dist/node_modules/tar-stream/extract.js +257 -0
  515. package/dist/node_modules/tar-stream/headers.js +295 -0
  516. package/dist/node_modules/tar-stream/index.js +2 -0
  517. package/dist/node_modules/tar-stream/pack.js +255 -0
  518. package/dist/node_modules/tar-stream/package.json +58 -0
  519. package/dist/node_modules/tar-stream/sandbox.js +11 -0
  520. package/dist/node_modules/tunnel-agent/LICENSE +55 -0
  521. package/dist/node_modules/tunnel-agent/README.md +4 -0
  522. package/dist/node_modules/tunnel-agent/index.js +244 -0
  523. package/dist/node_modules/tunnel-agent/package.json +22 -0
  524. package/dist/node_modules/util-deprecate/History.md +16 -0
  525. package/dist/node_modules/util-deprecate/LICENSE +24 -0
  526. package/dist/node_modules/util-deprecate/README.md +53 -0
  527. package/dist/node_modules/util-deprecate/browser.js +67 -0
  528. package/dist/node_modules/util-deprecate/node.js +6 -0
  529. package/dist/node_modules/util-deprecate/package.json +27 -0
  530. package/dist/node_modules/wrappy/LICENSE +15 -0
  531. package/dist/node_modules/wrappy/README.md +36 -0
  532. package/dist/node_modules/wrappy/package.json +29 -0
  533. package/dist/node_modules/wrappy/wrappy.js +33 -0
  534. package/dist/node_modules/yallist/LICENSE +15 -0
  535. package/dist/node_modules/yallist/README.md +204 -0
  536. package/dist/node_modules/yallist/iterator.js +8 -0
  537. package/dist/node_modules/yallist/package.json +29 -0
  538. package/dist/node_modules/yallist/yallist.js +426 -0
  539. package/dist/package-lock.json +830 -0
  540. package/dist/package.json +39 -0
  541. package/dist/static/expected_tile_2193_153_255_z7.png +0 -0
  542. package/dist/static/expected_tile_NZTM2000Quad_30_33_z6.png +0 -0
  543. package/dist/static/expected_tile_WebMercatorQuad_252_156_z8.png +0 -0
  544. package/package.json +13 -13
  545. package/scripts/create.deployment.package.mjs +1 -1
  546. package/src/__tests__/config.data.ts +82 -0
  547. package/src/__tests__/index.test.ts +3 -3
  548. package/src/__tests__/tile.set.cache.test.ts +1 -67
  549. package/src/__tests__/wmts.capability.test.ts +312 -139
  550. package/src/__tests__/xyz.test.ts +5 -49
  551. package/src/__tests__/xyz.util.ts +6 -32
  552. package/src/cotar.cache.ts +54 -0
  553. package/src/index.ts +36 -32
  554. package/src/routes/__tests__/attribution.test.ts +8 -9
  555. package/src/routes/__tests__/fonts.test.ts +80 -0
  556. package/src/routes/__tests__/memory.fs.ts +77 -0
  557. package/src/routes/__tests__/sprites.test.ts +64 -0
  558. package/src/routes/__tests__/wmts.test.ts +75 -15
  559. package/src/routes/api.ts +0 -4
  560. package/src/routes/attribution.ts +12 -18
  561. package/src/routes/fonts.ts +62 -0
  562. package/src/routes/imagery.ts +9 -7
  563. package/src/routes/sprites.ts +41 -0
  564. package/src/routes/tile.json.ts +1 -2
  565. package/src/routes/tile.wmts.ts +20 -22
  566. package/src/tile.set.cache.ts +1 -28
  567. package/src/tile.set.raster.ts +4 -2
  568. package/src/tile.set.vector.ts +3 -21
  569. package/src/wmts.capability.ts +169 -67
  570. package/tsconfig.tsbuildinfo +1 -1
@@ -0,0 +1,3738 @@
1
+ // bodies for vips operations
2
+ // Mon Nov 1 03:31:09 PM CET 2021
3
+ // this file is generated automatically, do not edit!
4
+
5
+ VImage VImage::CMC2LCh( VOption *options ) const
6
+ {
7
+ VImage out;
8
+
9
+ call( "CMC2LCh",
10
+ (options ? options : VImage::option())->
11
+ set( "in", *this )->
12
+ set( "out", &out ) );
13
+
14
+ return( out );
15
+ }
16
+
17
+ VImage VImage::CMYK2XYZ( VOption *options ) const
18
+ {
19
+ VImage out;
20
+
21
+ call( "CMYK2XYZ",
22
+ (options ? options : VImage::option())->
23
+ set( "in", *this )->
24
+ set( "out", &out ) );
25
+
26
+ return( out );
27
+ }
28
+
29
+ VImage VImage::HSV2sRGB( VOption *options ) const
30
+ {
31
+ VImage out;
32
+
33
+ call( "HSV2sRGB",
34
+ (options ? options : VImage::option())->
35
+ set( "in", *this )->
36
+ set( "out", &out ) );
37
+
38
+ return( out );
39
+ }
40
+
41
+ VImage VImage::LCh2CMC( VOption *options ) const
42
+ {
43
+ VImage out;
44
+
45
+ call( "LCh2CMC",
46
+ (options ? options : VImage::option())->
47
+ set( "in", *this )->
48
+ set( "out", &out ) );
49
+
50
+ return( out );
51
+ }
52
+
53
+ VImage VImage::LCh2Lab( VOption *options ) const
54
+ {
55
+ VImage out;
56
+
57
+ call( "LCh2Lab",
58
+ (options ? options : VImage::option())->
59
+ set( "in", *this )->
60
+ set( "out", &out ) );
61
+
62
+ return( out );
63
+ }
64
+
65
+ VImage VImage::Lab2LCh( VOption *options ) const
66
+ {
67
+ VImage out;
68
+
69
+ call( "Lab2LCh",
70
+ (options ? options : VImage::option())->
71
+ set( "in", *this )->
72
+ set( "out", &out ) );
73
+
74
+ return( out );
75
+ }
76
+
77
+ VImage VImage::Lab2LabQ( VOption *options ) const
78
+ {
79
+ VImage out;
80
+
81
+ call( "Lab2LabQ",
82
+ (options ? options : VImage::option())->
83
+ set( "in", *this )->
84
+ set( "out", &out ) );
85
+
86
+ return( out );
87
+ }
88
+
89
+ VImage VImage::Lab2LabS( VOption *options ) const
90
+ {
91
+ VImage out;
92
+
93
+ call( "Lab2LabS",
94
+ (options ? options : VImage::option())->
95
+ set( "in", *this )->
96
+ set( "out", &out ) );
97
+
98
+ return( out );
99
+ }
100
+
101
+ VImage VImage::Lab2XYZ( VOption *options ) const
102
+ {
103
+ VImage out;
104
+
105
+ call( "Lab2XYZ",
106
+ (options ? options : VImage::option())->
107
+ set( "in", *this )->
108
+ set( "out", &out ) );
109
+
110
+ return( out );
111
+ }
112
+
113
+ VImage VImage::LabQ2Lab( VOption *options ) const
114
+ {
115
+ VImage out;
116
+
117
+ call( "LabQ2Lab",
118
+ (options ? options : VImage::option())->
119
+ set( "in", *this )->
120
+ set( "out", &out ) );
121
+
122
+ return( out );
123
+ }
124
+
125
+ VImage VImage::LabQ2LabS( VOption *options ) const
126
+ {
127
+ VImage out;
128
+
129
+ call( "LabQ2LabS",
130
+ (options ? options : VImage::option())->
131
+ set( "in", *this )->
132
+ set( "out", &out ) );
133
+
134
+ return( out );
135
+ }
136
+
137
+ VImage VImage::LabQ2sRGB( VOption *options ) const
138
+ {
139
+ VImage out;
140
+
141
+ call( "LabQ2sRGB",
142
+ (options ? options : VImage::option())->
143
+ set( "in", *this )->
144
+ set( "out", &out ) );
145
+
146
+ return( out );
147
+ }
148
+
149
+ VImage VImage::LabS2Lab( VOption *options ) const
150
+ {
151
+ VImage out;
152
+
153
+ call( "LabS2Lab",
154
+ (options ? options : VImage::option())->
155
+ set( "in", *this )->
156
+ set( "out", &out ) );
157
+
158
+ return( out );
159
+ }
160
+
161
+ VImage VImage::LabS2LabQ( VOption *options ) const
162
+ {
163
+ VImage out;
164
+
165
+ call( "LabS2LabQ",
166
+ (options ? options : VImage::option())->
167
+ set( "in", *this )->
168
+ set( "out", &out ) );
169
+
170
+ return( out );
171
+ }
172
+
173
+ VImage VImage::XYZ2CMYK( VOption *options ) const
174
+ {
175
+ VImage out;
176
+
177
+ call( "XYZ2CMYK",
178
+ (options ? options : VImage::option())->
179
+ set( "in", *this )->
180
+ set( "out", &out ) );
181
+
182
+ return( out );
183
+ }
184
+
185
+ VImage VImage::XYZ2Lab( VOption *options ) const
186
+ {
187
+ VImage out;
188
+
189
+ call( "XYZ2Lab",
190
+ (options ? options : VImage::option())->
191
+ set( "in", *this )->
192
+ set( "out", &out ) );
193
+
194
+ return( out );
195
+ }
196
+
197
+ VImage VImage::XYZ2Yxy( VOption *options ) const
198
+ {
199
+ VImage out;
200
+
201
+ call( "XYZ2Yxy",
202
+ (options ? options : VImage::option())->
203
+ set( "in", *this )->
204
+ set( "out", &out ) );
205
+
206
+ return( out );
207
+ }
208
+
209
+ VImage VImage::XYZ2scRGB( VOption *options ) const
210
+ {
211
+ VImage out;
212
+
213
+ call( "XYZ2scRGB",
214
+ (options ? options : VImage::option())->
215
+ set( "in", *this )->
216
+ set( "out", &out ) );
217
+
218
+ return( out );
219
+ }
220
+
221
+ VImage VImage::Yxy2XYZ( VOption *options ) const
222
+ {
223
+ VImage out;
224
+
225
+ call( "Yxy2XYZ",
226
+ (options ? options : VImage::option())->
227
+ set( "in", *this )->
228
+ set( "out", &out ) );
229
+
230
+ return( out );
231
+ }
232
+
233
+ VImage VImage::abs( VOption *options ) const
234
+ {
235
+ VImage out;
236
+
237
+ call( "abs",
238
+ (options ? options : VImage::option())->
239
+ set( "in", *this )->
240
+ set( "out", &out ) );
241
+
242
+ return( out );
243
+ }
244
+
245
+ VImage VImage::add( VImage right, VOption *options ) const
246
+ {
247
+ VImage out;
248
+
249
+ call( "add",
250
+ (options ? options : VImage::option())->
251
+ set( "left", *this )->
252
+ set( "out", &out )->
253
+ set( "right", right ) );
254
+
255
+ return( out );
256
+ }
257
+
258
+ VImage VImage::affine( std::vector<double> matrix, VOption *options ) const
259
+ {
260
+ VImage out;
261
+
262
+ call( "affine",
263
+ (options ? options : VImage::option())->
264
+ set( "in", *this )->
265
+ set( "out", &out )->
266
+ set( "matrix", matrix ) );
267
+
268
+ return( out );
269
+ }
270
+
271
+ VImage VImage::analyzeload( const char *filename, VOption *options )
272
+ {
273
+ VImage out;
274
+
275
+ call( "analyzeload",
276
+ (options ? options : VImage::option())->
277
+ set( "out", &out )->
278
+ set( "filename", filename ) );
279
+
280
+ return( out );
281
+ }
282
+
283
+ VImage VImage::arrayjoin( std::vector<VImage> in, VOption *options )
284
+ {
285
+ VImage out;
286
+
287
+ call( "arrayjoin",
288
+ (options ? options : VImage::option())->
289
+ set( "out", &out )->
290
+ set( "in", in ) );
291
+
292
+ return( out );
293
+ }
294
+
295
+ VImage VImage::autorot( VOption *options ) const
296
+ {
297
+ VImage out;
298
+
299
+ call( "autorot",
300
+ (options ? options : VImage::option())->
301
+ set( "in", *this )->
302
+ set( "out", &out ) );
303
+
304
+ return( out );
305
+ }
306
+
307
+ double VImage::avg( VOption *options ) const
308
+ {
309
+ double out;
310
+
311
+ call( "avg",
312
+ (options ? options : VImage::option())->
313
+ set( "in", *this )->
314
+ set( "out", &out ) );
315
+
316
+ return( out );
317
+ }
318
+
319
+ VImage VImage::bandbool( VipsOperationBoolean boolean, VOption *options ) const
320
+ {
321
+ VImage out;
322
+
323
+ call( "bandbool",
324
+ (options ? options : VImage::option())->
325
+ set( "in", *this )->
326
+ set( "out", &out )->
327
+ set( "boolean", boolean ) );
328
+
329
+ return( out );
330
+ }
331
+
332
+ VImage VImage::bandfold( VOption *options ) const
333
+ {
334
+ VImage out;
335
+
336
+ call( "bandfold",
337
+ (options ? options : VImage::option())->
338
+ set( "in", *this )->
339
+ set( "out", &out ) );
340
+
341
+ return( out );
342
+ }
343
+
344
+ VImage VImage::bandjoin( std::vector<VImage> in, VOption *options )
345
+ {
346
+ VImage out;
347
+
348
+ call( "bandjoin",
349
+ (options ? options : VImage::option())->
350
+ set( "out", &out )->
351
+ set( "in", in ) );
352
+
353
+ return( out );
354
+ }
355
+
356
+ VImage VImage::bandjoin_const( std::vector<double> c, VOption *options ) const
357
+ {
358
+ VImage out;
359
+
360
+ call( "bandjoin_const",
361
+ (options ? options : VImage::option())->
362
+ set( "in", *this )->
363
+ set( "out", &out )->
364
+ set( "c", c ) );
365
+
366
+ return( out );
367
+ }
368
+
369
+ VImage VImage::bandmean( VOption *options ) const
370
+ {
371
+ VImage out;
372
+
373
+ call( "bandmean",
374
+ (options ? options : VImage::option())->
375
+ set( "in", *this )->
376
+ set( "out", &out ) );
377
+
378
+ return( out );
379
+ }
380
+
381
+ VImage VImage::bandrank( std::vector<VImage> in, VOption *options )
382
+ {
383
+ VImage out;
384
+
385
+ call( "bandrank",
386
+ (options ? options : VImage::option())->
387
+ set( "out", &out )->
388
+ set( "in", in ) );
389
+
390
+ return( out );
391
+ }
392
+
393
+ VImage VImage::bandunfold( VOption *options ) const
394
+ {
395
+ VImage out;
396
+
397
+ call( "bandunfold",
398
+ (options ? options : VImage::option())->
399
+ set( "in", *this )->
400
+ set( "out", &out ) );
401
+
402
+ return( out );
403
+ }
404
+
405
+ VImage VImage::black( int width, int height, VOption *options )
406
+ {
407
+ VImage out;
408
+
409
+ call( "black",
410
+ (options ? options : VImage::option())->
411
+ set( "out", &out )->
412
+ set( "width", width )->
413
+ set( "height", height ) );
414
+
415
+ return( out );
416
+ }
417
+
418
+ VImage VImage::boolean( VImage right, VipsOperationBoolean boolean, VOption *options ) const
419
+ {
420
+ VImage out;
421
+
422
+ call( "boolean",
423
+ (options ? options : VImage::option())->
424
+ set( "left", *this )->
425
+ set( "out", &out )->
426
+ set( "right", right )->
427
+ set( "boolean", boolean ) );
428
+
429
+ return( out );
430
+ }
431
+
432
+ VImage VImage::boolean_const( VipsOperationBoolean boolean, std::vector<double> c, VOption *options ) const
433
+ {
434
+ VImage out;
435
+
436
+ call( "boolean_const",
437
+ (options ? options : VImage::option())->
438
+ set( "in", *this )->
439
+ set( "out", &out )->
440
+ set( "boolean", boolean )->
441
+ set( "c", c ) );
442
+
443
+ return( out );
444
+ }
445
+
446
+ VImage VImage::buildlut( VOption *options ) const
447
+ {
448
+ VImage out;
449
+
450
+ call( "buildlut",
451
+ (options ? options : VImage::option())->
452
+ set( "in", *this )->
453
+ set( "out", &out ) );
454
+
455
+ return( out );
456
+ }
457
+
458
+ VImage VImage::byteswap( VOption *options ) const
459
+ {
460
+ VImage out;
461
+
462
+ call( "byteswap",
463
+ (options ? options : VImage::option())->
464
+ set( "in", *this )->
465
+ set( "out", &out ) );
466
+
467
+ return( out );
468
+ }
469
+
470
+ VImage VImage::cache( VOption *options ) const
471
+ {
472
+ VImage out;
473
+
474
+ call( "cache",
475
+ (options ? options : VImage::option())->
476
+ set( "in", *this )->
477
+ set( "out", &out ) );
478
+
479
+ return( out );
480
+ }
481
+
482
+ VImage VImage::canny( VOption *options ) const
483
+ {
484
+ VImage out;
485
+
486
+ call( "canny",
487
+ (options ? options : VImage::option())->
488
+ set( "in", *this )->
489
+ set( "out", &out ) );
490
+
491
+ return( out );
492
+ }
493
+
494
+ VImage VImage::case_image( std::vector<VImage> cases, VOption *options ) const
495
+ {
496
+ VImage out;
497
+
498
+ call( "case",
499
+ (options ? options : VImage::option())->
500
+ set( "index", *this )->
501
+ set( "out", &out )->
502
+ set( "cases", cases ) );
503
+
504
+ return( out );
505
+ }
506
+
507
+ VImage VImage::cast( VipsBandFormat format, VOption *options ) const
508
+ {
509
+ VImage out;
510
+
511
+ call( "cast",
512
+ (options ? options : VImage::option())->
513
+ set( "in", *this )->
514
+ set( "out", &out )->
515
+ set( "format", format ) );
516
+
517
+ return( out );
518
+ }
519
+
520
+ VImage VImage::colourspace( VipsInterpretation space, VOption *options ) const
521
+ {
522
+ VImage out;
523
+
524
+ call( "colourspace",
525
+ (options ? options : VImage::option())->
526
+ set( "in", *this )->
527
+ set( "out", &out )->
528
+ set( "space", space ) );
529
+
530
+ return( out );
531
+ }
532
+
533
+ VImage VImage::compass( VImage mask, VOption *options ) const
534
+ {
535
+ VImage out;
536
+
537
+ call( "compass",
538
+ (options ? options : VImage::option())->
539
+ set( "in", *this )->
540
+ set( "out", &out )->
541
+ set( "mask", mask ) );
542
+
543
+ return( out );
544
+ }
545
+
546
+ VImage VImage::complex( VipsOperationComplex cmplx, VOption *options ) const
547
+ {
548
+ VImage out;
549
+
550
+ call( "complex",
551
+ (options ? options : VImage::option())->
552
+ set( "in", *this )->
553
+ set( "out", &out )->
554
+ set( "cmplx", cmplx ) );
555
+
556
+ return( out );
557
+ }
558
+
559
+ VImage VImage::complex2( VImage right, VipsOperationComplex2 cmplx, VOption *options ) const
560
+ {
561
+ VImage out;
562
+
563
+ call( "complex2",
564
+ (options ? options : VImage::option())->
565
+ set( "left", *this )->
566
+ set( "out", &out )->
567
+ set( "right", right )->
568
+ set( "cmplx", cmplx ) );
569
+
570
+ return( out );
571
+ }
572
+
573
+ VImage VImage::complexform( VImage right, VOption *options ) const
574
+ {
575
+ VImage out;
576
+
577
+ call( "complexform",
578
+ (options ? options : VImage::option())->
579
+ set( "left", *this )->
580
+ set( "out", &out )->
581
+ set( "right", right ) );
582
+
583
+ return( out );
584
+ }
585
+
586
+ VImage VImage::complexget( VipsOperationComplexget get, VOption *options ) const
587
+ {
588
+ VImage out;
589
+
590
+ call( "complexget",
591
+ (options ? options : VImage::option())->
592
+ set( "in", *this )->
593
+ set( "out", &out )->
594
+ set( "get", get ) );
595
+
596
+ return( out );
597
+ }
598
+
599
+ VImage VImage::composite( std::vector<VImage> in, std::vector<int> mode, VOption *options )
600
+ {
601
+ VImage out;
602
+
603
+ call( "composite",
604
+ (options ? options : VImage::option())->
605
+ set( "out", &out )->
606
+ set( "in", in )->
607
+ set( "mode", mode ) );
608
+
609
+ return( out );
610
+ }
611
+
612
+ VImage VImage::composite2( VImage overlay, VipsBlendMode mode, VOption *options ) const
613
+ {
614
+ VImage out;
615
+
616
+ call( "composite2",
617
+ (options ? options : VImage::option())->
618
+ set( "base", *this )->
619
+ set( "out", &out )->
620
+ set( "overlay", overlay )->
621
+ set( "mode", mode ) );
622
+
623
+ return( out );
624
+ }
625
+
626
+ VImage VImage::conv( VImage mask, VOption *options ) const
627
+ {
628
+ VImage out;
629
+
630
+ call( "conv",
631
+ (options ? options : VImage::option())->
632
+ set( "in", *this )->
633
+ set( "out", &out )->
634
+ set( "mask", mask ) );
635
+
636
+ return( out );
637
+ }
638
+
639
+ VImage VImage::conva( VImage mask, VOption *options ) const
640
+ {
641
+ VImage out;
642
+
643
+ call( "conva",
644
+ (options ? options : VImage::option())->
645
+ set( "in", *this )->
646
+ set( "out", &out )->
647
+ set( "mask", mask ) );
648
+
649
+ return( out );
650
+ }
651
+
652
+ VImage VImage::convasep( VImage mask, VOption *options ) const
653
+ {
654
+ VImage out;
655
+
656
+ call( "convasep",
657
+ (options ? options : VImage::option())->
658
+ set( "in", *this )->
659
+ set( "out", &out )->
660
+ set( "mask", mask ) );
661
+
662
+ return( out );
663
+ }
664
+
665
+ VImage VImage::convf( VImage mask, VOption *options ) const
666
+ {
667
+ VImage out;
668
+
669
+ call( "convf",
670
+ (options ? options : VImage::option())->
671
+ set( "in", *this )->
672
+ set( "out", &out )->
673
+ set( "mask", mask ) );
674
+
675
+ return( out );
676
+ }
677
+
678
+ VImage VImage::convi( VImage mask, VOption *options ) const
679
+ {
680
+ VImage out;
681
+
682
+ call( "convi",
683
+ (options ? options : VImage::option())->
684
+ set( "in", *this )->
685
+ set( "out", &out )->
686
+ set( "mask", mask ) );
687
+
688
+ return( out );
689
+ }
690
+
691
+ VImage VImage::convsep( VImage mask, VOption *options ) const
692
+ {
693
+ VImage out;
694
+
695
+ call( "convsep",
696
+ (options ? options : VImage::option())->
697
+ set( "in", *this )->
698
+ set( "out", &out )->
699
+ set( "mask", mask ) );
700
+
701
+ return( out );
702
+ }
703
+
704
+ VImage VImage::copy( VOption *options ) const
705
+ {
706
+ VImage out;
707
+
708
+ call( "copy",
709
+ (options ? options : VImage::option())->
710
+ set( "in", *this )->
711
+ set( "out", &out ) );
712
+
713
+ return( out );
714
+ }
715
+
716
+ double VImage::countlines( VipsDirection direction, VOption *options ) const
717
+ {
718
+ double nolines;
719
+
720
+ call( "countlines",
721
+ (options ? options : VImage::option())->
722
+ set( "in", *this )->
723
+ set( "nolines", &nolines )->
724
+ set( "direction", direction ) );
725
+
726
+ return( nolines );
727
+ }
728
+
729
+ VImage VImage::crop( int left, int top, int width, int height, VOption *options ) const
730
+ {
731
+ VImage out;
732
+
733
+ call( "crop",
734
+ (options ? options : VImage::option())->
735
+ set( "input", *this )->
736
+ set( "out", &out )->
737
+ set( "left", left )->
738
+ set( "top", top )->
739
+ set( "width", width )->
740
+ set( "height", height ) );
741
+
742
+ return( out );
743
+ }
744
+
745
+ VImage VImage::csvload( const char *filename, VOption *options )
746
+ {
747
+ VImage out;
748
+
749
+ call( "csvload",
750
+ (options ? options : VImage::option())->
751
+ set( "out", &out )->
752
+ set( "filename", filename ) );
753
+
754
+ return( out );
755
+ }
756
+
757
+ VImage VImage::csvload_source( VSource source, VOption *options )
758
+ {
759
+ VImage out;
760
+
761
+ call( "csvload_source",
762
+ (options ? options : VImage::option())->
763
+ set( "out", &out )->
764
+ set( "source", source ) );
765
+
766
+ return( out );
767
+ }
768
+
769
+ void VImage::csvsave( const char *filename, VOption *options ) const
770
+ {
771
+ call( "csvsave",
772
+ (options ? options : VImage::option())->
773
+ set( "in", *this )->
774
+ set( "filename", filename ) );
775
+ }
776
+
777
+ void VImage::csvsave_target( VTarget target, VOption *options ) const
778
+ {
779
+ call( "csvsave_target",
780
+ (options ? options : VImage::option())->
781
+ set( "in", *this )->
782
+ set( "target", target ) );
783
+ }
784
+
785
+ VImage VImage::dE00( VImage right, VOption *options ) const
786
+ {
787
+ VImage out;
788
+
789
+ call( "dE00",
790
+ (options ? options : VImage::option())->
791
+ set( "left", *this )->
792
+ set( "out", &out )->
793
+ set( "right", right ) );
794
+
795
+ return( out );
796
+ }
797
+
798
+ VImage VImage::dE76( VImage right, VOption *options ) const
799
+ {
800
+ VImage out;
801
+
802
+ call( "dE76",
803
+ (options ? options : VImage::option())->
804
+ set( "left", *this )->
805
+ set( "out", &out )->
806
+ set( "right", right ) );
807
+
808
+ return( out );
809
+ }
810
+
811
+ VImage VImage::dECMC( VImage right, VOption *options ) const
812
+ {
813
+ VImage out;
814
+
815
+ call( "dECMC",
816
+ (options ? options : VImage::option())->
817
+ set( "left", *this )->
818
+ set( "out", &out )->
819
+ set( "right", right ) );
820
+
821
+ return( out );
822
+ }
823
+
824
+ double VImage::deviate( VOption *options ) const
825
+ {
826
+ double out;
827
+
828
+ call( "deviate",
829
+ (options ? options : VImage::option())->
830
+ set( "in", *this )->
831
+ set( "out", &out ) );
832
+
833
+ return( out );
834
+ }
835
+
836
+ VImage VImage::divide( VImage right, VOption *options ) const
837
+ {
838
+ VImage out;
839
+
840
+ call( "divide",
841
+ (options ? options : VImage::option())->
842
+ set( "left", *this )->
843
+ set( "out", &out )->
844
+ set( "right", right ) );
845
+
846
+ return( out );
847
+ }
848
+
849
+ void VImage::draw_circle( std::vector<double> ink, int cx, int cy, int radius, VOption *options ) const
850
+ {
851
+ call( "draw_circle",
852
+ (options ? options : VImage::option())->
853
+ set( "image", *this )->
854
+ set( "ink", ink )->
855
+ set( "cx", cx )->
856
+ set( "cy", cy )->
857
+ set( "radius", radius ) );
858
+ }
859
+
860
+ void VImage::draw_flood( std::vector<double> ink, int x, int y, VOption *options ) const
861
+ {
862
+ call( "draw_flood",
863
+ (options ? options : VImage::option())->
864
+ set( "image", *this )->
865
+ set( "ink", ink )->
866
+ set( "x", x )->
867
+ set( "y", y ) );
868
+ }
869
+
870
+ void VImage::draw_image( VImage sub, int x, int y, VOption *options ) const
871
+ {
872
+ call( "draw_image",
873
+ (options ? options : VImage::option())->
874
+ set( "image", *this )->
875
+ set( "sub", sub )->
876
+ set( "x", x )->
877
+ set( "y", y ) );
878
+ }
879
+
880
+ void VImage::draw_line( std::vector<double> ink, int x1, int y1, int x2, int y2, VOption *options ) const
881
+ {
882
+ call( "draw_line",
883
+ (options ? options : VImage::option())->
884
+ set( "image", *this )->
885
+ set( "ink", ink )->
886
+ set( "x1", x1 )->
887
+ set( "y1", y1 )->
888
+ set( "x2", x2 )->
889
+ set( "y2", y2 ) );
890
+ }
891
+
892
+ void VImage::draw_mask( std::vector<double> ink, VImage mask, int x, int y, VOption *options ) const
893
+ {
894
+ call( "draw_mask",
895
+ (options ? options : VImage::option())->
896
+ set( "image", *this )->
897
+ set( "ink", ink )->
898
+ set( "mask", mask )->
899
+ set( "x", x )->
900
+ set( "y", y ) );
901
+ }
902
+
903
+ void VImage::draw_rect( std::vector<double> ink, int left, int top, int width, int height, VOption *options ) const
904
+ {
905
+ call( "draw_rect",
906
+ (options ? options : VImage::option())->
907
+ set( "image", *this )->
908
+ set( "ink", ink )->
909
+ set( "left", left )->
910
+ set( "top", top )->
911
+ set( "width", width )->
912
+ set( "height", height ) );
913
+ }
914
+
915
+ void VImage::draw_smudge( int left, int top, int width, int height, VOption *options ) const
916
+ {
917
+ call( "draw_smudge",
918
+ (options ? options : VImage::option())->
919
+ set( "image", *this )->
920
+ set( "left", left )->
921
+ set( "top", top )->
922
+ set( "width", width )->
923
+ set( "height", height ) );
924
+ }
925
+
926
+ void VImage::dzsave( const char *filename, VOption *options ) const
927
+ {
928
+ call( "dzsave",
929
+ (options ? options : VImage::option())->
930
+ set( "in", *this )->
931
+ set( "filename", filename ) );
932
+ }
933
+
934
+ VipsBlob *VImage::dzsave_buffer( VOption *options ) const
935
+ {
936
+ VipsBlob *buffer;
937
+
938
+ call( "dzsave_buffer",
939
+ (options ? options : VImage::option())->
940
+ set( "in", *this )->
941
+ set( "buffer", &buffer ) );
942
+
943
+ return( buffer );
944
+ }
945
+
946
+ VImage VImage::embed( int x, int y, int width, int height, VOption *options ) const
947
+ {
948
+ VImage out;
949
+
950
+ call( "embed",
951
+ (options ? options : VImage::option())->
952
+ set( "in", *this )->
953
+ set( "out", &out )->
954
+ set( "x", x )->
955
+ set( "y", y )->
956
+ set( "width", width )->
957
+ set( "height", height ) );
958
+
959
+ return( out );
960
+ }
961
+
962
+ VImage VImage::extract_area( int left, int top, int width, int height, VOption *options ) const
963
+ {
964
+ VImage out;
965
+
966
+ call( "extract_area",
967
+ (options ? options : VImage::option())->
968
+ set( "input", *this )->
969
+ set( "out", &out )->
970
+ set( "left", left )->
971
+ set( "top", top )->
972
+ set( "width", width )->
973
+ set( "height", height ) );
974
+
975
+ return( out );
976
+ }
977
+
978
+ VImage VImage::extract_band( int band, VOption *options ) const
979
+ {
980
+ VImage out;
981
+
982
+ call( "extract_band",
983
+ (options ? options : VImage::option())->
984
+ set( "in", *this )->
985
+ set( "out", &out )->
986
+ set( "band", band ) );
987
+
988
+ return( out );
989
+ }
990
+
991
+ VImage VImage::eye( int width, int height, VOption *options )
992
+ {
993
+ VImage out;
994
+
995
+ call( "eye",
996
+ (options ? options : VImage::option())->
997
+ set( "out", &out )->
998
+ set( "width", width )->
999
+ set( "height", height ) );
1000
+
1001
+ return( out );
1002
+ }
1003
+
1004
+ VImage VImage::falsecolour( VOption *options ) const
1005
+ {
1006
+ VImage out;
1007
+
1008
+ call( "falsecolour",
1009
+ (options ? options : VImage::option())->
1010
+ set( "in", *this )->
1011
+ set( "out", &out ) );
1012
+
1013
+ return( out );
1014
+ }
1015
+
1016
+ VImage VImage::fastcor( VImage ref, VOption *options ) const
1017
+ {
1018
+ VImage out;
1019
+
1020
+ call( "fastcor",
1021
+ (options ? options : VImage::option())->
1022
+ set( "in", *this )->
1023
+ set( "out", &out )->
1024
+ set( "ref", ref ) );
1025
+
1026
+ return( out );
1027
+ }
1028
+
1029
+ VImage VImage::fill_nearest( VOption *options ) const
1030
+ {
1031
+ VImage out;
1032
+
1033
+ call( "fill_nearest",
1034
+ (options ? options : VImage::option())->
1035
+ set( "in", *this )->
1036
+ set( "out", &out ) );
1037
+
1038
+ return( out );
1039
+ }
1040
+
1041
+ int VImage::find_trim( int *top, int *width, int *height, VOption *options ) const
1042
+ {
1043
+ int left;
1044
+
1045
+ call( "find_trim",
1046
+ (options ? options : VImage::option())->
1047
+ set( "in", *this )->
1048
+ set( "left", &left )->
1049
+ set( "top", top )->
1050
+ set( "width", width )->
1051
+ set( "height", height ) );
1052
+
1053
+ return( left );
1054
+ }
1055
+
1056
+ VImage VImage::fitsload( const char *filename, VOption *options )
1057
+ {
1058
+ VImage out;
1059
+
1060
+ call( "fitsload",
1061
+ (options ? options : VImage::option())->
1062
+ set( "out", &out )->
1063
+ set( "filename", filename ) );
1064
+
1065
+ return( out );
1066
+ }
1067
+
1068
+ VImage VImage::fitsload_source( VSource source, VOption *options )
1069
+ {
1070
+ VImage out;
1071
+
1072
+ call( "fitsload_source",
1073
+ (options ? options : VImage::option())->
1074
+ set( "out", &out )->
1075
+ set( "source", source ) );
1076
+
1077
+ return( out );
1078
+ }
1079
+
1080
+ void VImage::fitssave( const char *filename, VOption *options ) const
1081
+ {
1082
+ call( "fitssave",
1083
+ (options ? options : VImage::option())->
1084
+ set( "in", *this )->
1085
+ set( "filename", filename ) );
1086
+ }
1087
+
1088
+ VImage VImage::flatten( VOption *options ) const
1089
+ {
1090
+ VImage out;
1091
+
1092
+ call( "flatten",
1093
+ (options ? options : VImage::option())->
1094
+ set( "in", *this )->
1095
+ set( "out", &out ) );
1096
+
1097
+ return( out );
1098
+ }
1099
+
1100
+ VImage VImage::flip( VipsDirection direction, VOption *options ) const
1101
+ {
1102
+ VImage out;
1103
+
1104
+ call( "flip",
1105
+ (options ? options : VImage::option())->
1106
+ set( "in", *this )->
1107
+ set( "out", &out )->
1108
+ set( "direction", direction ) );
1109
+
1110
+ return( out );
1111
+ }
1112
+
1113
+ VImage VImage::float2rad( VOption *options ) const
1114
+ {
1115
+ VImage out;
1116
+
1117
+ call( "float2rad",
1118
+ (options ? options : VImage::option())->
1119
+ set( "in", *this )->
1120
+ set( "out", &out ) );
1121
+
1122
+ return( out );
1123
+ }
1124
+
1125
+ VImage VImage::fractsurf( int width, int height, double fractal_dimension, VOption *options )
1126
+ {
1127
+ VImage out;
1128
+
1129
+ call( "fractsurf",
1130
+ (options ? options : VImage::option())->
1131
+ set( "out", &out )->
1132
+ set( "width", width )->
1133
+ set( "height", height )->
1134
+ set( "fractal_dimension", fractal_dimension ) );
1135
+
1136
+ return( out );
1137
+ }
1138
+
1139
+ VImage VImage::freqmult( VImage mask, VOption *options ) const
1140
+ {
1141
+ VImage out;
1142
+
1143
+ call( "freqmult",
1144
+ (options ? options : VImage::option())->
1145
+ set( "in", *this )->
1146
+ set( "out", &out )->
1147
+ set( "mask", mask ) );
1148
+
1149
+ return( out );
1150
+ }
1151
+
1152
+ VImage VImage::fwfft( VOption *options ) const
1153
+ {
1154
+ VImage out;
1155
+
1156
+ call( "fwfft",
1157
+ (options ? options : VImage::option())->
1158
+ set( "in", *this )->
1159
+ set( "out", &out ) );
1160
+
1161
+ return( out );
1162
+ }
1163
+
1164
+ VImage VImage::gamma( VOption *options ) const
1165
+ {
1166
+ VImage out;
1167
+
1168
+ call( "gamma",
1169
+ (options ? options : VImage::option())->
1170
+ set( "in", *this )->
1171
+ set( "out", &out ) );
1172
+
1173
+ return( out );
1174
+ }
1175
+
1176
+ VImage VImage::gaussblur( double sigma, VOption *options ) const
1177
+ {
1178
+ VImage out;
1179
+
1180
+ call( "gaussblur",
1181
+ (options ? options : VImage::option())->
1182
+ set( "in", *this )->
1183
+ set( "out", &out )->
1184
+ set( "sigma", sigma ) );
1185
+
1186
+ return( out );
1187
+ }
1188
+
1189
+ VImage VImage::gaussmat( double sigma, double min_ampl, VOption *options )
1190
+ {
1191
+ VImage out;
1192
+
1193
+ call( "gaussmat",
1194
+ (options ? options : VImage::option())->
1195
+ set( "out", &out )->
1196
+ set( "sigma", sigma )->
1197
+ set( "min_ampl", min_ampl ) );
1198
+
1199
+ return( out );
1200
+ }
1201
+
1202
+ VImage VImage::gaussnoise( int width, int height, VOption *options )
1203
+ {
1204
+ VImage out;
1205
+
1206
+ call( "gaussnoise",
1207
+ (options ? options : VImage::option())->
1208
+ set( "out", &out )->
1209
+ set( "width", width )->
1210
+ set( "height", height ) );
1211
+
1212
+ return( out );
1213
+ }
1214
+
1215
+ std::vector<double> VImage::getpoint( int x, int y, VOption *options ) const
1216
+ {
1217
+ std::vector<double> out_array;
1218
+
1219
+ call( "getpoint",
1220
+ (options ? options : VImage::option())->
1221
+ set( "in", *this )->
1222
+ set( "out_array", &out_array )->
1223
+ set( "x", x )->
1224
+ set( "y", y ) );
1225
+
1226
+ return( out_array );
1227
+ }
1228
+
1229
+ VImage VImage::gifload( const char *filename, VOption *options )
1230
+ {
1231
+ VImage out;
1232
+
1233
+ call( "gifload",
1234
+ (options ? options : VImage::option())->
1235
+ set( "out", &out )->
1236
+ set( "filename", filename ) );
1237
+
1238
+ return( out );
1239
+ }
1240
+
1241
+ VImage VImage::gifload_buffer( VipsBlob *buffer, VOption *options )
1242
+ {
1243
+ VImage out;
1244
+
1245
+ call( "gifload_buffer",
1246
+ (options ? options : VImage::option())->
1247
+ set( "out", &out )->
1248
+ set( "buffer", buffer ) );
1249
+
1250
+ return( out );
1251
+ }
1252
+
1253
+ VImage VImage::gifload_source( VSource source, VOption *options )
1254
+ {
1255
+ VImage out;
1256
+
1257
+ call( "gifload_source",
1258
+ (options ? options : VImage::option())->
1259
+ set( "out", &out )->
1260
+ set( "source", source ) );
1261
+
1262
+ return( out );
1263
+ }
1264
+
1265
+ void VImage::gifsave( const char *filename, VOption *options ) const
1266
+ {
1267
+ call( "gifsave",
1268
+ (options ? options : VImage::option())->
1269
+ set( "in", *this )->
1270
+ set( "filename", filename ) );
1271
+ }
1272
+
1273
+ VipsBlob *VImage::gifsave_buffer( VOption *options ) const
1274
+ {
1275
+ VipsBlob *buffer;
1276
+
1277
+ call( "gifsave_buffer",
1278
+ (options ? options : VImage::option())->
1279
+ set( "in", *this )->
1280
+ set( "buffer", &buffer ) );
1281
+
1282
+ return( buffer );
1283
+ }
1284
+
1285
+ void VImage::gifsave_target( VTarget target, VOption *options ) const
1286
+ {
1287
+ call( "gifsave_target",
1288
+ (options ? options : VImage::option())->
1289
+ set( "in", *this )->
1290
+ set( "target", target ) );
1291
+ }
1292
+
1293
+ VImage VImage::globalbalance( VOption *options ) const
1294
+ {
1295
+ VImage out;
1296
+
1297
+ call( "globalbalance",
1298
+ (options ? options : VImage::option())->
1299
+ set( "in", *this )->
1300
+ set( "out", &out ) );
1301
+
1302
+ return( out );
1303
+ }
1304
+
1305
+ VImage VImage::gravity( VipsCompassDirection direction, int width, int height, VOption *options ) const
1306
+ {
1307
+ VImage out;
1308
+
1309
+ call( "gravity",
1310
+ (options ? options : VImage::option())->
1311
+ set( "in", *this )->
1312
+ set( "out", &out )->
1313
+ set( "direction", direction )->
1314
+ set( "width", width )->
1315
+ set( "height", height ) );
1316
+
1317
+ return( out );
1318
+ }
1319
+
1320
+ VImage VImage::grey( int width, int height, VOption *options )
1321
+ {
1322
+ VImage out;
1323
+
1324
+ call( "grey",
1325
+ (options ? options : VImage::option())->
1326
+ set( "out", &out )->
1327
+ set( "width", width )->
1328
+ set( "height", height ) );
1329
+
1330
+ return( out );
1331
+ }
1332
+
1333
+ VImage VImage::grid( int tile_height, int across, int down, VOption *options ) const
1334
+ {
1335
+ VImage out;
1336
+
1337
+ call( "grid",
1338
+ (options ? options : VImage::option())->
1339
+ set( "in", *this )->
1340
+ set( "out", &out )->
1341
+ set( "tile_height", tile_height )->
1342
+ set( "across", across )->
1343
+ set( "down", down ) );
1344
+
1345
+ return( out );
1346
+ }
1347
+
1348
+ VImage VImage::heifload( const char *filename, VOption *options )
1349
+ {
1350
+ VImage out;
1351
+
1352
+ call( "heifload",
1353
+ (options ? options : VImage::option())->
1354
+ set( "out", &out )->
1355
+ set( "filename", filename ) );
1356
+
1357
+ return( out );
1358
+ }
1359
+
1360
+ VImage VImage::heifload_buffer( VipsBlob *buffer, VOption *options )
1361
+ {
1362
+ VImage out;
1363
+
1364
+ call( "heifload_buffer",
1365
+ (options ? options : VImage::option())->
1366
+ set( "out", &out )->
1367
+ set( "buffer", buffer ) );
1368
+
1369
+ return( out );
1370
+ }
1371
+
1372
+ VImage VImage::heifload_source( VSource source, VOption *options )
1373
+ {
1374
+ VImage out;
1375
+
1376
+ call( "heifload_source",
1377
+ (options ? options : VImage::option())->
1378
+ set( "out", &out )->
1379
+ set( "source", source ) );
1380
+
1381
+ return( out );
1382
+ }
1383
+
1384
+ void VImage::heifsave( const char *filename, VOption *options ) const
1385
+ {
1386
+ call( "heifsave",
1387
+ (options ? options : VImage::option())->
1388
+ set( "in", *this )->
1389
+ set( "filename", filename ) );
1390
+ }
1391
+
1392
+ VipsBlob *VImage::heifsave_buffer( VOption *options ) const
1393
+ {
1394
+ VipsBlob *buffer;
1395
+
1396
+ call( "heifsave_buffer",
1397
+ (options ? options : VImage::option())->
1398
+ set( "in", *this )->
1399
+ set( "buffer", &buffer ) );
1400
+
1401
+ return( buffer );
1402
+ }
1403
+
1404
+ void VImage::heifsave_target( VTarget target, VOption *options ) const
1405
+ {
1406
+ call( "heifsave_target",
1407
+ (options ? options : VImage::option())->
1408
+ set( "in", *this )->
1409
+ set( "target", target ) );
1410
+ }
1411
+
1412
+ VImage VImage::hist_cum( VOption *options ) const
1413
+ {
1414
+ VImage out;
1415
+
1416
+ call( "hist_cum",
1417
+ (options ? options : VImage::option())->
1418
+ set( "in", *this )->
1419
+ set( "out", &out ) );
1420
+
1421
+ return( out );
1422
+ }
1423
+
1424
+ double VImage::hist_entropy( VOption *options ) const
1425
+ {
1426
+ double out;
1427
+
1428
+ call( "hist_entropy",
1429
+ (options ? options : VImage::option())->
1430
+ set( "in", *this )->
1431
+ set( "out", &out ) );
1432
+
1433
+ return( out );
1434
+ }
1435
+
1436
+ VImage VImage::hist_equal( VOption *options ) const
1437
+ {
1438
+ VImage out;
1439
+
1440
+ call( "hist_equal",
1441
+ (options ? options : VImage::option())->
1442
+ set( "in", *this )->
1443
+ set( "out", &out ) );
1444
+
1445
+ return( out );
1446
+ }
1447
+
1448
+ VImage VImage::hist_find( VOption *options ) const
1449
+ {
1450
+ VImage out;
1451
+
1452
+ call( "hist_find",
1453
+ (options ? options : VImage::option())->
1454
+ set( "in", *this )->
1455
+ set( "out", &out ) );
1456
+
1457
+ return( out );
1458
+ }
1459
+
1460
+ VImage VImage::hist_find_indexed( VImage index, VOption *options ) const
1461
+ {
1462
+ VImage out;
1463
+
1464
+ call( "hist_find_indexed",
1465
+ (options ? options : VImage::option())->
1466
+ set( "in", *this )->
1467
+ set( "out", &out )->
1468
+ set( "index", index ) );
1469
+
1470
+ return( out );
1471
+ }
1472
+
1473
+ VImage VImage::hist_find_ndim( VOption *options ) const
1474
+ {
1475
+ VImage out;
1476
+
1477
+ call( "hist_find_ndim",
1478
+ (options ? options : VImage::option())->
1479
+ set( "in", *this )->
1480
+ set( "out", &out ) );
1481
+
1482
+ return( out );
1483
+ }
1484
+
1485
+ bool VImage::hist_ismonotonic( VOption *options ) const
1486
+ {
1487
+ bool monotonic;
1488
+
1489
+ call( "hist_ismonotonic",
1490
+ (options ? options : VImage::option())->
1491
+ set( "in", *this )->
1492
+ set( "monotonic", &monotonic ) );
1493
+
1494
+ return( monotonic );
1495
+ }
1496
+
1497
+ VImage VImage::hist_local( int width, int height, VOption *options ) const
1498
+ {
1499
+ VImage out;
1500
+
1501
+ call( "hist_local",
1502
+ (options ? options : VImage::option())->
1503
+ set( "in", *this )->
1504
+ set( "out", &out )->
1505
+ set( "width", width )->
1506
+ set( "height", height ) );
1507
+
1508
+ return( out );
1509
+ }
1510
+
1511
+ VImage VImage::hist_match( VImage ref, VOption *options ) const
1512
+ {
1513
+ VImage out;
1514
+
1515
+ call( "hist_match",
1516
+ (options ? options : VImage::option())->
1517
+ set( "in", *this )->
1518
+ set( "out", &out )->
1519
+ set( "ref", ref ) );
1520
+
1521
+ return( out );
1522
+ }
1523
+
1524
+ VImage VImage::hist_norm( VOption *options ) const
1525
+ {
1526
+ VImage out;
1527
+
1528
+ call( "hist_norm",
1529
+ (options ? options : VImage::option())->
1530
+ set( "in", *this )->
1531
+ set( "out", &out ) );
1532
+
1533
+ return( out );
1534
+ }
1535
+
1536
+ VImage VImage::hist_plot( VOption *options ) const
1537
+ {
1538
+ VImage out;
1539
+
1540
+ call( "hist_plot",
1541
+ (options ? options : VImage::option())->
1542
+ set( "in", *this )->
1543
+ set( "out", &out ) );
1544
+
1545
+ return( out );
1546
+ }
1547
+
1548
+ VImage VImage::hough_circle( VOption *options ) const
1549
+ {
1550
+ VImage out;
1551
+
1552
+ call( "hough_circle",
1553
+ (options ? options : VImage::option())->
1554
+ set( "in", *this )->
1555
+ set( "out", &out ) );
1556
+
1557
+ return( out );
1558
+ }
1559
+
1560
+ VImage VImage::hough_line( VOption *options ) const
1561
+ {
1562
+ VImage out;
1563
+
1564
+ call( "hough_line",
1565
+ (options ? options : VImage::option())->
1566
+ set( "in", *this )->
1567
+ set( "out", &out ) );
1568
+
1569
+ return( out );
1570
+ }
1571
+
1572
+ VImage VImage::icc_export( VOption *options ) const
1573
+ {
1574
+ VImage out;
1575
+
1576
+ call( "icc_export",
1577
+ (options ? options : VImage::option())->
1578
+ set( "in", *this )->
1579
+ set( "out", &out ) );
1580
+
1581
+ return( out );
1582
+ }
1583
+
1584
+ VImage VImage::icc_import( VOption *options ) const
1585
+ {
1586
+ VImage out;
1587
+
1588
+ call( "icc_import",
1589
+ (options ? options : VImage::option())->
1590
+ set( "in", *this )->
1591
+ set( "out", &out ) );
1592
+
1593
+ return( out );
1594
+ }
1595
+
1596
+ VImage VImage::icc_transform( const char *output_profile, VOption *options ) const
1597
+ {
1598
+ VImage out;
1599
+
1600
+ call( "icc_transform",
1601
+ (options ? options : VImage::option())->
1602
+ set( "in", *this )->
1603
+ set( "out", &out )->
1604
+ set( "output_profile", output_profile ) );
1605
+
1606
+ return( out );
1607
+ }
1608
+
1609
+ VImage VImage::identity( VOption *options )
1610
+ {
1611
+ VImage out;
1612
+
1613
+ call( "identity",
1614
+ (options ? options : VImage::option())->
1615
+ set( "out", &out ) );
1616
+
1617
+ return( out );
1618
+ }
1619
+
1620
+ VImage VImage::ifthenelse( VImage in1, VImage in2, VOption *options ) const
1621
+ {
1622
+ VImage out;
1623
+
1624
+ call( "ifthenelse",
1625
+ (options ? options : VImage::option())->
1626
+ set( "cond", *this )->
1627
+ set( "out", &out )->
1628
+ set( "in1", in1 )->
1629
+ set( "in2", in2 ) );
1630
+
1631
+ return( out );
1632
+ }
1633
+
1634
+ VImage VImage::insert( VImage sub, int x, int y, VOption *options ) const
1635
+ {
1636
+ VImage out;
1637
+
1638
+ call( "insert",
1639
+ (options ? options : VImage::option())->
1640
+ set( "main", *this )->
1641
+ set( "out", &out )->
1642
+ set( "sub", sub )->
1643
+ set( "x", x )->
1644
+ set( "y", y ) );
1645
+
1646
+ return( out );
1647
+ }
1648
+
1649
+ VImage VImage::invert( VOption *options ) const
1650
+ {
1651
+ VImage out;
1652
+
1653
+ call( "invert",
1654
+ (options ? options : VImage::option())->
1655
+ set( "in", *this )->
1656
+ set( "out", &out ) );
1657
+
1658
+ return( out );
1659
+ }
1660
+
1661
+ VImage VImage::invertlut( VOption *options ) const
1662
+ {
1663
+ VImage out;
1664
+
1665
+ call( "invertlut",
1666
+ (options ? options : VImage::option())->
1667
+ set( "in", *this )->
1668
+ set( "out", &out ) );
1669
+
1670
+ return( out );
1671
+ }
1672
+
1673
+ VImage VImage::invfft( VOption *options ) const
1674
+ {
1675
+ VImage out;
1676
+
1677
+ call( "invfft",
1678
+ (options ? options : VImage::option())->
1679
+ set( "in", *this )->
1680
+ set( "out", &out ) );
1681
+
1682
+ return( out );
1683
+ }
1684
+
1685
+ VImage VImage::join( VImage in2, VipsDirection direction, VOption *options ) const
1686
+ {
1687
+ VImage out;
1688
+
1689
+ call( "join",
1690
+ (options ? options : VImage::option())->
1691
+ set( "in1", *this )->
1692
+ set( "out", &out )->
1693
+ set( "in2", in2 )->
1694
+ set( "direction", direction ) );
1695
+
1696
+ return( out );
1697
+ }
1698
+
1699
+ VImage VImage::jp2kload( const char *filename, VOption *options )
1700
+ {
1701
+ VImage out;
1702
+
1703
+ call( "jp2kload",
1704
+ (options ? options : VImage::option())->
1705
+ set( "out", &out )->
1706
+ set( "filename", filename ) );
1707
+
1708
+ return( out );
1709
+ }
1710
+
1711
+ VImage VImage::jp2kload_buffer( VipsBlob *buffer, VOption *options )
1712
+ {
1713
+ VImage out;
1714
+
1715
+ call( "jp2kload_buffer",
1716
+ (options ? options : VImage::option())->
1717
+ set( "out", &out )->
1718
+ set( "buffer", buffer ) );
1719
+
1720
+ return( out );
1721
+ }
1722
+
1723
+ VImage VImage::jp2kload_source( VSource source, VOption *options )
1724
+ {
1725
+ VImage out;
1726
+
1727
+ call( "jp2kload_source",
1728
+ (options ? options : VImage::option())->
1729
+ set( "out", &out )->
1730
+ set( "source", source ) );
1731
+
1732
+ return( out );
1733
+ }
1734
+
1735
+ void VImage::jp2ksave( const char *filename, VOption *options ) const
1736
+ {
1737
+ call( "jp2ksave",
1738
+ (options ? options : VImage::option())->
1739
+ set( "in", *this )->
1740
+ set( "filename", filename ) );
1741
+ }
1742
+
1743
+ VipsBlob *VImage::jp2ksave_buffer( VOption *options ) const
1744
+ {
1745
+ VipsBlob *buffer;
1746
+
1747
+ call( "jp2ksave_buffer",
1748
+ (options ? options : VImage::option())->
1749
+ set( "in", *this )->
1750
+ set( "buffer", &buffer ) );
1751
+
1752
+ return( buffer );
1753
+ }
1754
+
1755
+ void VImage::jp2ksave_target( VTarget target, VOption *options ) const
1756
+ {
1757
+ call( "jp2ksave_target",
1758
+ (options ? options : VImage::option())->
1759
+ set( "in", *this )->
1760
+ set( "target", target ) );
1761
+ }
1762
+
1763
+ VImage VImage::jpegload( const char *filename, VOption *options )
1764
+ {
1765
+ VImage out;
1766
+
1767
+ call( "jpegload",
1768
+ (options ? options : VImage::option())->
1769
+ set( "out", &out )->
1770
+ set( "filename", filename ) );
1771
+
1772
+ return( out );
1773
+ }
1774
+
1775
+ VImage VImage::jpegload_buffer( VipsBlob *buffer, VOption *options )
1776
+ {
1777
+ VImage out;
1778
+
1779
+ call( "jpegload_buffer",
1780
+ (options ? options : VImage::option())->
1781
+ set( "out", &out )->
1782
+ set( "buffer", buffer ) );
1783
+
1784
+ return( out );
1785
+ }
1786
+
1787
+ VImage VImage::jpegload_source( VSource source, VOption *options )
1788
+ {
1789
+ VImage out;
1790
+
1791
+ call( "jpegload_source",
1792
+ (options ? options : VImage::option())->
1793
+ set( "out", &out )->
1794
+ set( "source", source ) );
1795
+
1796
+ return( out );
1797
+ }
1798
+
1799
+ void VImage::jpegsave( const char *filename, VOption *options ) const
1800
+ {
1801
+ call( "jpegsave",
1802
+ (options ? options : VImage::option())->
1803
+ set( "in", *this )->
1804
+ set( "filename", filename ) );
1805
+ }
1806
+
1807
+ VipsBlob *VImage::jpegsave_buffer( VOption *options ) const
1808
+ {
1809
+ VipsBlob *buffer;
1810
+
1811
+ call( "jpegsave_buffer",
1812
+ (options ? options : VImage::option())->
1813
+ set( "in", *this )->
1814
+ set( "buffer", &buffer ) );
1815
+
1816
+ return( buffer );
1817
+ }
1818
+
1819
+ void VImage::jpegsave_mime( VOption *options ) const
1820
+ {
1821
+ call( "jpegsave_mime",
1822
+ (options ? options : VImage::option())->
1823
+ set( "in", *this ) );
1824
+ }
1825
+
1826
+ void VImage::jpegsave_target( VTarget target, VOption *options ) const
1827
+ {
1828
+ call( "jpegsave_target",
1829
+ (options ? options : VImage::option())->
1830
+ set( "in", *this )->
1831
+ set( "target", target ) );
1832
+ }
1833
+
1834
+ VImage VImage::jxlload( const char *filename, VOption *options )
1835
+ {
1836
+ VImage out;
1837
+
1838
+ call( "jxlload",
1839
+ (options ? options : VImage::option())->
1840
+ set( "out", &out )->
1841
+ set( "filename", filename ) );
1842
+
1843
+ return( out );
1844
+ }
1845
+
1846
+ VImage VImage::jxlload_buffer( VipsBlob *buffer, VOption *options )
1847
+ {
1848
+ VImage out;
1849
+
1850
+ call( "jxlload_buffer",
1851
+ (options ? options : VImage::option())->
1852
+ set( "out", &out )->
1853
+ set( "buffer", buffer ) );
1854
+
1855
+ return( out );
1856
+ }
1857
+
1858
+ VImage VImage::jxlload_source( VSource source, VOption *options )
1859
+ {
1860
+ VImage out;
1861
+
1862
+ call( "jxlload_source",
1863
+ (options ? options : VImage::option())->
1864
+ set( "out", &out )->
1865
+ set( "source", source ) );
1866
+
1867
+ return( out );
1868
+ }
1869
+
1870
+ void VImage::jxlsave( const char *filename, VOption *options ) const
1871
+ {
1872
+ call( "jxlsave",
1873
+ (options ? options : VImage::option())->
1874
+ set( "in", *this )->
1875
+ set( "filename", filename ) );
1876
+ }
1877
+
1878
+ VipsBlob *VImage::jxlsave_buffer( VOption *options ) const
1879
+ {
1880
+ VipsBlob *buffer;
1881
+
1882
+ call( "jxlsave_buffer",
1883
+ (options ? options : VImage::option())->
1884
+ set( "in", *this )->
1885
+ set( "buffer", &buffer ) );
1886
+
1887
+ return( buffer );
1888
+ }
1889
+
1890
+ void VImage::jxlsave_target( VTarget target, VOption *options ) const
1891
+ {
1892
+ call( "jxlsave_target",
1893
+ (options ? options : VImage::option())->
1894
+ set( "in", *this )->
1895
+ set( "target", target ) );
1896
+ }
1897
+
1898
+ VImage VImage::labelregions( VOption *options ) const
1899
+ {
1900
+ VImage mask;
1901
+
1902
+ call( "labelregions",
1903
+ (options ? options : VImage::option())->
1904
+ set( "in", *this )->
1905
+ set( "mask", &mask ) );
1906
+
1907
+ return( mask );
1908
+ }
1909
+
1910
+ VImage VImage::linear( std::vector<double> a, std::vector<double> b, VOption *options ) const
1911
+ {
1912
+ VImage out;
1913
+
1914
+ call( "linear",
1915
+ (options ? options : VImage::option())->
1916
+ set( "in", *this )->
1917
+ set( "out", &out )->
1918
+ set( "a", a )->
1919
+ set( "b", b ) );
1920
+
1921
+ return( out );
1922
+ }
1923
+
1924
+ VImage VImage::linecache( VOption *options ) const
1925
+ {
1926
+ VImage out;
1927
+
1928
+ call( "linecache",
1929
+ (options ? options : VImage::option())->
1930
+ set( "in", *this )->
1931
+ set( "out", &out ) );
1932
+
1933
+ return( out );
1934
+ }
1935
+
1936
+ VImage VImage::logmat( double sigma, double min_ampl, VOption *options )
1937
+ {
1938
+ VImage out;
1939
+
1940
+ call( "logmat",
1941
+ (options ? options : VImage::option())->
1942
+ set( "out", &out )->
1943
+ set( "sigma", sigma )->
1944
+ set( "min_ampl", min_ampl ) );
1945
+
1946
+ return( out );
1947
+ }
1948
+
1949
+ VImage VImage::magickload( const char *filename, VOption *options )
1950
+ {
1951
+ VImage out;
1952
+
1953
+ call( "magickload",
1954
+ (options ? options : VImage::option())->
1955
+ set( "out", &out )->
1956
+ set( "filename", filename ) );
1957
+
1958
+ return( out );
1959
+ }
1960
+
1961
+ VImage VImage::magickload_buffer( VipsBlob *buffer, VOption *options )
1962
+ {
1963
+ VImage out;
1964
+
1965
+ call( "magickload_buffer",
1966
+ (options ? options : VImage::option())->
1967
+ set( "out", &out )->
1968
+ set( "buffer", buffer ) );
1969
+
1970
+ return( out );
1971
+ }
1972
+
1973
+ void VImage::magicksave( const char *filename, VOption *options ) const
1974
+ {
1975
+ call( "magicksave",
1976
+ (options ? options : VImage::option())->
1977
+ set( "in", *this )->
1978
+ set( "filename", filename ) );
1979
+ }
1980
+
1981
+ VipsBlob *VImage::magicksave_buffer( VOption *options ) const
1982
+ {
1983
+ VipsBlob *buffer;
1984
+
1985
+ call( "magicksave_buffer",
1986
+ (options ? options : VImage::option())->
1987
+ set( "in", *this )->
1988
+ set( "buffer", &buffer ) );
1989
+
1990
+ return( buffer );
1991
+ }
1992
+
1993
+ VImage VImage::mapim( VImage index, VOption *options ) const
1994
+ {
1995
+ VImage out;
1996
+
1997
+ call( "mapim",
1998
+ (options ? options : VImage::option())->
1999
+ set( "in", *this )->
2000
+ set( "out", &out )->
2001
+ set( "index", index ) );
2002
+
2003
+ return( out );
2004
+ }
2005
+
2006
+ VImage VImage::maplut( VImage lut, VOption *options ) const
2007
+ {
2008
+ VImage out;
2009
+
2010
+ call( "maplut",
2011
+ (options ? options : VImage::option())->
2012
+ set( "in", *this )->
2013
+ set( "out", &out )->
2014
+ set( "lut", lut ) );
2015
+
2016
+ return( out );
2017
+ }
2018
+
2019
+ VImage VImage::mask_butterworth( int width, int height, double order, double frequency_cutoff, double amplitude_cutoff, VOption *options )
2020
+ {
2021
+ VImage out;
2022
+
2023
+ call( "mask_butterworth",
2024
+ (options ? options : VImage::option())->
2025
+ set( "out", &out )->
2026
+ set( "width", width )->
2027
+ set( "height", height )->
2028
+ set( "order", order )->
2029
+ set( "frequency_cutoff", frequency_cutoff )->
2030
+ set( "amplitude_cutoff", amplitude_cutoff ) );
2031
+
2032
+ return( out );
2033
+ }
2034
+
2035
+ VImage VImage::mask_butterworth_band( int width, int height, double order, double frequency_cutoff_x, double frequency_cutoff_y, double radius, double amplitude_cutoff, VOption *options )
2036
+ {
2037
+ VImage out;
2038
+
2039
+ call( "mask_butterworth_band",
2040
+ (options ? options : VImage::option())->
2041
+ set( "out", &out )->
2042
+ set( "width", width )->
2043
+ set( "height", height )->
2044
+ set( "order", order )->
2045
+ set( "frequency_cutoff_x", frequency_cutoff_x )->
2046
+ set( "frequency_cutoff_y", frequency_cutoff_y )->
2047
+ set( "radius", radius )->
2048
+ set( "amplitude_cutoff", amplitude_cutoff ) );
2049
+
2050
+ return( out );
2051
+ }
2052
+
2053
+ VImage VImage::mask_butterworth_ring( int width, int height, double order, double frequency_cutoff, double amplitude_cutoff, double ringwidth, VOption *options )
2054
+ {
2055
+ VImage out;
2056
+
2057
+ call( "mask_butterworth_ring",
2058
+ (options ? options : VImage::option())->
2059
+ set( "out", &out )->
2060
+ set( "width", width )->
2061
+ set( "height", height )->
2062
+ set( "order", order )->
2063
+ set( "frequency_cutoff", frequency_cutoff )->
2064
+ set( "amplitude_cutoff", amplitude_cutoff )->
2065
+ set( "ringwidth", ringwidth ) );
2066
+
2067
+ return( out );
2068
+ }
2069
+
2070
+ VImage VImage::mask_fractal( int width, int height, double fractal_dimension, VOption *options )
2071
+ {
2072
+ VImage out;
2073
+
2074
+ call( "mask_fractal",
2075
+ (options ? options : VImage::option())->
2076
+ set( "out", &out )->
2077
+ set( "width", width )->
2078
+ set( "height", height )->
2079
+ set( "fractal_dimension", fractal_dimension ) );
2080
+
2081
+ return( out );
2082
+ }
2083
+
2084
+ VImage VImage::mask_gaussian( int width, int height, double frequency_cutoff, double amplitude_cutoff, VOption *options )
2085
+ {
2086
+ VImage out;
2087
+
2088
+ call( "mask_gaussian",
2089
+ (options ? options : VImage::option())->
2090
+ set( "out", &out )->
2091
+ set( "width", width )->
2092
+ set( "height", height )->
2093
+ set( "frequency_cutoff", frequency_cutoff )->
2094
+ set( "amplitude_cutoff", amplitude_cutoff ) );
2095
+
2096
+ return( out );
2097
+ }
2098
+
2099
+ VImage VImage::mask_gaussian_band( int width, int height, double frequency_cutoff_x, double frequency_cutoff_y, double radius, double amplitude_cutoff, VOption *options )
2100
+ {
2101
+ VImage out;
2102
+
2103
+ call( "mask_gaussian_band",
2104
+ (options ? options : VImage::option())->
2105
+ set( "out", &out )->
2106
+ set( "width", width )->
2107
+ set( "height", height )->
2108
+ set( "frequency_cutoff_x", frequency_cutoff_x )->
2109
+ set( "frequency_cutoff_y", frequency_cutoff_y )->
2110
+ set( "radius", radius )->
2111
+ set( "amplitude_cutoff", amplitude_cutoff ) );
2112
+
2113
+ return( out );
2114
+ }
2115
+
2116
+ VImage VImage::mask_gaussian_ring( int width, int height, double frequency_cutoff, double amplitude_cutoff, double ringwidth, VOption *options )
2117
+ {
2118
+ VImage out;
2119
+
2120
+ call( "mask_gaussian_ring",
2121
+ (options ? options : VImage::option())->
2122
+ set( "out", &out )->
2123
+ set( "width", width )->
2124
+ set( "height", height )->
2125
+ set( "frequency_cutoff", frequency_cutoff )->
2126
+ set( "amplitude_cutoff", amplitude_cutoff )->
2127
+ set( "ringwidth", ringwidth ) );
2128
+
2129
+ return( out );
2130
+ }
2131
+
2132
+ VImage VImage::mask_ideal( int width, int height, double frequency_cutoff, VOption *options )
2133
+ {
2134
+ VImage out;
2135
+
2136
+ call( "mask_ideal",
2137
+ (options ? options : VImage::option())->
2138
+ set( "out", &out )->
2139
+ set( "width", width )->
2140
+ set( "height", height )->
2141
+ set( "frequency_cutoff", frequency_cutoff ) );
2142
+
2143
+ return( out );
2144
+ }
2145
+
2146
+ VImage VImage::mask_ideal_band( int width, int height, double frequency_cutoff_x, double frequency_cutoff_y, double radius, VOption *options )
2147
+ {
2148
+ VImage out;
2149
+
2150
+ call( "mask_ideal_band",
2151
+ (options ? options : VImage::option())->
2152
+ set( "out", &out )->
2153
+ set( "width", width )->
2154
+ set( "height", height )->
2155
+ set( "frequency_cutoff_x", frequency_cutoff_x )->
2156
+ set( "frequency_cutoff_y", frequency_cutoff_y )->
2157
+ set( "radius", radius ) );
2158
+
2159
+ return( out );
2160
+ }
2161
+
2162
+ VImage VImage::mask_ideal_ring( int width, int height, double frequency_cutoff, double ringwidth, VOption *options )
2163
+ {
2164
+ VImage out;
2165
+
2166
+ call( "mask_ideal_ring",
2167
+ (options ? options : VImage::option())->
2168
+ set( "out", &out )->
2169
+ set( "width", width )->
2170
+ set( "height", height )->
2171
+ set( "frequency_cutoff", frequency_cutoff )->
2172
+ set( "ringwidth", ringwidth ) );
2173
+
2174
+ return( out );
2175
+ }
2176
+
2177
+ VImage VImage::match( VImage sec, int xr1, int yr1, int xs1, int ys1, int xr2, int yr2, int xs2, int ys2, VOption *options ) const
2178
+ {
2179
+ VImage out;
2180
+
2181
+ call( "match",
2182
+ (options ? options : VImage::option())->
2183
+ set( "ref", *this )->
2184
+ set( "out", &out )->
2185
+ set( "sec", sec )->
2186
+ set( "xr1", xr1 )->
2187
+ set( "yr1", yr1 )->
2188
+ set( "xs1", xs1 )->
2189
+ set( "ys1", ys1 )->
2190
+ set( "xr2", xr2 )->
2191
+ set( "yr2", yr2 )->
2192
+ set( "xs2", xs2 )->
2193
+ set( "ys2", ys2 ) );
2194
+
2195
+ return( out );
2196
+ }
2197
+
2198
+ VImage VImage::math( VipsOperationMath math, VOption *options ) const
2199
+ {
2200
+ VImage out;
2201
+
2202
+ call( "math",
2203
+ (options ? options : VImage::option())->
2204
+ set( "in", *this )->
2205
+ set( "out", &out )->
2206
+ set( "math", math ) );
2207
+
2208
+ return( out );
2209
+ }
2210
+
2211
+ VImage VImage::math2( VImage right, VipsOperationMath2 math2, VOption *options ) const
2212
+ {
2213
+ VImage out;
2214
+
2215
+ call( "math2",
2216
+ (options ? options : VImage::option())->
2217
+ set( "left", *this )->
2218
+ set( "out", &out )->
2219
+ set( "right", right )->
2220
+ set( "math2", math2 ) );
2221
+
2222
+ return( out );
2223
+ }
2224
+
2225
+ VImage VImage::math2_const( VipsOperationMath2 math2, std::vector<double> c, VOption *options ) const
2226
+ {
2227
+ VImage out;
2228
+
2229
+ call( "math2_const",
2230
+ (options ? options : VImage::option())->
2231
+ set( "in", *this )->
2232
+ set( "out", &out )->
2233
+ set( "math2", math2 )->
2234
+ set( "c", c ) );
2235
+
2236
+ return( out );
2237
+ }
2238
+
2239
+ VImage VImage::matload( const char *filename, VOption *options )
2240
+ {
2241
+ VImage out;
2242
+
2243
+ call( "matload",
2244
+ (options ? options : VImage::option())->
2245
+ set( "out", &out )->
2246
+ set( "filename", filename ) );
2247
+
2248
+ return( out );
2249
+ }
2250
+
2251
+ VImage VImage::matrixinvert( VOption *options ) const
2252
+ {
2253
+ VImage out;
2254
+
2255
+ call( "matrixinvert",
2256
+ (options ? options : VImage::option())->
2257
+ set( "in", *this )->
2258
+ set( "out", &out ) );
2259
+
2260
+ return( out );
2261
+ }
2262
+
2263
+ VImage VImage::matrixload( const char *filename, VOption *options )
2264
+ {
2265
+ VImage out;
2266
+
2267
+ call( "matrixload",
2268
+ (options ? options : VImage::option())->
2269
+ set( "out", &out )->
2270
+ set( "filename", filename ) );
2271
+
2272
+ return( out );
2273
+ }
2274
+
2275
+ VImage VImage::matrixload_source( VSource source, VOption *options )
2276
+ {
2277
+ VImage out;
2278
+
2279
+ call( "matrixload_source",
2280
+ (options ? options : VImage::option())->
2281
+ set( "out", &out )->
2282
+ set( "source", source ) );
2283
+
2284
+ return( out );
2285
+ }
2286
+
2287
+ void VImage::matrixprint( VOption *options ) const
2288
+ {
2289
+ call( "matrixprint",
2290
+ (options ? options : VImage::option())->
2291
+ set( "in", *this ) );
2292
+ }
2293
+
2294
+ void VImage::matrixsave( const char *filename, VOption *options ) const
2295
+ {
2296
+ call( "matrixsave",
2297
+ (options ? options : VImage::option())->
2298
+ set( "in", *this )->
2299
+ set( "filename", filename ) );
2300
+ }
2301
+
2302
+ void VImage::matrixsave_target( VTarget target, VOption *options ) const
2303
+ {
2304
+ call( "matrixsave_target",
2305
+ (options ? options : VImage::option())->
2306
+ set( "in", *this )->
2307
+ set( "target", target ) );
2308
+ }
2309
+
2310
+ double VImage::max( VOption *options ) const
2311
+ {
2312
+ double out;
2313
+
2314
+ call( "max",
2315
+ (options ? options : VImage::option())->
2316
+ set( "in", *this )->
2317
+ set( "out", &out ) );
2318
+
2319
+ return( out );
2320
+ }
2321
+
2322
+ VImage VImage::measure( int h, int v, VOption *options ) const
2323
+ {
2324
+ VImage out;
2325
+
2326
+ call( "measure",
2327
+ (options ? options : VImage::option())->
2328
+ set( "in", *this )->
2329
+ set( "out", &out )->
2330
+ set( "h", h )->
2331
+ set( "v", v ) );
2332
+
2333
+ return( out );
2334
+ }
2335
+
2336
+ VImage VImage::merge( VImage sec, VipsDirection direction, int dx, int dy, VOption *options ) const
2337
+ {
2338
+ VImage out;
2339
+
2340
+ call( "merge",
2341
+ (options ? options : VImage::option())->
2342
+ set( "ref", *this )->
2343
+ set( "out", &out )->
2344
+ set( "sec", sec )->
2345
+ set( "direction", direction )->
2346
+ set( "dx", dx )->
2347
+ set( "dy", dy ) );
2348
+
2349
+ return( out );
2350
+ }
2351
+
2352
+ double VImage::min( VOption *options ) const
2353
+ {
2354
+ double out;
2355
+
2356
+ call( "min",
2357
+ (options ? options : VImage::option())->
2358
+ set( "in", *this )->
2359
+ set( "out", &out ) );
2360
+
2361
+ return( out );
2362
+ }
2363
+
2364
+ VImage VImage::morph( VImage mask, VipsOperationMorphology morph, VOption *options ) const
2365
+ {
2366
+ VImage out;
2367
+
2368
+ call( "morph",
2369
+ (options ? options : VImage::option())->
2370
+ set( "in", *this )->
2371
+ set( "out", &out )->
2372
+ set( "mask", mask )->
2373
+ set( "morph", morph ) );
2374
+
2375
+ return( out );
2376
+ }
2377
+
2378
+ VImage VImage::mosaic( VImage sec, VipsDirection direction, int xref, int yref, int xsec, int ysec, VOption *options ) const
2379
+ {
2380
+ VImage out;
2381
+
2382
+ call( "mosaic",
2383
+ (options ? options : VImage::option())->
2384
+ set( "ref", *this )->
2385
+ set( "out", &out )->
2386
+ set( "sec", sec )->
2387
+ set( "direction", direction )->
2388
+ set( "xref", xref )->
2389
+ set( "yref", yref )->
2390
+ set( "xsec", xsec )->
2391
+ set( "ysec", ysec ) );
2392
+
2393
+ return( out );
2394
+ }
2395
+
2396
+ VImage VImage::mosaic1( VImage sec, VipsDirection direction, int xr1, int yr1, int xs1, int ys1, int xr2, int yr2, int xs2, int ys2, VOption *options ) const
2397
+ {
2398
+ VImage out;
2399
+
2400
+ call( "mosaic1",
2401
+ (options ? options : VImage::option())->
2402
+ set( "ref", *this )->
2403
+ set( "out", &out )->
2404
+ set( "sec", sec )->
2405
+ set( "direction", direction )->
2406
+ set( "xr1", xr1 )->
2407
+ set( "yr1", yr1 )->
2408
+ set( "xs1", xs1 )->
2409
+ set( "ys1", ys1 )->
2410
+ set( "xr2", xr2 )->
2411
+ set( "yr2", yr2 )->
2412
+ set( "xs2", xs2 )->
2413
+ set( "ys2", ys2 ) );
2414
+
2415
+ return( out );
2416
+ }
2417
+
2418
+ VImage VImage::msb( VOption *options ) const
2419
+ {
2420
+ VImage out;
2421
+
2422
+ call( "msb",
2423
+ (options ? options : VImage::option())->
2424
+ set( "in", *this )->
2425
+ set( "out", &out ) );
2426
+
2427
+ return( out );
2428
+ }
2429
+
2430
+ VImage VImage::multiply( VImage right, VOption *options ) const
2431
+ {
2432
+ VImage out;
2433
+
2434
+ call( "multiply",
2435
+ (options ? options : VImage::option())->
2436
+ set( "left", *this )->
2437
+ set( "out", &out )->
2438
+ set( "right", right ) );
2439
+
2440
+ return( out );
2441
+ }
2442
+
2443
+ VImage VImage::niftiload( const char *filename, VOption *options )
2444
+ {
2445
+ VImage out;
2446
+
2447
+ call( "niftiload",
2448
+ (options ? options : VImage::option())->
2449
+ set( "out", &out )->
2450
+ set( "filename", filename ) );
2451
+
2452
+ return( out );
2453
+ }
2454
+
2455
+ VImage VImage::niftiload_source( VSource source, VOption *options )
2456
+ {
2457
+ VImage out;
2458
+
2459
+ call( "niftiload_source",
2460
+ (options ? options : VImage::option())->
2461
+ set( "out", &out )->
2462
+ set( "source", source ) );
2463
+
2464
+ return( out );
2465
+ }
2466
+
2467
+ void VImage::niftisave( const char *filename, VOption *options ) const
2468
+ {
2469
+ call( "niftisave",
2470
+ (options ? options : VImage::option())->
2471
+ set( "in", *this )->
2472
+ set( "filename", filename ) );
2473
+ }
2474
+
2475
+ VImage VImage::openexrload( const char *filename, VOption *options )
2476
+ {
2477
+ VImage out;
2478
+
2479
+ call( "openexrload",
2480
+ (options ? options : VImage::option())->
2481
+ set( "out", &out )->
2482
+ set( "filename", filename ) );
2483
+
2484
+ return( out );
2485
+ }
2486
+
2487
+ VImage VImage::openslideload( const char *filename, VOption *options )
2488
+ {
2489
+ VImage out;
2490
+
2491
+ call( "openslideload",
2492
+ (options ? options : VImage::option())->
2493
+ set( "out", &out )->
2494
+ set( "filename", filename ) );
2495
+
2496
+ return( out );
2497
+ }
2498
+
2499
+ VImage VImage::openslideload_source( VSource source, VOption *options )
2500
+ {
2501
+ VImage out;
2502
+
2503
+ call( "openslideload_source",
2504
+ (options ? options : VImage::option())->
2505
+ set( "out", &out )->
2506
+ set( "source", source ) );
2507
+
2508
+ return( out );
2509
+ }
2510
+
2511
+ VImage VImage::pdfload( const char *filename, VOption *options )
2512
+ {
2513
+ VImage out;
2514
+
2515
+ call( "pdfload",
2516
+ (options ? options : VImage::option())->
2517
+ set( "out", &out )->
2518
+ set( "filename", filename ) );
2519
+
2520
+ return( out );
2521
+ }
2522
+
2523
+ VImage VImage::pdfload_buffer( VipsBlob *buffer, VOption *options )
2524
+ {
2525
+ VImage out;
2526
+
2527
+ call( "pdfload_buffer",
2528
+ (options ? options : VImage::option())->
2529
+ set( "out", &out )->
2530
+ set( "buffer", buffer ) );
2531
+
2532
+ return( out );
2533
+ }
2534
+
2535
+ VImage VImage::pdfload_source( VSource source, VOption *options )
2536
+ {
2537
+ VImage out;
2538
+
2539
+ call( "pdfload_source",
2540
+ (options ? options : VImage::option())->
2541
+ set( "out", &out )->
2542
+ set( "source", source ) );
2543
+
2544
+ return( out );
2545
+ }
2546
+
2547
+ int VImage::percent( double percent, VOption *options ) const
2548
+ {
2549
+ int threshold;
2550
+
2551
+ call( "percent",
2552
+ (options ? options : VImage::option())->
2553
+ set( "in", *this )->
2554
+ set( "threshold", &threshold )->
2555
+ set( "percent", percent ) );
2556
+
2557
+ return( threshold );
2558
+ }
2559
+
2560
+ VImage VImage::perlin( int width, int height, VOption *options )
2561
+ {
2562
+ VImage out;
2563
+
2564
+ call( "perlin",
2565
+ (options ? options : VImage::option())->
2566
+ set( "out", &out )->
2567
+ set( "width", width )->
2568
+ set( "height", height ) );
2569
+
2570
+ return( out );
2571
+ }
2572
+
2573
+ VImage VImage::phasecor( VImage in2, VOption *options ) const
2574
+ {
2575
+ VImage out;
2576
+
2577
+ call( "phasecor",
2578
+ (options ? options : VImage::option())->
2579
+ set( "in", *this )->
2580
+ set( "out", &out )->
2581
+ set( "in2", in2 ) );
2582
+
2583
+ return( out );
2584
+ }
2585
+
2586
+ VImage VImage::pngload( const char *filename, VOption *options )
2587
+ {
2588
+ VImage out;
2589
+
2590
+ call( "pngload",
2591
+ (options ? options : VImage::option())->
2592
+ set( "out", &out )->
2593
+ set( "filename", filename ) );
2594
+
2595
+ return( out );
2596
+ }
2597
+
2598
+ VImage VImage::pngload_buffer( VipsBlob *buffer, VOption *options )
2599
+ {
2600
+ VImage out;
2601
+
2602
+ call( "pngload_buffer",
2603
+ (options ? options : VImage::option())->
2604
+ set( "out", &out )->
2605
+ set( "buffer", buffer ) );
2606
+
2607
+ return( out );
2608
+ }
2609
+
2610
+ VImage VImage::pngload_source( VSource source, VOption *options )
2611
+ {
2612
+ VImage out;
2613
+
2614
+ call( "pngload_source",
2615
+ (options ? options : VImage::option())->
2616
+ set( "out", &out )->
2617
+ set( "source", source ) );
2618
+
2619
+ return( out );
2620
+ }
2621
+
2622
+ void VImage::pngsave( const char *filename, VOption *options ) const
2623
+ {
2624
+ call( "pngsave",
2625
+ (options ? options : VImage::option())->
2626
+ set( "in", *this )->
2627
+ set( "filename", filename ) );
2628
+ }
2629
+
2630
+ VipsBlob *VImage::pngsave_buffer( VOption *options ) const
2631
+ {
2632
+ VipsBlob *buffer;
2633
+
2634
+ call( "pngsave_buffer",
2635
+ (options ? options : VImage::option())->
2636
+ set( "in", *this )->
2637
+ set( "buffer", &buffer ) );
2638
+
2639
+ return( buffer );
2640
+ }
2641
+
2642
+ void VImage::pngsave_target( VTarget target, VOption *options ) const
2643
+ {
2644
+ call( "pngsave_target",
2645
+ (options ? options : VImage::option())->
2646
+ set( "in", *this )->
2647
+ set( "target", target ) );
2648
+ }
2649
+
2650
+ VImage VImage::ppmload( const char *filename, VOption *options )
2651
+ {
2652
+ VImage out;
2653
+
2654
+ call( "ppmload",
2655
+ (options ? options : VImage::option())->
2656
+ set( "out", &out )->
2657
+ set( "filename", filename ) );
2658
+
2659
+ return( out );
2660
+ }
2661
+
2662
+ VImage VImage::ppmload_source( VSource source, VOption *options )
2663
+ {
2664
+ VImage out;
2665
+
2666
+ call( "ppmload_source",
2667
+ (options ? options : VImage::option())->
2668
+ set( "out", &out )->
2669
+ set( "source", source ) );
2670
+
2671
+ return( out );
2672
+ }
2673
+
2674
+ void VImage::ppmsave( const char *filename, VOption *options ) const
2675
+ {
2676
+ call( "ppmsave",
2677
+ (options ? options : VImage::option())->
2678
+ set( "in", *this )->
2679
+ set( "filename", filename ) );
2680
+ }
2681
+
2682
+ void VImage::ppmsave_target( VTarget target, VOption *options ) const
2683
+ {
2684
+ call( "ppmsave_target",
2685
+ (options ? options : VImage::option())->
2686
+ set( "in", *this )->
2687
+ set( "target", target ) );
2688
+ }
2689
+
2690
+ VImage VImage::premultiply( VOption *options ) const
2691
+ {
2692
+ VImage out;
2693
+
2694
+ call( "premultiply",
2695
+ (options ? options : VImage::option())->
2696
+ set( "in", *this )->
2697
+ set( "out", &out ) );
2698
+
2699
+ return( out );
2700
+ }
2701
+
2702
+ VImage VImage::profile( VImage *rows, VOption *options ) const
2703
+ {
2704
+ VImage columns;
2705
+
2706
+ call( "profile",
2707
+ (options ? options : VImage::option())->
2708
+ set( "in", *this )->
2709
+ set( "columns", &columns )->
2710
+ set( "rows", rows ) );
2711
+
2712
+ return( columns );
2713
+ }
2714
+
2715
+ VipsBlob *VImage::profile_load( const char *name, VOption *options )
2716
+ {
2717
+ VipsBlob *profile;
2718
+
2719
+ call( "profile_load",
2720
+ (options ? options : VImage::option())->
2721
+ set( "profile", &profile )->
2722
+ set( "name", name ) );
2723
+
2724
+ return( profile );
2725
+ }
2726
+
2727
+ VImage VImage::project( VImage *rows, VOption *options ) const
2728
+ {
2729
+ VImage columns;
2730
+
2731
+ call( "project",
2732
+ (options ? options : VImage::option())->
2733
+ set( "in", *this )->
2734
+ set( "columns", &columns )->
2735
+ set( "rows", rows ) );
2736
+
2737
+ return( columns );
2738
+ }
2739
+
2740
+ VImage VImage::quadratic( VImage coeff, VOption *options ) const
2741
+ {
2742
+ VImage out;
2743
+
2744
+ call( "quadratic",
2745
+ (options ? options : VImage::option())->
2746
+ set( "in", *this )->
2747
+ set( "out", &out )->
2748
+ set( "coeff", coeff ) );
2749
+
2750
+ return( out );
2751
+ }
2752
+
2753
+ VImage VImage::rad2float( VOption *options ) const
2754
+ {
2755
+ VImage out;
2756
+
2757
+ call( "rad2float",
2758
+ (options ? options : VImage::option())->
2759
+ set( "in", *this )->
2760
+ set( "out", &out ) );
2761
+
2762
+ return( out );
2763
+ }
2764
+
2765
+ VImage VImage::radload( const char *filename, VOption *options )
2766
+ {
2767
+ VImage out;
2768
+
2769
+ call( "radload",
2770
+ (options ? options : VImage::option())->
2771
+ set( "out", &out )->
2772
+ set( "filename", filename ) );
2773
+
2774
+ return( out );
2775
+ }
2776
+
2777
+ VImage VImage::radload_buffer( VipsBlob *buffer, VOption *options )
2778
+ {
2779
+ VImage out;
2780
+
2781
+ call( "radload_buffer",
2782
+ (options ? options : VImage::option())->
2783
+ set( "out", &out )->
2784
+ set( "buffer", buffer ) );
2785
+
2786
+ return( out );
2787
+ }
2788
+
2789
+ VImage VImage::radload_source( VSource source, VOption *options )
2790
+ {
2791
+ VImage out;
2792
+
2793
+ call( "radload_source",
2794
+ (options ? options : VImage::option())->
2795
+ set( "out", &out )->
2796
+ set( "source", source ) );
2797
+
2798
+ return( out );
2799
+ }
2800
+
2801
+ void VImage::radsave( const char *filename, VOption *options ) const
2802
+ {
2803
+ call( "radsave",
2804
+ (options ? options : VImage::option())->
2805
+ set( "in", *this )->
2806
+ set( "filename", filename ) );
2807
+ }
2808
+
2809
+ VipsBlob *VImage::radsave_buffer( VOption *options ) const
2810
+ {
2811
+ VipsBlob *buffer;
2812
+
2813
+ call( "radsave_buffer",
2814
+ (options ? options : VImage::option())->
2815
+ set( "in", *this )->
2816
+ set( "buffer", &buffer ) );
2817
+
2818
+ return( buffer );
2819
+ }
2820
+
2821
+ void VImage::radsave_target( VTarget target, VOption *options ) const
2822
+ {
2823
+ call( "radsave_target",
2824
+ (options ? options : VImage::option())->
2825
+ set( "in", *this )->
2826
+ set( "target", target ) );
2827
+ }
2828
+
2829
+ VImage VImage::rank( int width, int height, int index, VOption *options ) const
2830
+ {
2831
+ VImage out;
2832
+
2833
+ call( "rank",
2834
+ (options ? options : VImage::option())->
2835
+ set( "in", *this )->
2836
+ set( "out", &out )->
2837
+ set( "width", width )->
2838
+ set( "height", height )->
2839
+ set( "index", index ) );
2840
+
2841
+ return( out );
2842
+ }
2843
+
2844
+ VImage VImage::rawload( const char *filename, int width, int height, int bands, VOption *options )
2845
+ {
2846
+ VImage out;
2847
+
2848
+ call( "rawload",
2849
+ (options ? options : VImage::option())->
2850
+ set( "out", &out )->
2851
+ set( "filename", filename )->
2852
+ set( "width", width )->
2853
+ set( "height", height )->
2854
+ set( "bands", bands ) );
2855
+
2856
+ return( out );
2857
+ }
2858
+
2859
+ void VImage::rawsave( const char *filename, VOption *options ) const
2860
+ {
2861
+ call( "rawsave",
2862
+ (options ? options : VImage::option())->
2863
+ set( "in", *this )->
2864
+ set( "filename", filename ) );
2865
+ }
2866
+
2867
+ void VImage::rawsave_fd( int fd, VOption *options ) const
2868
+ {
2869
+ call( "rawsave_fd",
2870
+ (options ? options : VImage::option())->
2871
+ set( "in", *this )->
2872
+ set( "fd", fd ) );
2873
+ }
2874
+
2875
+ VImage VImage::recomb( VImage m, VOption *options ) const
2876
+ {
2877
+ VImage out;
2878
+
2879
+ call( "recomb",
2880
+ (options ? options : VImage::option())->
2881
+ set( "in", *this )->
2882
+ set( "out", &out )->
2883
+ set( "m", m ) );
2884
+
2885
+ return( out );
2886
+ }
2887
+
2888
+ VImage VImage::reduce( double hshrink, double vshrink, VOption *options ) const
2889
+ {
2890
+ VImage out;
2891
+
2892
+ call( "reduce",
2893
+ (options ? options : VImage::option())->
2894
+ set( "in", *this )->
2895
+ set( "out", &out )->
2896
+ set( "hshrink", hshrink )->
2897
+ set( "vshrink", vshrink ) );
2898
+
2899
+ return( out );
2900
+ }
2901
+
2902
+ VImage VImage::reduceh( double hshrink, VOption *options ) const
2903
+ {
2904
+ VImage out;
2905
+
2906
+ call( "reduceh",
2907
+ (options ? options : VImage::option())->
2908
+ set( "in", *this )->
2909
+ set( "out", &out )->
2910
+ set( "hshrink", hshrink ) );
2911
+
2912
+ return( out );
2913
+ }
2914
+
2915
+ VImage VImage::reducev( double vshrink, VOption *options ) const
2916
+ {
2917
+ VImage out;
2918
+
2919
+ call( "reducev",
2920
+ (options ? options : VImage::option())->
2921
+ set( "in", *this )->
2922
+ set( "out", &out )->
2923
+ set( "vshrink", vshrink ) );
2924
+
2925
+ return( out );
2926
+ }
2927
+
2928
+ VImage VImage::relational( VImage right, VipsOperationRelational relational, VOption *options ) const
2929
+ {
2930
+ VImage out;
2931
+
2932
+ call( "relational",
2933
+ (options ? options : VImage::option())->
2934
+ set( "left", *this )->
2935
+ set( "out", &out )->
2936
+ set( "right", right )->
2937
+ set( "relational", relational ) );
2938
+
2939
+ return( out );
2940
+ }
2941
+
2942
+ VImage VImage::relational_const( VipsOperationRelational relational, std::vector<double> c, VOption *options ) const
2943
+ {
2944
+ VImage out;
2945
+
2946
+ call( "relational_const",
2947
+ (options ? options : VImage::option())->
2948
+ set( "in", *this )->
2949
+ set( "out", &out )->
2950
+ set( "relational", relational )->
2951
+ set( "c", c ) );
2952
+
2953
+ return( out );
2954
+ }
2955
+
2956
+ VImage VImage::remainder( VImage right, VOption *options ) const
2957
+ {
2958
+ VImage out;
2959
+
2960
+ call( "remainder",
2961
+ (options ? options : VImage::option())->
2962
+ set( "left", *this )->
2963
+ set( "out", &out )->
2964
+ set( "right", right ) );
2965
+
2966
+ return( out );
2967
+ }
2968
+
2969
+ VImage VImage::remainder_const( std::vector<double> c, VOption *options ) const
2970
+ {
2971
+ VImage out;
2972
+
2973
+ call( "remainder_const",
2974
+ (options ? options : VImage::option())->
2975
+ set( "in", *this )->
2976
+ set( "out", &out )->
2977
+ set( "c", c ) );
2978
+
2979
+ return( out );
2980
+ }
2981
+
2982
+ VImage VImage::replicate( int across, int down, VOption *options ) const
2983
+ {
2984
+ VImage out;
2985
+
2986
+ call( "replicate",
2987
+ (options ? options : VImage::option())->
2988
+ set( "in", *this )->
2989
+ set( "out", &out )->
2990
+ set( "across", across )->
2991
+ set( "down", down ) );
2992
+
2993
+ return( out );
2994
+ }
2995
+
2996
+ VImage VImage::resize( double scale, VOption *options ) const
2997
+ {
2998
+ VImage out;
2999
+
3000
+ call( "resize",
3001
+ (options ? options : VImage::option())->
3002
+ set( "in", *this )->
3003
+ set( "out", &out )->
3004
+ set( "scale", scale ) );
3005
+
3006
+ return( out );
3007
+ }
3008
+
3009
+ VImage VImage::rot( VipsAngle angle, VOption *options ) const
3010
+ {
3011
+ VImage out;
3012
+
3013
+ call( "rot",
3014
+ (options ? options : VImage::option())->
3015
+ set( "in", *this )->
3016
+ set( "out", &out )->
3017
+ set( "angle", angle ) );
3018
+
3019
+ return( out );
3020
+ }
3021
+
3022
+ VImage VImage::rot45( VOption *options ) const
3023
+ {
3024
+ VImage out;
3025
+
3026
+ call( "rot45",
3027
+ (options ? options : VImage::option())->
3028
+ set( "in", *this )->
3029
+ set( "out", &out ) );
3030
+
3031
+ return( out );
3032
+ }
3033
+
3034
+ VImage VImage::rotate( double angle, VOption *options ) const
3035
+ {
3036
+ VImage out;
3037
+
3038
+ call( "rotate",
3039
+ (options ? options : VImage::option())->
3040
+ set( "in", *this )->
3041
+ set( "out", &out )->
3042
+ set( "angle", angle ) );
3043
+
3044
+ return( out );
3045
+ }
3046
+
3047
+ VImage VImage::round( VipsOperationRound round, VOption *options ) const
3048
+ {
3049
+ VImage out;
3050
+
3051
+ call( "round",
3052
+ (options ? options : VImage::option())->
3053
+ set( "in", *this )->
3054
+ set( "out", &out )->
3055
+ set( "round", round ) );
3056
+
3057
+ return( out );
3058
+ }
3059
+
3060
+ VImage VImage::sRGB2HSV( VOption *options ) const
3061
+ {
3062
+ VImage out;
3063
+
3064
+ call( "sRGB2HSV",
3065
+ (options ? options : VImage::option())->
3066
+ set( "in", *this )->
3067
+ set( "out", &out ) );
3068
+
3069
+ return( out );
3070
+ }
3071
+
3072
+ VImage VImage::sRGB2scRGB( VOption *options ) const
3073
+ {
3074
+ VImage out;
3075
+
3076
+ call( "sRGB2scRGB",
3077
+ (options ? options : VImage::option())->
3078
+ set( "in", *this )->
3079
+ set( "out", &out ) );
3080
+
3081
+ return( out );
3082
+ }
3083
+
3084
+ VImage VImage::scRGB2BW( VOption *options ) const
3085
+ {
3086
+ VImage out;
3087
+
3088
+ call( "scRGB2BW",
3089
+ (options ? options : VImage::option())->
3090
+ set( "in", *this )->
3091
+ set( "out", &out ) );
3092
+
3093
+ return( out );
3094
+ }
3095
+
3096
+ VImage VImage::scRGB2XYZ( VOption *options ) const
3097
+ {
3098
+ VImage out;
3099
+
3100
+ call( "scRGB2XYZ",
3101
+ (options ? options : VImage::option())->
3102
+ set( "in", *this )->
3103
+ set( "out", &out ) );
3104
+
3105
+ return( out );
3106
+ }
3107
+
3108
+ VImage VImage::scRGB2sRGB( VOption *options ) const
3109
+ {
3110
+ VImage out;
3111
+
3112
+ call( "scRGB2sRGB",
3113
+ (options ? options : VImage::option())->
3114
+ set( "in", *this )->
3115
+ set( "out", &out ) );
3116
+
3117
+ return( out );
3118
+ }
3119
+
3120
+ VImage VImage::scale( VOption *options ) const
3121
+ {
3122
+ VImage out;
3123
+
3124
+ call( "scale",
3125
+ (options ? options : VImage::option())->
3126
+ set( "in", *this )->
3127
+ set( "out", &out ) );
3128
+
3129
+ return( out );
3130
+ }
3131
+
3132
+ VImage VImage::sequential( VOption *options ) const
3133
+ {
3134
+ VImage out;
3135
+
3136
+ call( "sequential",
3137
+ (options ? options : VImage::option())->
3138
+ set( "in", *this )->
3139
+ set( "out", &out ) );
3140
+
3141
+ return( out );
3142
+ }
3143
+
3144
+ VImage VImage::sharpen( VOption *options ) const
3145
+ {
3146
+ VImage out;
3147
+
3148
+ call( "sharpen",
3149
+ (options ? options : VImage::option())->
3150
+ set( "in", *this )->
3151
+ set( "out", &out ) );
3152
+
3153
+ return( out );
3154
+ }
3155
+
3156
+ VImage VImage::shrink( double hshrink, double vshrink, VOption *options ) const
3157
+ {
3158
+ VImage out;
3159
+
3160
+ call( "shrink",
3161
+ (options ? options : VImage::option())->
3162
+ set( "in", *this )->
3163
+ set( "out", &out )->
3164
+ set( "hshrink", hshrink )->
3165
+ set( "vshrink", vshrink ) );
3166
+
3167
+ return( out );
3168
+ }
3169
+
3170
+ VImage VImage::shrinkh( int hshrink, VOption *options ) const
3171
+ {
3172
+ VImage out;
3173
+
3174
+ call( "shrinkh",
3175
+ (options ? options : VImage::option())->
3176
+ set( "in", *this )->
3177
+ set( "out", &out )->
3178
+ set( "hshrink", hshrink ) );
3179
+
3180
+ return( out );
3181
+ }
3182
+
3183
+ VImage VImage::shrinkv( int vshrink, VOption *options ) const
3184
+ {
3185
+ VImage out;
3186
+
3187
+ call( "shrinkv",
3188
+ (options ? options : VImage::option())->
3189
+ set( "in", *this )->
3190
+ set( "out", &out )->
3191
+ set( "vshrink", vshrink ) );
3192
+
3193
+ return( out );
3194
+ }
3195
+
3196
+ VImage VImage::sign( VOption *options ) const
3197
+ {
3198
+ VImage out;
3199
+
3200
+ call( "sign",
3201
+ (options ? options : VImage::option())->
3202
+ set( "in", *this )->
3203
+ set( "out", &out ) );
3204
+
3205
+ return( out );
3206
+ }
3207
+
3208
+ VImage VImage::similarity( VOption *options ) const
3209
+ {
3210
+ VImage out;
3211
+
3212
+ call( "similarity",
3213
+ (options ? options : VImage::option())->
3214
+ set( "in", *this )->
3215
+ set( "out", &out ) );
3216
+
3217
+ return( out );
3218
+ }
3219
+
3220
+ VImage VImage::sines( int width, int height, VOption *options )
3221
+ {
3222
+ VImage out;
3223
+
3224
+ call( "sines",
3225
+ (options ? options : VImage::option())->
3226
+ set( "out", &out )->
3227
+ set( "width", width )->
3228
+ set( "height", height ) );
3229
+
3230
+ return( out );
3231
+ }
3232
+
3233
+ VImage VImage::smartcrop( int width, int height, VOption *options ) const
3234
+ {
3235
+ VImage out;
3236
+
3237
+ call( "smartcrop",
3238
+ (options ? options : VImage::option())->
3239
+ set( "input", *this )->
3240
+ set( "out", &out )->
3241
+ set( "width", width )->
3242
+ set( "height", height ) );
3243
+
3244
+ return( out );
3245
+ }
3246
+
3247
+ VImage VImage::sobel( VOption *options ) const
3248
+ {
3249
+ VImage out;
3250
+
3251
+ call( "sobel",
3252
+ (options ? options : VImage::option())->
3253
+ set( "in", *this )->
3254
+ set( "out", &out ) );
3255
+
3256
+ return( out );
3257
+ }
3258
+
3259
+ VImage VImage::spcor( VImage ref, VOption *options ) const
3260
+ {
3261
+ VImage out;
3262
+
3263
+ call( "spcor",
3264
+ (options ? options : VImage::option())->
3265
+ set( "in", *this )->
3266
+ set( "out", &out )->
3267
+ set( "ref", ref ) );
3268
+
3269
+ return( out );
3270
+ }
3271
+
3272
+ VImage VImage::spectrum( VOption *options ) const
3273
+ {
3274
+ VImage out;
3275
+
3276
+ call( "spectrum",
3277
+ (options ? options : VImage::option())->
3278
+ set( "in", *this )->
3279
+ set( "out", &out ) );
3280
+
3281
+ return( out );
3282
+ }
3283
+
3284
+ VImage VImage::stats( VOption *options ) const
3285
+ {
3286
+ VImage out;
3287
+
3288
+ call( "stats",
3289
+ (options ? options : VImage::option())->
3290
+ set( "in", *this )->
3291
+ set( "out", &out ) );
3292
+
3293
+ return( out );
3294
+ }
3295
+
3296
+ VImage VImage::stdif( int width, int height, VOption *options ) const
3297
+ {
3298
+ VImage out;
3299
+
3300
+ call( "stdif",
3301
+ (options ? options : VImage::option())->
3302
+ set( "in", *this )->
3303
+ set( "out", &out )->
3304
+ set( "width", width )->
3305
+ set( "height", height ) );
3306
+
3307
+ return( out );
3308
+ }
3309
+
3310
+ VImage VImage::subsample( int xfac, int yfac, VOption *options ) const
3311
+ {
3312
+ VImage out;
3313
+
3314
+ call( "subsample",
3315
+ (options ? options : VImage::option())->
3316
+ set( "input", *this )->
3317
+ set( "out", &out )->
3318
+ set( "xfac", xfac )->
3319
+ set( "yfac", yfac ) );
3320
+
3321
+ return( out );
3322
+ }
3323
+
3324
+ VImage VImage::subtract( VImage right, VOption *options ) const
3325
+ {
3326
+ VImage out;
3327
+
3328
+ call( "subtract",
3329
+ (options ? options : VImage::option())->
3330
+ set( "left", *this )->
3331
+ set( "out", &out )->
3332
+ set( "right", right ) );
3333
+
3334
+ return( out );
3335
+ }
3336
+
3337
+ VImage VImage::sum( std::vector<VImage> in, VOption *options )
3338
+ {
3339
+ VImage out;
3340
+
3341
+ call( "sum",
3342
+ (options ? options : VImage::option())->
3343
+ set( "out", &out )->
3344
+ set( "in", in ) );
3345
+
3346
+ return( out );
3347
+ }
3348
+
3349
+ VImage VImage::svgload( const char *filename, VOption *options )
3350
+ {
3351
+ VImage out;
3352
+
3353
+ call( "svgload",
3354
+ (options ? options : VImage::option())->
3355
+ set( "out", &out )->
3356
+ set( "filename", filename ) );
3357
+
3358
+ return( out );
3359
+ }
3360
+
3361
+ VImage VImage::svgload_buffer( VipsBlob *buffer, VOption *options )
3362
+ {
3363
+ VImage out;
3364
+
3365
+ call( "svgload_buffer",
3366
+ (options ? options : VImage::option())->
3367
+ set( "out", &out )->
3368
+ set( "buffer", buffer ) );
3369
+
3370
+ return( out );
3371
+ }
3372
+
3373
+ VImage VImage::svgload_source( VSource source, VOption *options )
3374
+ {
3375
+ VImage out;
3376
+
3377
+ call( "svgload_source",
3378
+ (options ? options : VImage::option())->
3379
+ set( "out", &out )->
3380
+ set( "source", source ) );
3381
+
3382
+ return( out );
3383
+ }
3384
+
3385
+ VImage VImage::switch_image( std::vector<VImage> tests, VOption *options )
3386
+ {
3387
+ VImage out;
3388
+
3389
+ call( "switch",
3390
+ (options ? options : VImage::option())->
3391
+ set( "out", &out )->
3392
+ set( "tests", tests ) );
3393
+
3394
+ return( out );
3395
+ }
3396
+
3397
+ void VImage::system( const char *cmd_format, VOption *options )
3398
+ {
3399
+ call( "system",
3400
+ (options ? options : VImage::option())->
3401
+ set( "cmd_format", cmd_format ) );
3402
+ }
3403
+
3404
+ VImage VImage::text( const char *text, VOption *options )
3405
+ {
3406
+ VImage out;
3407
+
3408
+ call( "text",
3409
+ (options ? options : VImage::option())->
3410
+ set( "out", &out )->
3411
+ set( "text", text ) );
3412
+
3413
+ return( out );
3414
+ }
3415
+
3416
+ VImage VImage::thumbnail( const char *filename, int width, VOption *options )
3417
+ {
3418
+ VImage out;
3419
+
3420
+ call( "thumbnail",
3421
+ (options ? options : VImage::option())->
3422
+ set( "out", &out )->
3423
+ set( "filename", filename )->
3424
+ set( "width", width ) );
3425
+
3426
+ return( out );
3427
+ }
3428
+
3429
+ VImage VImage::thumbnail_buffer( VipsBlob *buffer, int width, VOption *options )
3430
+ {
3431
+ VImage out;
3432
+
3433
+ call( "thumbnail_buffer",
3434
+ (options ? options : VImage::option())->
3435
+ set( "out", &out )->
3436
+ set( "buffer", buffer )->
3437
+ set( "width", width ) );
3438
+
3439
+ return( out );
3440
+ }
3441
+
3442
+ VImage VImage::thumbnail_image( int width, VOption *options ) const
3443
+ {
3444
+ VImage out;
3445
+
3446
+ call( "thumbnail_image",
3447
+ (options ? options : VImage::option())->
3448
+ set( "in", *this )->
3449
+ set( "out", &out )->
3450
+ set( "width", width ) );
3451
+
3452
+ return( out );
3453
+ }
3454
+
3455
+ VImage VImage::thumbnail_source( VSource source, int width, VOption *options )
3456
+ {
3457
+ VImage out;
3458
+
3459
+ call( "thumbnail_source",
3460
+ (options ? options : VImage::option())->
3461
+ set( "out", &out )->
3462
+ set( "source", source )->
3463
+ set( "width", width ) );
3464
+
3465
+ return( out );
3466
+ }
3467
+
3468
+ VImage VImage::tiffload( const char *filename, VOption *options )
3469
+ {
3470
+ VImage out;
3471
+
3472
+ call( "tiffload",
3473
+ (options ? options : VImage::option())->
3474
+ set( "out", &out )->
3475
+ set( "filename", filename ) );
3476
+
3477
+ return( out );
3478
+ }
3479
+
3480
+ VImage VImage::tiffload_buffer( VipsBlob *buffer, VOption *options )
3481
+ {
3482
+ VImage out;
3483
+
3484
+ call( "tiffload_buffer",
3485
+ (options ? options : VImage::option())->
3486
+ set( "out", &out )->
3487
+ set( "buffer", buffer ) );
3488
+
3489
+ return( out );
3490
+ }
3491
+
3492
+ VImage VImage::tiffload_source( VSource source, VOption *options )
3493
+ {
3494
+ VImage out;
3495
+
3496
+ call( "tiffload_source",
3497
+ (options ? options : VImage::option())->
3498
+ set( "out", &out )->
3499
+ set( "source", source ) );
3500
+
3501
+ return( out );
3502
+ }
3503
+
3504
+ void VImage::tiffsave( const char *filename, VOption *options ) const
3505
+ {
3506
+ call( "tiffsave",
3507
+ (options ? options : VImage::option())->
3508
+ set( "in", *this )->
3509
+ set( "filename", filename ) );
3510
+ }
3511
+
3512
+ VipsBlob *VImage::tiffsave_buffer( VOption *options ) const
3513
+ {
3514
+ VipsBlob *buffer;
3515
+
3516
+ call( "tiffsave_buffer",
3517
+ (options ? options : VImage::option())->
3518
+ set( "in", *this )->
3519
+ set( "buffer", &buffer ) );
3520
+
3521
+ return( buffer );
3522
+ }
3523
+
3524
+ VImage VImage::tilecache( VOption *options ) const
3525
+ {
3526
+ VImage out;
3527
+
3528
+ call( "tilecache",
3529
+ (options ? options : VImage::option())->
3530
+ set( "in", *this )->
3531
+ set( "out", &out ) );
3532
+
3533
+ return( out );
3534
+ }
3535
+
3536
+ VImage VImage::tonelut( VOption *options )
3537
+ {
3538
+ VImage out;
3539
+
3540
+ call( "tonelut",
3541
+ (options ? options : VImage::option())->
3542
+ set( "out", &out ) );
3543
+
3544
+ return( out );
3545
+ }
3546
+
3547
+ VImage VImage::transpose3d( VOption *options ) const
3548
+ {
3549
+ VImage out;
3550
+
3551
+ call( "transpose3d",
3552
+ (options ? options : VImage::option())->
3553
+ set( "in", *this )->
3554
+ set( "out", &out ) );
3555
+
3556
+ return( out );
3557
+ }
3558
+
3559
+ VImage VImage::unpremultiply( VOption *options ) const
3560
+ {
3561
+ VImage out;
3562
+
3563
+ call( "unpremultiply",
3564
+ (options ? options : VImage::option())->
3565
+ set( "in", *this )->
3566
+ set( "out", &out ) );
3567
+
3568
+ return( out );
3569
+ }
3570
+
3571
+ VImage VImage::vipsload( const char *filename, VOption *options )
3572
+ {
3573
+ VImage out;
3574
+
3575
+ call( "vipsload",
3576
+ (options ? options : VImage::option())->
3577
+ set( "out", &out )->
3578
+ set( "filename", filename ) );
3579
+
3580
+ return( out );
3581
+ }
3582
+
3583
+ VImage VImage::vipsload_source( VSource source, VOption *options )
3584
+ {
3585
+ VImage out;
3586
+
3587
+ call( "vipsload_source",
3588
+ (options ? options : VImage::option())->
3589
+ set( "out", &out )->
3590
+ set( "source", source ) );
3591
+
3592
+ return( out );
3593
+ }
3594
+
3595
+ void VImage::vipssave( const char *filename, VOption *options ) const
3596
+ {
3597
+ call( "vipssave",
3598
+ (options ? options : VImage::option())->
3599
+ set( "in", *this )->
3600
+ set( "filename", filename ) );
3601
+ }
3602
+
3603
+ void VImage::vipssave_target( VTarget target, VOption *options ) const
3604
+ {
3605
+ call( "vipssave_target",
3606
+ (options ? options : VImage::option())->
3607
+ set( "in", *this )->
3608
+ set( "target", target ) );
3609
+ }
3610
+
3611
+ VImage VImage::webpload( const char *filename, VOption *options )
3612
+ {
3613
+ VImage out;
3614
+
3615
+ call( "webpload",
3616
+ (options ? options : VImage::option())->
3617
+ set( "out", &out )->
3618
+ set( "filename", filename ) );
3619
+
3620
+ return( out );
3621
+ }
3622
+
3623
+ VImage VImage::webpload_buffer( VipsBlob *buffer, VOption *options )
3624
+ {
3625
+ VImage out;
3626
+
3627
+ call( "webpload_buffer",
3628
+ (options ? options : VImage::option())->
3629
+ set( "out", &out )->
3630
+ set( "buffer", buffer ) );
3631
+
3632
+ return( out );
3633
+ }
3634
+
3635
+ VImage VImage::webpload_source( VSource source, VOption *options )
3636
+ {
3637
+ VImage out;
3638
+
3639
+ call( "webpload_source",
3640
+ (options ? options : VImage::option())->
3641
+ set( "out", &out )->
3642
+ set( "source", source ) );
3643
+
3644
+ return( out );
3645
+ }
3646
+
3647
+ void VImage::webpsave( const char *filename, VOption *options ) const
3648
+ {
3649
+ call( "webpsave",
3650
+ (options ? options : VImage::option())->
3651
+ set( "in", *this )->
3652
+ set( "filename", filename ) );
3653
+ }
3654
+
3655
+ VipsBlob *VImage::webpsave_buffer( VOption *options ) const
3656
+ {
3657
+ VipsBlob *buffer;
3658
+
3659
+ call( "webpsave_buffer",
3660
+ (options ? options : VImage::option())->
3661
+ set( "in", *this )->
3662
+ set( "buffer", &buffer ) );
3663
+
3664
+ return( buffer );
3665
+ }
3666
+
3667
+ void VImage::webpsave_target( VTarget target, VOption *options ) const
3668
+ {
3669
+ call( "webpsave_target",
3670
+ (options ? options : VImage::option())->
3671
+ set( "in", *this )->
3672
+ set( "target", target ) );
3673
+ }
3674
+
3675
+ VImage VImage::worley( int width, int height, VOption *options )
3676
+ {
3677
+ VImage out;
3678
+
3679
+ call( "worley",
3680
+ (options ? options : VImage::option())->
3681
+ set( "out", &out )->
3682
+ set( "width", width )->
3683
+ set( "height", height ) );
3684
+
3685
+ return( out );
3686
+ }
3687
+
3688
+ VImage VImage::wrap( VOption *options ) const
3689
+ {
3690
+ VImage out;
3691
+
3692
+ call( "wrap",
3693
+ (options ? options : VImage::option())->
3694
+ set( "in", *this )->
3695
+ set( "out", &out ) );
3696
+
3697
+ return( out );
3698
+ }
3699
+
3700
+ VImage VImage::xyz( int width, int height, VOption *options )
3701
+ {
3702
+ VImage out;
3703
+
3704
+ call( "xyz",
3705
+ (options ? options : VImage::option())->
3706
+ set( "out", &out )->
3707
+ set( "width", width )->
3708
+ set( "height", height ) );
3709
+
3710
+ return( out );
3711
+ }
3712
+
3713
+ VImage VImage::zone( int width, int height, VOption *options )
3714
+ {
3715
+ VImage out;
3716
+
3717
+ call( "zone",
3718
+ (options ? options : VImage::option())->
3719
+ set( "out", &out )->
3720
+ set( "width", width )->
3721
+ set( "height", height ) );
3722
+
3723
+ return( out );
3724
+ }
3725
+
3726
+ VImage VImage::zoom( int xfac, int yfac, VOption *options ) const
3727
+ {
3728
+ VImage out;
3729
+
3730
+ call( "zoom",
3731
+ (options ? options : VImage::option())->
3732
+ set( "input", *this )->
3733
+ set( "out", &out )->
3734
+ set( "xfac", xfac )->
3735
+ set( "yfac", yfac ) );
3736
+
3737
+ return( out );
3738
+ }