@photivra/engine 0.6.0 → 1.0.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 (749) hide show
  1. package/AGENTS.md +674 -0
  2. package/CHANGELOG.md +186 -0
  3. package/CITATION.cff +1 -1
  4. package/CONTRIBUTING.md +76 -0
  5. package/DCO +33 -0
  6. package/NODE_SUPPORT.md +37 -0
  7. package/NOTICE +2 -0
  8. package/README.md +138 -71
  9. package/SECURITY.md +55 -0
  10. package/THIRD_PARTY.md +63 -0
  11. package/dist/camera/equivalent-focal-length.d.ts +9 -0
  12. package/dist/camera/equivalent-focal-length.d.ts.map +1 -1
  13. package/dist/camera/equivalent-focal-length.js +9 -0
  14. package/dist/camera/equivalent-focal-length.js.map +1 -1
  15. package/dist/camera/field-of-view.d.ts +13 -0
  16. package/dist/camera/field-of-view.d.ts.map +1 -1
  17. package/dist/camera/field-of-view.js +13 -0
  18. package/dist/camera/field-of-view.js.map +1 -1
  19. package/dist/camera/projected-object-size.d.ts +8 -0
  20. package/dist/camera/projected-object-size.d.ts.map +1 -1
  21. package/dist/camera/projected-object-size.js +8 -0
  22. package/dist/camera/projected-object-size.js.map +1 -1
  23. package/dist/capture/capture-export-metadata.d.ts +60 -0
  24. package/dist/capture/capture-export-metadata.d.ts.map +1 -0
  25. package/dist/capture/capture-export-metadata.js +62 -0
  26. package/dist/capture/capture-export-metadata.js.map +1 -0
  27. package/dist/capture/environment-raw-producer.d.ts +55 -0
  28. package/dist/capture/environment-raw-producer.d.ts.map +1 -0
  29. package/dist/capture/environment-raw-producer.js +88 -0
  30. package/dist/capture/environment-raw-producer.js.map +1 -0
  31. package/dist/capture/export-jpeg.d.ts +12 -0
  32. package/dist/capture/export-jpeg.d.ts.map +1 -0
  33. package/dist/capture/export-jpeg.js +126 -0
  34. package/dist/capture/export-jpeg.js.map +1 -0
  35. package/dist/capture/export-tiff.d.ts +45 -0
  36. package/dist/capture/export-tiff.d.ts.map +1 -0
  37. package/dist/capture/export-tiff.js +129 -0
  38. package/dist/capture/export-tiff.js.map +1 -0
  39. package/dist/capture/focus-control.d.ts +210 -0
  40. package/dist/capture/focus-control.d.ts.map +1 -0
  41. package/dist/capture/focus-control.js +664 -0
  42. package/dist/capture/focus-control.js.map +1 -0
  43. package/dist/capture/linear-encoding.d.ts +59 -0
  44. package/dist/capture/linear-encoding.d.ts.map +1 -0
  45. package/dist/capture/linear-encoding.js +98 -0
  46. package/dist/capture/linear-encoding.js.map +1 -0
  47. package/dist/capture/photographic-export.d.ts +135 -0
  48. package/dist/capture/photographic-export.d.ts.map +1 -0
  49. package/dist/capture/photographic-export.js +273 -0
  50. package/dist/capture/photographic-export.js.map +1 -0
  51. package/dist/capture/raw-frame-limits.d.ts +12 -0
  52. package/dist/capture/raw-frame-limits.d.ts.map +1 -0
  53. package/dist/capture/raw-frame-limits.js +13 -0
  54. package/dist/capture/raw-frame-limits.js.map +1 -0
  55. package/dist/capture/raw-frame-reconstruction.d.ts +48 -0
  56. package/dist/capture/raw-frame-reconstruction.d.ts.map +1 -0
  57. package/dist/capture/raw-frame-reconstruction.js +146 -0
  58. package/dist/capture/raw-frame-reconstruction.js.map +1 -0
  59. package/dist/capture/release-sequence.d.ts +120 -0
  60. package/dist/capture/release-sequence.d.ts.map +1 -0
  61. package/dist/capture/release-sequence.js +446 -0
  62. package/dist/capture/release-sequence.js.map +1 -0
  63. package/dist/capture/sensor-raw-frame.d.ts +34 -0
  64. package/dist/capture/sensor-raw-frame.d.ts.map +1 -0
  65. package/dist/capture/sensor-raw-frame.js +106 -0
  66. package/dist/capture/sensor-raw-frame.js.map +1 -0
  67. package/dist/capture/sensor-raw-producer.d.ts +51 -0
  68. package/dist/capture/sensor-raw-producer.d.ts.map +1 -0
  69. package/dist/capture/sensor-raw-producer.js +235 -0
  70. package/dist/capture/sensor-raw-producer.js.map +1 -0
  71. package/dist/capture/simulated-capture.d.ts +125 -0
  72. package/dist/capture/simulated-capture.d.ts.map +1 -0
  73. package/dist/capture/simulated-capture.js +248 -0
  74. package/dist/capture/simulated-capture.js.map +1 -0
  75. package/dist/color/capture-color.d.ts +73 -0
  76. package/dist/color/capture-color.d.ts.map +1 -0
  77. package/dist/color/capture-color.js +145 -0
  78. package/dist/color/capture-color.js.map +1 -0
  79. package/dist/color/sensor-color-development.d.ts +23 -0
  80. package/dist/color/sensor-color-development.d.ts.map +1 -0
  81. package/dist/color/sensor-color-development.js +56 -0
  82. package/dist/color/sensor-color-development.js.map +1 -0
  83. package/dist/color/white-balance.d.ts +175 -0
  84. package/dist/color/white-balance.d.ts.map +1 -0
  85. package/dist/color/white-balance.js +606 -0
  86. package/dist/color/white-balance.js.map +1 -0
  87. package/dist/composition/image-formation-plan.d.ts +481 -0
  88. package/dist/composition/image-formation-plan.d.ts.map +1 -0
  89. package/dist/composition/image-formation-plan.js +2499 -0
  90. package/dist/composition/image-formation-plan.js.map +1 -0
  91. package/dist/composition/plan-consumer.d.ts +53 -0
  92. package/dist/composition/plan-consumer.d.ts.map +1 -0
  93. package/dist/composition/plan-consumer.js +119 -0
  94. package/dist/composition/plan-consumer.js.map +1 -0
  95. package/dist/core/calculation-result.d.ts.map +1 -1
  96. package/dist/core/calculation-result.js +6 -0
  97. package/dist/core/calculation-result.js.map +1 -1
  98. package/dist/core/canonical-json.d.ts +18 -0
  99. package/dist/core/canonical-json.d.ts.map +1 -0
  100. package/dist/core/canonical-json.js +44 -0
  101. package/dist/core/canonical-json.js.map +1 -0
  102. package/dist/core/configuration-error.d.ts +6 -0
  103. package/dist/core/configuration-error.d.ts.map +1 -1
  104. package/dist/core/configuration-error.js +6 -0
  105. package/dist/core/configuration-error.js.map +1 -1
  106. package/dist/core/evidence-provenance.d.ts +6 -0
  107. package/dist/core/evidence-provenance.d.ts.map +1 -1
  108. package/dist/core/evidence-provenance.js +7 -0
  109. package/dist/core/evidence-provenance.js.map +1 -1
  110. package/dist/core/image-formation.d.ts +9 -3
  111. package/dist/core/image-formation.d.ts.map +1 -1
  112. package/dist/core/image-formation.js +29 -5
  113. package/dist/core/image-formation.js.map +1 -1
  114. package/dist/core/owned-data.d.ts +25 -0
  115. package/dist/core/owned-data.d.ts.map +1 -0
  116. package/dist/core/owned-data.js +34 -0
  117. package/dist/core/owned-data.js.map +1 -0
  118. package/dist/core/record-validation.d.ts +17 -0
  119. package/dist/core/record-validation.d.ts.map +1 -0
  120. package/dist/core/record-validation.js +44 -0
  121. package/dist/core/record-validation.js.map +1 -0
  122. package/dist/core/scientific-assurance.d.ts +101 -0
  123. package/dist/core/scientific-assurance.d.ts.map +1 -0
  124. package/dist/core/scientific-assurance.js +301 -0
  125. package/dist/core/scientific-assurance.js.map +1 -0
  126. package/dist/core/spectral-composition.d.ts +106 -0
  127. package/dist/core/spectral-composition.d.ts.map +1 -0
  128. package/dist/core/spectral-composition.js +334 -0
  129. package/dist/core/spectral-composition.js.map +1 -0
  130. package/dist/core/spectral.d.ts +34 -0
  131. package/dist/core/spectral.d.ts.map +1 -0
  132. package/dist/core/spectral.js +57 -0
  133. package/dist/core/spectral.js.map +1 -0
  134. package/dist/core/validation.d.ts +6 -0
  135. package/dist/core/validation.d.ts.map +1 -1
  136. package/dist/core/validation.js +6 -0
  137. package/dist/core/validation.js.map +1 -1
  138. package/dist/core/version.d.ts +14 -0
  139. package/dist/core/version.d.ts.map +1 -0
  140. package/dist/core/version.js +15 -0
  141. package/dist/core/version.js.map +1 -0
  142. package/dist/equipment/exposure-capabilities.d.ts +125 -0
  143. package/dist/equipment/exposure-capabilities.d.ts.map +1 -0
  144. package/dist/equipment/exposure-capabilities.js +391 -0
  145. package/dist/equipment/exposure-capabilities.js.map +1 -0
  146. package/dist/equipment/generic-tier-assets.d.ts +82 -0
  147. package/dist/equipment/generic-tier-assets.d.ts.map +1 -0
  148. package/dist/equipment/generic-tier-assets.js +119 -0
  149. package/dist/equipment/generic-tier-assets.js.map +1 -0
  150. package/dist/equipment/generic-tier-presets.d.ts +57 -0
  151. package/dist/equipment/generic-tier-presets.d.ts.map +1 -0
  152. package/dist/equipment/generic-tier-presets.js +122 -0
  153. package/dist/equipment/generic-tier-presets.js.map +1 -0
  154. package/dist/equipment/iso-capabilities.d.ts +143 -0
  155. package/dist/equipment/iso-capabilities.d.ts.map +1 -0
  156. package/dist/equipment/iso-capabilities.js +578 -0
  157. package/dist/equipment/iso-capabilities.js.map +1 -0
  158. package/dist/equipment/metering-capabilities.d.ts +58 -0
  159. package/dist/equipment/metering-capabilities.d.ts.map +1 -0
  160. package/dist/equipment/metering-capabilities.js +151 -0
  161. package/dist/equipment/metering-capabilities.js.map +1 -0
  162. package/dist/equipment/release-capabilities.d.ts +33 -0
  163. package/dist/equipment/release-capabilities.d.ts.map +1 -0
  164. package/dist/equipment/release-capabilities.js +176 -0
  165. package/dist/equipment/release-capabilities.js.map +1 -0
  166. package/dist/exposure/exposure-duration-control.d.ts +72 -0
  167. package/dist/exposure/exposure-duration-control.d.ts.map +1 -0
  168. package/dist/exposure/exposure-duration-control.js +161 -0
  169. package/dist/exposure/exposure-duration-control.js.map +1 -0
  170. package/dist/exposure/exposure-mode-resolver.d.ts +637 -0
  171. package/dist/exposure/exposure-mode-resolver.d.ts.map +1 -0
  172. package/dist/exposure/exposure-mode-resolver.js +1905 -0
  173. package/dist/exposure/exposure-mode-resolver.js.map +1 -0
  174. package/dist/exposure/exposure.d.ts +8 -0
  175. package/dist/exposure/exposure.d.ts.map +1 -1
  176. package/dist/exposure/exposure.js +8 -0
  177. package/dist/exposure/exposure.js.map +1 -1
  178. package/dist/exposure/flash.d.ts +179 -0
  179. package/dist/exposure/flash.d.ts.map +1 -0
  180. package/dist/exposure/flash.js +644 -0
  181. package/dist/exposure/flash.js.map +1 -0
  182. package/dist/exposure/metering-scene-radiance.d.ts +72 -0
  183. package/dist/exposure/metering-scene-radiance.d.ts.map +1 -0
  184. package/dist/exposure/metering-scene-radiance.js +222 -0
  185. package/dist/exposure/metering-scene-radiance.js.map +1 -0
  186. package/dist/exposure/metering-target.d.ts +67 -0
  187. package/dist/exposure/metering-target.d.ts.map +1 -0
  188. package/dist/exposure/metering-target.js +265 -0
  189. package/dist/exposure/metering-target.js.map +1 -0
  190. package/dist/exposure/metering-temporal.d.ts +76 -0
  191. package/dist/exposure/metering-temporal.d.ts.map +1 -0
  192. package/dist/exposure/metering-temporal.js +210 -0
  193. package/dist/exposure/metering-temporal.js.map +1 -0
  194. package/dist/exposure/metering.d.ts +124 -0
  195. package/dist/exposure/metering.d.ts.map +1 -0
  196. package/dist/exposure/metering.js +422 -0
  197. package/dist/exposure/metering.js.map +1 -0
  198. package/dist/exposure/program-line.d.ts +29 -0
  199. package/dist/exposure/program-line.d.ts.map +1 -0
  200. package/dist/exposure/program-line.js +126 -0
  201. package/dist/exposure/program-line.js.map +1 -0
  202. package/dist/index.d.ts +87 -6
  203. package/dist/index.d.ts.map +1 -1
  204. package/dist/index.js +85 -6
  205. package/dist/index.js.map +1 -1
  206. package/dist/motion/camera-rotation.d.ts +16 -0
  207. package/dist/motion/camera-rotation.d.ts.map +1 -1
  208. package/dist/motion/camera-rotation.js +16 -0
  209. package/dist/motion/camera-rotation.js.map +1 -1
  210. package/dist/motion/capture-rotation-inverse-mapping.d.ts +13 -0
  211. package/dist/motion/capture-rotation-inverse-mapping.d.ts.map +1 -1
  212. package/dist/motion/capture-rotation-inverse-mapping.js +13 -0
  213. package/dist/motion/capture-rotation-inverse-mapping.js.map +1 -1
  214. package/dist/motion/capture-rotation-temporal-quadrature.d.ts +15 -0
  215. package/dist/motion/capture-rotation-temporal-quadrature.d.ts.map +1 -1
  216. package/dist/motion/capture-rotation-temporal-quadrature.js +15 -0
  217. package/dist/motion/capture-rotation-temporal-quadrature.js.map +1 -1
  218. package/dist/motion/capture-rotation-trajectory.d.ts +15 -0
  219. package/dist/motion/capture-rotation-trajectory.d.ts.map +1 -1
  220. package/dist/motion/capture-rotation-trajectory.js +15 -0
  221. package/dist/motion/capture-rotation-trajectory.js.map +1 -1
  222. package/dist/motion/capture-translation-parallax-temporal-quadrature.d.ts +119 -0
  223. package/dist/motion/capture-translation-parallax-temporal-quadrature.d.ts.map +1 -0
  224. package/dist/motion/capture-translation-parallax-temporal-quadrature.js +263 -0
  225. package/dist/motion/capture-translation-parallax-temporal-quadrature.js.map +1 -0
  226. package/dist/motion/extended-object-projection.d.ts +175 -0
  227. package/dist/motion/extended-object-projection.d.ts.map +1 -0
  228. package/dist/motion/extended-object-projection.js +402 -0
  229. package/dist/motion/extended-object-projection.js.map +1 -0
  230. package/dist/motion/projected-motion.d.ts +11 -0
  231. package/dist/motion/projected-motion.d.ts.map +1 -1
  232. package/dist/motion/projected-motion.js +11 -0
  233. package/dist/motion/projected-motion.js.map +1 -1
  234. package/dist/optics/aperture.d.ts +9 -0
  235. package/dist/optics/aperture.d.ts.map +1 -1
  236. package/dist/optics/aperture.js +9 -0
  237. package/dist/optics/aperture.js.map +1 -1
  238. package/dist/optics/circle-of-confusion.d.ts +8 -0
  239. package/dist/optics/circle-of-confusion.d.ts.map +1 -1
  240. package/dist/optics/circle-of-confusion.js +8 -0
  241. package/dist/optics/circle-of-confusion.js.map +1 -1
  242. package/dist/optics/complex-pupil-psf.d.ts +128 -0
  243. package/dist/optics/complex-pupil-psf.d.ts.map +1 -0
  244. package/dist/optics/complex-pupil-psf.js +462 -0
  245. package/dist/optics/complex-pupil-psf.js.map +1 -0
  246. package/dist/optics/depth-of-field.d.ts +18 -0
  247. package/dist/optics/depth-of-field.d.ts.map +1 -1
  248. package/dist/optics/depth-of-field.js +29 -4
  249. package/dist/optics/depth-of-field.js.map +1 -1
  250. package/dist/optics/diffraction.d.ts +8 -0
  251. package/dist/optics/diffraction.d.ts.map +1 -1
  252. package/dist/optics/diffraction.js +8 -0
  253. package/dist/optics/diffraction.js.map +1 -1
  254. package/dist/optics/focus-breathing.d.ts +13 -0
  255. package/dist/optics/focus-breathing.d.ts.map +1 -1
  256. package/dist/optics/focus-breathing.js +13 -0
  257. package/dist/optics/focus-breathing.js.map +1 -1
  258. package/dist/optics/focus-state.d.ts +47 -0
  259. package/dist/optics/focus-state.d.ts.map +1 -0
  260. package/dist/optics/focus-state.js +78 -0
  261. package/dist/optics/focus-state.js.map +1 -0
  262. package/dist/optics/front-of-lens-filter.d.ts +114 -0
  263. package/dist/optics/front-of-lens-filter.d.ts.map +1 -0
  264. package/dist/optics/front-of-lens-filter.js +468 -0
  265. package/dist/optics/front-of-lens-filter.js.map +1 -0
  266. package/dist/optics/illumination-vignetting.d.ts +9 -0
  267. package/dist/optics/illumination-vignetting.d.ts.map +1 -1
  268. package/dist/optics/illumination-vignetting.js +9 -0
  269. package/dist/optics/illumination-vignetting.js.map +1 -1
  270. package/dist/optics/lateral-chromatic-aberration.d.ts +11 -0
  271. package/dist/optics/lateral-chromatic-aberration.d.ts.map +1 -1
  272. package/dist/optics/lateral-chromatic-aberration.js +11 -0
  273. package/dist/optics/lateral-chromatic-aberration.js.map +1 -1
  274. package/dist/optics/lens-psf-profile.d.ts +217 -0
  275. package/dist/optics/lens-psf-profile.d.ts.map +1 -0
  276. package/dist/optics/lens-psf-profile.js +823 -0
  277. package/dist/optics/lens-psf-profile.js.map +1 -0
  278. package/dist/optics/polygon-diffraction.d.ts +67 -0
  279. package/dist/optics/polygon-diffraction.d.ts.map +1 -0
  280. package/dist/optics/polygon-diffraction.js +145 -0
  281. package/dist/optics/polygon-diffraction.js.map +1 -0
  282. package/dist/optics/profile-contract.d.ts +42 -0
  283. package/dist/optics/profile-contract.d.ts.map +1 -0
  284. package/dist/optics/profile-contract.js +92 -0
  285. package/dist/optics/profile-contract.js.map +1 -0
  286. package/dist/optics/psf-foundation.d.ts +16 -3
  287. package/dist/optics/psf-foundation.d.ts.map +1 -1
  288. package/dist/optics/psf-foundation.js +28 -15
  289. package/dist/optics/psf-foundation.js.map +1 -1
  290. package/dist/optics/radial-distortion.d.ts +18 -0
  291. package/dist/optics/radial-distortion.d.ts.map +1 -1
  292. package/dist/optics/radial-distortion.js +18 -0
  293. package/dist/optics/radial-distortion.js.map +1 -1
  294. package/dist/optics/scene-to-sensor-irradiance.d.ts +213 -0
  295. package/dist/optics/scene-to-sensor-irradiance.d.ts.map +1 -0
  296. package/dist/optics/scene-to-sensor-irradiance.js +662 -0
  297. package/dist/optics/scene-to-sensor-irradiance.js.map +1 -0
  298. package/dist/optics/scene-to-sensor-quadrature.d.ts +63 -0
  299. package/dist/optics/scene-to-sensor-quadrature.d.ts.map +1 -0
  300. package/dist/optics/scene-to-sensor-quadrature.js +82 -0
  301. package/dist/optics/scene-to-sensor-quadrature.js.map +1 -0
  302. package/dist/optics/sensor-environment-query.d.ts +60 -0
  303. package/dist/optics/sensor-environment-query.d.ts.map +1 -0
  304. package/dist/optics/sensor-environment-query.js +50 -0
  305. package/dist/optics/sensor-environment-query.js.map +1 -0
  306. package/dist/optics/sensor-psf-quadrature.d.ts +70 -0
  307. package/dist/optics/sensor-psf-quadrature.d.ts.map +1 -0
  308. package/dist/optics/sensor-psf-quadrature.js +101 -0
  309. package/dist/optics/sensor-psf-quadrature.js.map +1 -0
  310. package/dist/optics/sensor-psf-support.d.ts +20 -0
  311. package/dist/optics/sensor-psf-support.d.ts.map +1 -0
  312. package/dist/optics/sensor-psf-support.js +13 -0
  313. package/dist/optics/sensor-psf-support.js.map +1 -0
  314. package/dist/optics/stray-light.d.ts +91 -0
  315. package/dist/optics/stray-light.d.ts.map +1 -0
  316. package/dist/optics/stray-light.js +110 -0
  317. package/dist/optics/stray-light.js.map +1 -0
  318. package/dist/optics/thin-lens.d.ts +8 -0
  319. package/dist/optics/thin-lens.d.ts.map +1 -1
  320. package/dist/optics/thin-lens.js +8 -0
  321. package/dist/optics/thin-lens.js.map +1 -1
  322. package/dist/output/capture-corrected-sdr.d.ts +49 -0
  323. package/dist/output/capture-corrected-sdr.d.ts.map +1 -0
  324. package/dist/output/capture-corrected-sdr.js +149 -0
  325. package/dist/output/capture-corrected-sdr.js.map +1 -0
  326. package/dist/output/capture-geometry.d.ts.map +1 -1
  327. package/dist/output/capture-geometry.js +8 -0
  328. package/dist/output/capture-geometry.js.map +1 -1
  329. package/dist/output/capture-sdr.d.ts +49 -0
  330. package/dist/output/capture-sdr.d.ts.map +1 -0
  331. package/dist/output/capture-sdr.js +90 -0
  332. package/dist/output/capture-sdr.js.map +1 -0
  333. package/dist/output/crop.d.ts +6 -0
  334. package/dist/output/crop.d.ts.map +1 -1
  335. package/dist/output/crop.js +6 -0
  336. package/dist/output/crop.js.map +1 -1
  337. package/dist/output/geometric-transforms.d.ts +137 -0
  338. package/dist/output/geometric-transforms.d.ts.map +1 -0
  339. package/dist/output/geometric-transforms.js +225 -0
  340. package/dist/output/geometric-transforms.js.map +1 -0
  341. package/dist/output/lens-corrections.d.ts +121 -0
  342. package/dist/output/lens-corrections.d.ts.map +1 -0
  343. package/dist/output/lens-corrections.js +210 -0
  344. package/dist/output/lens-corrections.js.map +1 -0
  345. package/dist/output/sdr-rendering.d.ts +81 -0
  346. package/dist/output/sdr-rendering.d.ts.map +1 -0
  347. package/dist/output/sdr-rendering.js +106 -0
  348. package/dist/output/sdr-rendering.js.map +1 -0
  349. package/dist/output/subject-framing-crop.d.ts +8 -0
  350. package/dist/output/subject-framing-crop.d.ts.map +1 -1
  351. package/dist/output/subject-framing-crop.js +8 -0
  352. package/dist/output/subject-framing-crop.js.map +1 -1
  353. package/dist/schema/camera.d.ts +6 -0
  354. package/dist/schema/camera.d.ts.map +1 -1
  355. package/dist/schema/illumination-spectral.d.ts +51 -0
  356. package/dist/schema/illumination-spectral.d.ts.map +1 -0
  357. package/dist/schema/illumination-spectral.js +132 -0
  358. package/dist/schema/illumination-spectral.js.map +1 -0
  359. package/dist/schema/illumination-temporal.d.ts +156 -0
  360. package/dist/schema/illumination-temporal.d.ts.map +1 -0
  361. package/dist/schema/illumination-temporal.js +554 -0
  362. package/dist/schema/illumination-temporal.js.map +1 -0
  363. package/dist/schema/illumination.d.ts +138 -0
  364. package/dist/schema/illumination.d.ts.map +1 -0
  365. package/dist/schema/illumination.js +483 -0
  366. package/dist/schema/illumination.js.map +1 -0
  367. package/dist/schema/scene-radiance-temporal.d.ts +107 -0
  368. package/dist/schema/scene-radiance-temporal.d.ts.map +1 -0
  369. package/dist/schema/scene-radiance-temporal.js +259 -0
  370. package/dist/schema/scene-radiance-temporal.js.map +1 -0
  371. package/dist/schema/scene-radiance.d.ts +185 -0
  372. package/dist/schema/scene-radiance.d.ts.map +1 -0
  373. package/dist/schema/scene-radiance.js +535 -0
  374. package/dist/schema/scene-radiance.js.map +1 -0
  375. package/dist/schema/scene.d.ts +7 -0
  376. package/dist/schema/scene.d.ts.map +1 -1
  377. package/dist/schema/validation.d.ts.map +1 -1
  378. package/dist/schema/validation.js +7 -0
  379. package/dist/schema/validation.js.map +1 -1
  380. package/dist/sensor/accumulated-charge.d.ts +199 -0
  381. package/dist/sensor/accumulated-charge.d.ts.map +1 -0
  382. package/dist/sensor/accumulated-charge.js +450 -0
  383. package/dist/sensor/accumulated-charge.js.map +1 -0
  384. package/dist/sensor/architecture.d.ts +48 -13
  385. package/dist/sensor/architecture.d.ts.map +1 -1
  386. package/dist/sensor/architecture.js +58 -16
  387. package/dist/sensor/architecture.js.map +1 -1
  388. package/dist/sensor/camera-saturation-capacity.d.ts +138 -0
  389. package/dist/sensor/camera-saturation-capacity.d.ts.map +1 -0
  390. package/dist/sensor/camera-saturation-capacity.js +356 -0
  391. package/dist/sensor/camera-saturation-capacity.js.map +1 -0
  392. package/dist/sensor/capture-color-sampling-binding.d.ts +1 -0
  393. package/dist/sensor/capture-color-sampling-binding.d.ts.map +1 -1
  394. package/dist/sensor/capture-color-sampling-binding.js +14 -0
  395. package/dist/sensor/capture-color-sampling-binding.js.map +1 -1
  396. package/dist/sensor/capture-mode-timing.d.ts +63 -0
  397. package/dist/sensor/capture-mode-timing.d.ts.map +1 -0
  398. package/dist/sensor/capture-mode-timing.js +270 -0
  399. package/dist/sensor/capture-mode-timing.js.map +1 -0
  400. package/dist/sensor/capture-mode.d.ts.map +1 -1
  401. package/dist/sensor/capture-mode.js +13 -0
  402. package/dist/sensor/capture-mode.js.map +1 -1
  403. package/dist/sensor/color-sampling.d.ts.map +1 -1
  404. package/dist/sensor/color-sampling.js +19 -0
  405. package/dist/sensor/color-sampling.js.map +1 -1
  406. package/dist/sensor/constant-rate-temporal-integration.d.ts +126 -0
  407. package/dist/sensor/constant-rate-temporal-integration.d.ts.map +1 -0
  408. package/dist/sensor/constant-rate-temporal-integration.js +382 -0
  409. package/dist/sensor/constant-rate-temporal-integration.js.map +1 -0
  410. package/dist/sensor/dark-current.d.ts +169 -0
  411. package/dist/sensor/dark-current.d.ts.map +1 -0
  412. package/dist/sensor/dark-current.js +427 -0
  413. package/dist/sensor/dark-current.js.map +1 -0
  414. package/dist/sensor/environment-photo-signal.d.ts +123 -0
  415. package/dist/sensor/environment-photo-signal.d.ts.map +1 -0
  416. package/dist/sensor/environment-photo-signal.js +186 -0
  417. package/dist/sensor/environment-photo-signal.js.map +1 -0
  418. package/dist/sensor/eqe-electron-rate.d.ts +107 -0
  419. package/dist/sensor/eqe-electron-rate.d.ts.map +1 -0
  420. package/dist/sensor/eqe-electron-rate.js +561 -0
  421. package/dist/sensor/eqe-electron-rate.js.map +1 -0
  422. package/dist/sensor/eqe-local-exposure.d.ts +65 -0
  423. package/dist/sensor/eqe-local-exposure.d.ts.map +1 -0
  424. package/dist/sensor/eqe-local-exposure.js +84 -0
  425. package/dist/sensor/eqe-local-exposure.js.map +1 -0
  426. package/dist/sensor/eqe-temporal-exposure.d.ts +55 -0
  427. package/dist/sensor/eqe-temporal-exposure.d.ts.map +1 -0
  428. package/dist/sensor/eqe-temporal-exposure.js +62 -0
  429. package/dist/sensor/eqe-temporal-exposure.js.map +1 -0
  430. package/dist/sensor/exposure-window.d.ts +14 -0
  431. package/dist/sensor/exposure-window.d.ts.map +1 -1
  432. package/dist/sensor/exposure-window.js +14 -0
  433. package/dist/sensor/exposure-window.js.map +1 -1
  434. package/dist/sensor/iso-signal-chain.d.ts +148 -0
  435. package/dist/sensor/iso-signal-chain.d.ts.map +1 -0
  436. package/dist/sensor/iso-signal-chain.js +411 -0
  437. package/dist/sensor/iso-signal-chain.js.map +1 -0
  438. package/dist/sensor/local-exposure-binding.d.ts +87 -0
  439. package/dist/sensor/local-exposure-binding.d.ts.map +1 -0
  440. package/dist/sensor/local-exposure-binding.js +214 -0
  441. package/dist/sensor/local-exposure-binding.js.map +1 -0
  442. package/dist/sensor/optical-stack.d.ts.map +1 -1
  443. package/dist/sensor/optical-stack.js +17 -0
  444. package/dist/sensor/optical-stack.js.map +1 -1
  445. package/dist/sensor/photon-energy.d.ts +97 -0
  446. package/dist/sensor/photon-energy.d.ts.map +1 -0
  447. package/dist/sensor/photon-energy.js +390 -0
  448. package/dist/sensor/photon-energy.js.map +1 -0
  449. package/dist/sensor/physical-charge-capacity.d.ts +130 -0
  450. package/dist/sensor/physical-charge-capacity.d.ts.map +1 -0
  451. package/dist/sensor/physical-charge-capacity.js +345 -0
  452. package/dist/sensor/physical-charge-capacity.js.map +1 -0
  453. package/dist/sensor/pixel-pitch.d.ts +6 -0
  454. package/dist/sensor/pixel-pitch.d.ts.map +1 -1
  455. package/dist/sensor/pixel-pitch.js +6 -0
  456. package/dist/sensor/pixel-pitch.js.map +1 -1
  457. package/dist/sensor/radiometry-readiness.d.ts +10 -0
  458. package/dist/sensor/radiometry-readiness.d.ts.map +1 -1
  459. package/dist/sensor/radiometry-readiness.js +10 -0
  460. package/dist/sensor/radiometry-readiness.js.map +1 -1
  461. package/dist/sensor/raw-readout.d.ts +314 -0
  462. package/dist/sensor/raw-readout.d.ts.map +1 -0
  463. package/dist/sensor/raw-readout.js +914 -0
  464. package/dist/sensor/raw-readout.js.map +1 -0
  465. package/dist/sensor/raw-reconstruction.d.ts +170 -0
  466. package/dist/sensor/raw-reconstruction.d.ts.map +1 -0
  467. package/dist/sensor/raw-reconstruction.js +424 -0
  468. package/dist/sensor/raw-reconstruction.js.map +1 -0
  469. package/dist/sensor/readout-exposure-linkage.d.ts +12 -0
  470. package/dist/sensor/readout-exposure-linkage.d.ts.map +1 -1
  471. package/dist/sensor/readout-exposure-linkage.js +12 -0
  472. package/dist/sensor/readout-exposure-linkage.js.map +1 -1
  473. package/dist/sensor/readout-timing.d.ts +13 -0
  474. package/dist/sensor/readout-timing.d.ts.map +1 -1
  475. package/dist/sensor/readout-timing.js +13 -0
  476. package/dist/sensor/readout-timing.js.map +1 -1
  477. package/dist/sensor/response-application-compatibility.d.ts +136 -0
  478. package/dist/sensor/response-application-compatibility.d.ts.map +1 -0
  479. package/dist/sensor/response-application-compatibility.js +408 -0
  480. package/dist/sensor/response-application-compatibility.js.map +1 -0
  481. package/dist/sensor/response-operating-range.d.ts +173 -0
  482. package/dist/sensor/response-operating-range.d.ts.map +1 -0
  483. package/dist/sensor/response-operating-range.js +672 -0
  484. package/dist/sensor/response-operating-range.js.map +1 -0
  485. package/dist/sensor/responsivity-photocurrent.d.ts +158 -0
  486. package/dist/sensor/responsivity-photocurrent.d.ts.map +1 -0
  487. package/dist/sensor/responsivity-photocurrent.js +644 -0
  488. package/dist/sensor/responsivity-photocurrent.js.map +1 -0
  489. package/dist/sensor/sampling-aperture.d.ts.map +1 -1
  490. package/dist/sensor/sampling-aperture.js +14 -0
  491. package/dist/sensor/sampling-aperture.js.map +1 -1
  492. package/dist/sensor/scene-eqe-temporal-exposure.d.ts +45 -0
  493. package/dist/sensor/scene-eqe-temporal-exposure.d.ts.map +1 -0
  494. package/dist/sensor/scene-eqe-temporal-exposure.js +64 -0
  495. package/dist/sensor/scene-eqe-temporal-exposure.js.map +1 -0
  496. package/dist/sensor/sensor-geometry.d.ts +12 -0
  497. package/dist/sensor/sensor-geometry.d.ts.map +1 -1
  498. package/dist/sensor/sensor-geometry.js +12 -0
  499. package/dist/sensor/sensor-geometry.js.map +1 -1
  500. package/dist/sensor/signal-noise.d.ts +10 -0
  501. package/dist/sensor/signal-noise.d.ts.map +1 -1
  502. package/dist/sensor/signal-noise.js +10 -0
  503. package/dist/sensor/signal-noise.js.map +1 -1
  504. package/dist/sensor/spatial-sample-reduction.d.ts +44 -1
  505. package/dist/sensor/spatial-sample-reduction.d.ts.map +1 -1
  506. package/dist/sensor/spatial-sample-reduction.js +51 -5
  507. package/dist/sensor/spatial-sample-reduction.js.map +1 -1
  508. package/dist/sensor/spatial-sampling-quadrature.d.ts +24 -0
  509. package/dist/sensor/spatial-sampling-quadrature.d.ts.map +1 -1
  510. package/dist/sensor/spatial-sampling-quadrature.js +27 -0
  511. package/dist/sensor/spatial-sampling-quadrature.js.map +1 -1
  512. package/dist/sensor/spatio-spectral-reduction.d.ts +187 -0
  513. package/dist/sensor/spatio-spectral-reduction.d.ts.map +1 -0
  514. package/dist/sensor/spatio-spectral-reduction.js +373 -0
  515. package/dist/sensor/spatio-spectral-reduction.js.map +1 -0
  516. package/dist/sensor/spectral-coverage.d.ts +24 -0
  517. package/dist/sensor/spectral-coverage.d.ts.map +1 -0
  518. package/dist/sensor/spectral-coverage.js +86 -0
  519. package/dist/sensor/spectral-coverage.js.map +1 -0
  520. package/dist/sensor/spectral-quadrature.d.ts +169 -0
  521. package/dist/sensor/spectral-quadrature.d.ts.map +1 -0
  522. package/dist/sensor/spectral-quadrature.js +542 -0
  523. package/dist/sensor/spectral-quadrature.js.map +1 -0
  524. package/dist/sensor/spectral-response.d.ts +192 -0
  525. package/dist/sensor/spectral-response.d.ts.map +1 -0
  526. package/dist/sensor/spectral-response.js +664 -0
  527. package/dist/sensor/spectral-response.js.map +1 -0
  528. package/dist/sensor/temporal-eqe-sum.d.ts +15 -0
  529. package/dist/sensor/temporal-eqe-sum.d.ts.map +1 -0
  530. package/dist/sensor/temporal-eqe-sum.js +30 -0
  531. package/dist/sensor/temporal-eqe-sum.js.map +1 -0
  532. package/dist/sensor/temporal-photo-signal.d.ts +38 -0
  533. package/dist/sensor/temporal-photo-signal.d.ts.map +1 -0
  534. package/dist/sensor/temporal-photo-signal.js +110 -0
  535. package/dist/sensor/temporal-photo-signal.js.map +1 -0
  536. package/dist/sensor/temporal-sample-binding.d.ts +6 -0
  537. package/dist/sensor/temporal-sample-binding.d.ts.map +1 -0
  538. package/dist/sensor/temporal-sample-binding.js +32 -0
  539. package/dist/sensor/temporal-sample-binding.js.map +1 -0
  540. package/dist/simulation/poc-simulation.d.ts.map +1 -1
  541. package/dist/simulation/poc-simulation.js +34 -11
  542. package/dist/simulation/poc-simulation.js.map +1 -1
  543. package/dist/stabilization/camera-shake.d.ts +11 -0
  544. package/dist/stabilization/camera-shake.d.ts.map +1 -1
  545. package/dist/stabilization/camera-shake.js +11 -0
  546. package/dist/stabilization/camera-shake.js.map +1 -1
  547. package/dist/stabilization/system.d.ts +218 -0
  548. package/dist/stabilization/system.d.ts.map +1 -0
  549. package/dist/stabilization/system.js +695 -0
  550. package/dist/stabilization/system.js.map +1 -0
  551. package/docs/API_REFERENCE.md +2017 -0
  552. package/docs/API_STYLE.md +132 -0
  553. package/docs/ARCHITECTURE.md +134 -24
  554. package/docs/AUTOMATION_COORDINATION.md +2 -0
  555. package/docs/CAPTURE_COLOR.md +25 -0
  556. package/docs/CAPTURE_CORRECTED_SDR.md +25 -0
  557. package/docs/CAPTURE_EXPORT_METADATA.md +27 -0
  558. package/docs/CAPTURE_SDR.md +20 -0
  559. package/docs/DEVELOPERS.md +60 -0
  560. package/docs/DIGITAL_OPTICS_FOUNDATION.md +69 -0
  561. package/docs/ENVIRONMENT_RAW_CAPTURE.md +187 -0
  562. package/docs/EXPORT_ACCEPTANCE.md +133 -0
  563. package/docs/GENERIC_TIER_PRESETS.md +269 -0
  564. package/docs/GEOMETRIC_PREPARATION_REUSE.md +141 -0
  565. package/docs/IMAGE_FORMATION.md +80 -10
  566. package/docs/LINEAR_CAPTURE_ENCODING.md +25 -0
  567. package/docs/MOTION_AND_SIGNAL.md +5 -3
  568. package/docs/NUMERICAL_CORRECTNESS.md +191 -0
  569. package/docs/PERFORMANCE_BASELINE.md +56 -0
  570. package/docs/PHOTOGRAPHIC_EXPORT.md +206 -0
  571. package/docs/PHYSICS_FOUNDATION.md +152 -5
  572. package/docs/POC_API.md +2 -0
  573. package/docs/POC_PROJECTION_REUSE.md +124 -0
  574. package/docs/PROCESSED_OUTPUT.md +157 -0
  575. package/docs/PRODUCTION_COMPOSITION.md +373 -0
  576. package/docs/PRODUCTION_ENVIRONMENT_CAPTURE.md +131 -0
  577. package/docs/PROVENANCE.md +4 -0
  578. package/docs/PSF_FOUNDATION.md +110 -88
  579. package/docs/RAW_FRAME_ENVELOPE.md +56 -0
  580. package/docs/RAW_FRAME_RECONSTRUCTION.md +30 -0
  581. package/docs/RELEASE_1_0.md +65 -0
  582. package/docs/RELEASE_AUDIT.md +38 -0
  583. package/docs/SCENE_RADIANCE_AND_ILLUMINATION.md +298 -0
  584. package/docs/SCENE_SENSOR_QUADRATURE.md +98 -0
  585. package/docs/SCENE_SENSOR_TEMPORAL_EXPOSURE.md +86 -0
  586. package/docs/SCIENTIFIC_ASSURANCE.md +280 -0
  587. package/docs/SCIENTIFIC_CONFORMANCE.md +83 -0
  588. package/docs/SDR_RENDERING.md +33 -0
  589. package/docs/SENSOR_ENVIRONMENT_QUERY.md +86 -0
  590. package/docs/SENSOR_EQE_LOCAL_EXPOSURE.md +104 -0
  591. package/docs/SENSOR_EQE_TEMPORAL_EXPOSURE.md +74 -0
  592. package/docs/SENSOR_PSF_QUADRATURE.md +90 -0
  593. package/docs/SENSOR_RAW_FRAME.md +20 -0
  594. package/docs/SENSOR_RAW_PRODUCER.md +77 -0
  595. package/docs/SIGNAL_CONFORMANCE.md +23 -0
  596. package/docs/SIMULATED_CAPTURE.md +65 -0
  597. package/docs/STABILIZATION.md +160 -17
  598. package/docs/TEMPORAL_PHOTO_RAW.md +83 -0
  599. package/docs/TIER_ACCEPTANCE.md +129 -0
  600. package/docs/TIER_PRESET_ACCEPTANCE.md +59 -0
  601. package/docs/USAGE.md +5050 -1047
  602. package/docs/V1_COMPOSITION_MAP.md +123 -0
  603. package/docs/V1_HELPER_REUSE_REVIEW.md +60 -0
  604. package/docs/V1_PERFORMANCE_DISPOSITION.md +88 -0
  605. package/docs/api/camera-equivalent-focal-length.md +53 -0
  606. package/docs/api/camera-field-of-view.md +119 -0
  607. package/docs/api/camera-projected-object-size.md +54 -0
  608. package/docs/api/capture-capture-export-metadata.md +107 -0
  609. package/docs/api/capture-environment-raw-producer.md +56 -0
  610. package/docs/api/capture-focus-control.md +419 -0
  611. package/docs/api/capture-linear-encoding.md +99 -0
  612. package/docs/api/capture-photographic-export.md +172 -0
  613. package/docs/api/capture-raw-frame-reconstruction.md +87 -0
  614. package/docs/api/capture-release-sequence.md +252 -0
  615. package/docs/api/capture-sensor-raw-frame.md +66 -0
  616. package/docs/api/capture-sensor-raw-producer.md +98 -0
  617. package/docs/api/capture-simulated-capture.md +179 -0
  618. package/docs/api/color-capture-color.md +122 -0
  619. package/docs/api/color-white-balance.md +386 -0
  620. package/docs/api/composition-image-formation-plan.md +825 -0
  621. package/docs/api/composition-plan-consumer.md +98 -0
  622. package/docs/api/core-calculation-result.md +220 -0
  623. package/docs/api/core-configuration-error.md +19 -0
  624. package/docs/api/core-image-formation.md +204 -0
  625. package/docs/api/core-scientific-assurance.md +214 -0
  626. package/docs/api/core-spectral-composition.md +268 -0
  627. package/docs/api/core-spectral.md +78 -0
  628. package/docs/api/core-validation.md +34 -0
  629. package/docs/api/core-version.md +14 -0
  630. package/docs/api/equipment-exposure-capabilities.md +270 -0
  631. package/docs/api/equipment-generic-tier-assets.md +82 -0
  632. package/docs/api/equipment-generic-tier-presets.md +103 -0
  633. package/docs/api/equipment-iso-capabilities.md +295 -0
  634. package/docs/api/equipment-metering-capabilities.md +126 -0
  635. package/docs/api/equipment-release-capabilities.md +91 -0
  636. package/docs/api/exports.json +5656 -0
  637. package/docs/api/exposure-exposure-duration-control.md +115 -0
  638. package/docs/api/exposure-exposure-mode-resolver.md +966 -0
  639. package/docs/api/exposure-exposure.md +150 -0
  640. package/docs/api/exposure-flash.md +327 -0
  641. package/docs/api/exposure-metering-scene-radiance.md +154 -0
  642. package/docs/api/exposure-metering-target.md +134 -0
  643. package/docs/api/exposure-metering-temporal.md +77 -0
  644. package/docs/api/exposure-metering.md +172 -0
  645. package/docs/api/exposure-program-line.md +64 -0
  646. package/docs/api/motion-camera-rotation.md +215 -0
  647. package/docs/api/motion-capture-rotation-inverse-mapping.md +128 -0
  648. package/docs/api/motion-capture-rotation-temporal-quadrature.md +127 -0
  649. package/docs/api/motion-capture-rotation-trajectory.md +132 -0
  650. package/docs/api/motion-capture-translation-parallax-temporal-quadrature.md +171 -0
  651. package/docs/api/motion-extended-object-projection.md +312 -0
  652. package/docs/api/motion-projected-motion.md +60 -0
  653. package/docs/api/optics-aperture.md +69 -0
  654. package/docs/api/optics-circle-of-confusion.md +46 -0
  655. package/docs/api/optics-complex-pupil-psf.md +193 -0
  656. package/docs/api/optics-depth-of-field.md +92 -0
  657. package/docs/api/optics-diffraction.md +46 -0
  658. package/docs/api/optics-focus-breathing.md +119 -0
  659. package/docs/api/optics-focus-state.md +64 -0
  660. package/docs/api/optics-front-of-lens-filter.md +263 -0
  661. package/docs/api/optics-illumination-vignetting.md +95 -0
  662. package/docs/api/optics-lateral-chromatic-aberration.md +225 -0
  663. package/docs/api/optics-lens-psf-profile.md +380 -0
  664. package/docs/api/optics-polygon-diffraction.md +68 -0
  665. package/docs/api/optics-profile-contract.md +47 -0
  666. package/docs/api/optics-psf-foundation.md +181 -0
  667. package/docs/api/optics-radial-distortion.md +194 -0
  668. package/docs/api/optics-scene-to-sensor-irradiance.md +371 -0
  669. package/docs/api/optics-scene-to-sensor-quadrature.md +78 -0
  670. package/docs/api/optics-sensor-environment-query.md +58 -0
  671. package/docs/api/optics-sensor-psf-quadrature.md +81 -0
  672. package/docs/api/optics-stray-light.md +109 -0
  673. package/docs/api/optics-thin-lens.md +53 -0
  674. package/docs/api/output-capture-corrected-sdr.md +71 -0
  675. package/docs/api/output-capture-geometry.md +500 -0
  676. package/docs/api/output-capture-sdr.md +69 -0
  677. package/docs/api/output-crop.md +47 -0
  678. package/docs/api/output-geometric-transforms.md +199 -0
  679. package/docs/api/output-lens-corrections.md +162 -0
  680. package/docs/api/output-sdr-rendering.md +122 -0
  681. package/docs/api/output-subject-framing-crop.md +59 -0
  682. package/docs/api/schema-camera.md +84 -0
  683. package/docs/api/schema-illumination-spectral.md +77 -0
  684. package/docs/api/schema-illumination-temporal.md +289 -0
  685. package/docs/api/schema-illumination.md +246 -0
  686. package/docs/api/schema-scene-radiance-temporal.md +215 -0
  687. package/docs/api/schema-scene-radiance.md +415 -0
  688. package/docs/api/schema-scene.md +105 -0
  689. package/docs/api/schema-validation.md +25 -0
  690. package/docs/api/sensor-accumulated-charge.md +273 -0
  691. package/docs/api/sensor-architecture.md +155 -0
  692. package/docs/api/sensor-camera-saturation-capacity.md +215 -0
  693. package/docs/api/sensor-capture-color-sampling-binding.md +323 -0
  694. package/docs/api/sensor-capture-mode-timing.md +123 -0
  695. package/docs/api/sensor-capture-mode.md +321 -0
  696. package/docs/api/sensor-color-sampling.md +228 -0
  697. package/docs/api/sensor-constant-rate-temporal-integration.md +152 -0
  698. package/docs/api/sensor-dark-current.md +227 -0
  699. package/docs/api/sensor-environment-photo-signal.md +77 -0
  700. package/docs/api/sensor-eqe-electron-rate.md +166 -0
  701. package/docs/api/sensor-eqe-local-exposure.md +68 -0
  702. package/docs/api/sensor-eqe-temporal-exposure.md +73 -0
  703. package/docs/api/sensor-exposure-window.md +183 -0
  704. package/docs/api/sensor-iso-signal-chain.md +264 -0
  705. package/docs/api/sensor-local-exposure-binding.md +126 -0
  706. package/docs/api/sensor-optical-stack.md +211 -0
  707. package/docs/api/sensor-photon-energy.md +149 -0
  708. package/docs/api/sensor-physical-charge-capacity.md +196 -0
  709. package/docs/api/sensor-pixel-pitch.md +41 -0
  710. package/docs/api/sensor-radiometry-readiness.md +240 -0
  711. package/docs/api/sensor-raw-readout.md +499 -0
  712. package/docs/api/sensor-raw-reconstruction.md +260 -0
  713. package/docs/api/sensor-readout-exposure-linkage.md +172 -0
  714. package/docs/api/sensor-readout-timing.md +209 -0
  715. package/docs/api/sensor-response-application-compatibility.md +256 -0
  716. package/docs/api/sensor-response-operating-range.md +293 -0
  717. package/docs/api/sensor-responsivity-photocurrent.md +245 -0
  718. package/docs/api/sensor-sampling-aperture.md +221 -0
  719. package/docs/api/sensor-scene-eqe-temporal-exposure.md +56 -0
  720. package/docs/api/sensor-sensor-geometry.md +143 -0
  721. package/docs/api/sensor-signal-noise.md +75 -0
  722. package/docs/api/sensor-spatial-sample-reduction.md +186 -0
  723. package/docs/api/sensor-spatial-sampling-quadrature.md +188 -0
  724. package/docs/api/sensor-spatio-spectral-reduction.md +217 -0
  725. package/docs/api/sensor-spectral-coverage.md +33 -0
  726. package/docs/api/sensor-spectral-quadrature.md +183 -0
  727. package/docs/api/sensor-spectral-response.md +291 -0
  728. package/docs/api/sensor-temporal-photo-signal.md +62 -0
  729. package/docs/api/simulation-poc-simulation.md +364 -0
  730. package/docs/api/stabilization-camera-shake.md +71 -0
  731. package/docs/api/stabilization-system.md +442 -0
  732. package/docs/benchmarks/2026-10-01-main-baseline.json +694 -0
  733. package/docs/benchmarks/2026-10-02-geometric-preparation-reuse.json +2190 -0
  734. package/docs/benchmarks/2026-10-02-poc-projection-reuse.json +2423 -0
  735. package/docs/benchmarks/2026-10-02-v1-environment-gc-profile.json +210 -0
  736. package/docs/benchmarks/2026-10-02-v1-environment-ordinary.json +187 -0
  737. package/docs/benchmarks/2026-10-02-v1-geometry-gc-profile.json +756 -0
  738. package/docs/benchmarks/2026-10-02-v1-geometry-ordinary-1.json +711 -0
  739. package/docs/benchmarks/2026-10-02-v1-geometry-ordinary-2.json +711 -0
  740. package/docs/benchmarks/2026-10-02-v1-poc-gc-profile.json +885 -0
  741. package/docs/benchmarks/2026-10-02-v1-poc-ordinary-1.json +868 -0
  742. package/docs/benchmarks/2026-10-02-v1-poc-ordinary-2.json +868 -0
  743. package/docs/examples/production-capture.mjs +34 -0
  744. package/docs/examples/production-request.json +4613 -0
  745. package/docs/examples/quick-start.mjs +12 -0
  746. package/docs/validation/documentation-fragments.json +212 -0
  747. package/docs/validation/release-audit-inventory.json +1306 -0
  748. package/docs/validation/tier-acceptance-report-v1.json +2538 -0
  749. package/package.json +15 -3
@@ -0,0 +1,91 @@
1
+ /**
2
+ * Module boundary and integration notes.
3
+ * Strict generic profile parser; bounds passivity across the whole angular envelope.
4
+ * Adds off-path spectral irradiance before sensor/exposure integration, never after tone mapping.
5
+ * Source powers are integrated over profile.referenceEntranceAreaMm2 at this instant/wavelength.
6
+ * Gaussian templates are independently parameterized approximations, not lens prescription ray
7
+ * tracing.
8
+ * @see docs/DIGITAL_OPTICS_FOUNDATION.md for equations, coordinate/unit conventions, blockers and
9
+ * support limits.
10
+ */
11
+ import { type CalculationResult } from "../core/calculation-result.js";
12
+ import { type GenericOpticalEvidence, type OpticalProfileState } from "./profile-contract.js";
13
+ import type { LensFieldPointMm } from "./radial-distortion.js";
14
+ /** One reflected-path or broad scatter response, normalized over the infinite image plane. */
15
+ export interface ParametricStrayLightResponse {
16
+ id: string;
17
+ kind: "ghost" | "veil";
18
+ /** Centroid response in mm per degree of the two declared source field angles. */
19
+ centroidMmPerDegree: readonly [number, number, number, number];
20
+ offsetMm: LensFieldPointMm;
21
+ sigmaMm: number;
22
+ /** Fraction of source power entering this response at the axis. */
23
+ axisPowerFraction: number;
24
+ /** F(rho)=F(0)*(1+slope*rho²), rho=source angle/max angle. */
25
+ angularSlope: number;
26
+ }
27
+ /** Single explicit wavelength and exact generic camera state; clean optics only. */
28
+ export interface LensStrayLightProfile {
29
+ schemaVersion: "0.1.0";
30
+ id: string;
31
+ version: string;
32
+ state: OpticalProfileState;
33
+ evidence: GenericOpticalEvidence;
34
+ interaction: "lens-reflections" | "sensor-lens-reflections";
35
+ wavelengthNm: number;
36
+ wavelengthBasis: "air" | "vacuum";
37
+ maximumSourceAngleDegrees: number;
38
+ /** Area over which the caller's incident source power was integrated. */
39
+ referenceEntranceAreaMm2: number;
40
+ responses: readonly ParametricStrayLightResponse[];
41
+ }
42
+ /** Direction remains available beyond the active frame; no crop clipping. */
43
+ export interface StrayLightSource {
44
+ id: string;
45
+ fieldAngleXDegrees: number;
46
+ fieldAngleYDegrees: number;
47
+ incidentSpectralPowerWPerNm: number;
48
+ /** Explicit source/path admission, e.g. a flag/hood decision; not a global hood scalar. */
49
+ admittedFraction: number;
50
+ }
51
+ export interface StrayLightIrradiance {
52
+ profileId: string;
53
+ profileVersion: string;
54
+ interaction: LensStrayLightProfile["interaction"];
55
+ imagePointMm: LensFieldPointMm;
56
+ wavelengthNm: number;
57
+ wavelengthBasis: "air" | "vacuum";
58
+ timeSeconds: number;
59
+ primarySpectralIrradianceWPerM2PerNm: number;
60
+ ghostSpectralIrradianceWPerM2PerNm: number;
61
+ veilSpectralIrradianceWPerM2PerNm: number;
62
+ totalSpectralIrradianceWPerM2PerNm: number;
63
+ /** If primary-only, the meter excludes these additions; sensor always receives total. */
64
+ meterDomain: "primary-only" | "primary-plus-stray";
65
+ meterSpectralIrradianceWPerM2PerNm: number;
66
+ contributions: readonly {
67
+ sourceId: string;
68
+ responseId: string;
69
+ kind: "ghost" | "veil";
70
+ spectralIrradianceWPerM2PerNm: number;
71
+ }[];
72
+ }
73
+ /** Strict generic profile parser; bounds passivity across the whole angular envelope. */
74
+ export declare function parseLensStrayLightProfile(value: unknown): LensStrayLightProfile;
75
+ /** Adds off-path spectral irradiance before sensor/exposure integration, never after tone mapping.
76
+ * Source powers are integrated over profile.referenceEntranceAreaMm2 at this instant/wavelength.
77
+ * Gaussian templates are independently parameterized approximations, not lens prescription ray tracing.
78
+ */
79
+ export declare function calculateLensStrayLightIrradiance(input: {
80
+ profile: LensStrayLightProfile;
81
+ state: OpticalProfileState;
82
+ enabled: boolean;
83
+ imagePointMm: LensFieldPointMm;
84
+ wavelengthNm: number;
85
+ wavelengthBasis: "air" | "vacuum";
86
+ timeSeconds: number;
87
+ primarySpectralIrradianceWPerM2PerNm: number;
88
+ sources: readonly StrayLightSource[];
89
+ meterDomain: "primary-only" | "primary-plus-stray";
90
+ }): CalculationResult<StrayLightIrradiance>;
91
+ //# sourceMappingURL=stray-light.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"stray-light.d.ts","sourceRoot":"","sources":["../../src/optics/stray-light.ts"],"names":[],"mappings":"AAEA;;;;;;;;;GASG;AAEH,OAAO,EAAuB,KAAK,iBAAiB,EAAE,MAAM,+BAA+B,CAAC;AAE5F,OAAO,EAEwB,KAAK,sBAAsB,EAAE,KAAK,mBAAmB,EACnF,MAAM,uBAAuB,CAAC;AAC/B,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,wBAAwB,CAAC;AAE/D,8FAA8F;AAC9F,MAAM,WAAW,4BAA4B;IAC3C,EAAE,EAAE,MAAM,CAAC;IACX,IAAI,EAAE,OAAO,GAAG,MAAM,CAAC;IACvB,kFAAkF;IAClF,mBAAmB,EAAE,SAAS,CAAC,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,CAAC,CAAC;IAC/D,QAAQ,EAAE,gBAAgB,CAAC;IAC3B,OAAO,EAAE,MAAM,CAAC;IAChB,mEAAmE;IACnE,iBAAiB,EAAE,MAAM,CAAC;IAC1B,8DAA8D;IAC9D,YAAY,EAAE,MAAM,CAAC;CACtB;AACD,oFAAoF;AACpF,MAAM,WAAW,qBAAqB;IACpC,aAAa,EAAE,OAAO,CAAC;IACvB,EAAE,EAAE,MAAM,CAAC;IACX,OAAO,EAAE,MAAM,CAAC;IAChB,KAAK,EAAE,mBAAmB,CAAC;IAC3B,QAAQ,EAAE,sBAAsB,CAAC;IACjC,WAAW,EAAE,kBAAkB,GAAG,yBAAyB,CAAC;IAC5D,YAAY,EAAE,MAAM,CAAC;IACrB,eAAe,EAAE,KAAK,GAAG,QAAQ,CAAC;IAClC,yBAAyB,EAAE,MAAM,CAAC;IAClC,yEAAyE;IACzE,wBAAwB,EAAE,MAAM,CAAC;I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AAY,EAAE,MAAM,CAAC;IAAC,eAAe,EAAE,KAAK,GAAG,QAAQ,CAAC;IACxF,WAAW,EAAE,MAAM,CAAC;IAAC,oCAAoC,EAAE,MAAM,CAAC;IAClE,OAAO,EAAE,SAAS,gBAAgB,EAAE,CAAC;IAAC,WAAW,EAAE,cAAc,GAAG,oBAAoB,CAAC;CAC1F,GAAG,iBAAiB,CAAC,oBAAoB,CAAC,CA2C1C"}
@@ -0,0 +1,110 @@
1
+ // SPDX-License-Identifier: Apache-2.0
2
+ /**
3
+ * Module boundary and integration notes.
4
+ * Strict generic profile parser; bounds passivity across the whole angular envelope.
5
+ * Adds off-path spectral irradiance before sensor/exposure integration, never after tone mapping.
6
+ * Source powers are integrated over profile.referenceEntranceAreaMm2 at this instant/wavelength.
7
+ * Gaussian templates are independently parameterized approximations, not lens prescription ray
8
+ * tracing.
9
+ * @see docs/DIGITAL_OPTICS_FOUNDATION.md for equations, coordinate/unit conventions, blockers and
10
+ * support limits.
11
+ */
12
+ import { approximationResult } from "../core/calculation-result.js";
13
+ import { InvalidScientificInputError } from "../core/validation.js";
14
+ import { choice, finite, list, parseEvidence, parseOpticalProfileState, positive, record, requireSameState, textValue } from "./profile-contract.js";
15
+ function fraction(value, name) {
16
+ const n = finite(value, name);
17
+ if (n < 0 || n > 1)
18
+ throw new InvalidScientificInputError(`${name} must lie in [0,1].`);
19
+ return n;
20
+ }
21
+ function point(value) {
22
+ const p = record(value, ["x", "y"]);
23
+ return { x: finite(p.x, "x"), y: finite(p.y, "y") };
24
+ }
25
+ /** Strict generic profile parser; bounds passivity across the whole angular envelope. */
26
+ export function parseLensStrayLightProfile(value) {
27
+ const r = record(value, ["schemaVersion", "id", "version", "state", "evidence", "interaction",
28
+ "wavelengthNm", "wavelengthBasis", "maximumSourceAngleDegrees", "referenceEntranceAreaMm2", "responses"]);
29
+ const responses = list(r.responses, 32).map((value) => {
30
+ const s = record(value, ["id", "kind", "centroidMmPerDegree", "offsetMm", "sigmaMm", "axisPowerFraction", "angularSlope"]);
31
+ const matrix = list(s.centroidMmPerDegree, 4).map((v) => finite(v, "centroid coefficient"));
32
+ if (matrix.length !== 4)
33
+ throw new InvalidScientificInputError("Centroid matrix requires four entries.");
34
+ const slope = finite(s.angularSlope, "angularSlope");
35
+ if (slope < -1)
36
+ throw new InvalidScientificInputError("Angular response must be nonnegative.");
37
+ return { id: textValue(s.id), kind: choice(s.kind, ["ghost", "veil"]),
38
+ centroidMmPerDegree: matrix, offsetMm: point(s.offsetMm),
39
+ sigmaMm: positive(s.sigmaMm, "sigmaMm"), axisPowerFraction: fraction(s.axisPowerFraction, "axisPowerFraction"), angularSlope: slope };
40
+ });
41
+ if (new Set(responses.map((s) => s.id)).size !== responses.length ||
42
+ responses.reduce((sum, s) => sum + s.axisPowerFraction, 0) > 1 ||
43
+ responses.reduce((sum, s) => sum + s.axisPowerFraction * (1 + s.angularSlope), 0) > 1) {
44
+ throw new InvalidScientificInputError("Duplicate response or nonpassive total response.");
45
+ }
46
+ const maximum = positive(r.maximumSourceAngleDegrees, "maximumSourceAngleDegrees");
47
+ if (maximum >= 90)
48
+ throw new InvalidScientificInputError("Source angular domain must be below 90 degrees.");
49
+ return { schemaVersion: choice(r.schemaVersion, ["0.1.0"]), id: textValue(r.id), version: textValue(r.version),
50
+ state: parseOpticalProfileState(r.state), evidence: parseEvidence(r.evidence),
51
+ interaction: choice(r.interaction, ["lens-reflections", "sensor-lens-reflections"]),
52
+ wavelengthNm: positive(r.wavelengthNm, "wavelengthNm"), wavelengthBasis: choice(r.wavelengthBasis, ["air", "vacuum"]),
53
+ maximumSourceAngleDegrees: maximum, referenceEntranceAreaMm2: positive(r.referenceEntranceAreaMm2, "referenceEntranceAreaMm2"), responses };
54
+ }
55
+ /** Adds off-path spectral irradiance before sensor/exposure integration, never after tone mapping.
56
+ * Source powers are integrated over profile.referenceEntranceAreaMm2 at this instant/wavelength.
57
+ * Gaussian templates are independently parameterized approximations, not lens prescription ray tracing.
58
+ */
59
+ export function calculateLensStrayLightIrradiance(input) {
60
+ const profile = parseLensStrayLightProfile(input.profile);
61
+ requireSameState(profile.state, input.state);
62
+ const p = point(input.imagePointMm), time = finite(input.timeSeconds, "timeSeconds");
63
+ const primary = finite(input.primarySpectralIrradianceWPerM2PerNm, "primary irradiance");
64
+ if (time < 0 || primary < 0 || typeof input.enabled !== "boolean")
65
+ throw new InvalidScientificInputError("Invalid time, primary irradiance or enabled state.");
66
+ if (input.wavelengthNm !== profile.wavelengthNm || input.wavelengthBasis !== profile.wavelengthBasis) {
67
+ throw new InvalidScientificInputError("Wavelength/basis mismatch; select an explicit profile slice.");
68
+ }
69
+ const meter = choice(input.meterDomain, ["primary-only", "primary-plus-stray"]);
70
+ const sources = list(input.sources, 128).map((value) => {
71
+ const s = record(value, ["id", "fieldAngleXDegrees", "fieldAngleYDegrees", "incidentSpectralPowerWPerNm", "admittedFraction"]);
72
+ const x = finite(s.fieldAngleXDegrees, "source angle X"), y = finite(s.fieldAngleYDegrees, "source angle Y");
73
+ const power = finite(s.incidentSpectralPowerWPerNm, "source power");
74
+ if (Math.hypot(x, y) > profile.maximumSourceAngleDegrees || power < 0)
75
+ throw new InvalidScientificInputError("Source outside profile domain or negative power.");
76
+ return { id: textValue(s.id), fieldAngleXDegrees: x, fieldAngleYDegrees: y,
77
+ incidentSpectralPowerWPerNm: power, admittedFraction: fraction(s.admittedFraction, "admittedFraction") };
78
+ });
79
+ if (new Set(sources.map((s) => s.id)).size !== sources.length)
80
+ throw new InvalidScientificInputError("Duplicate source IDs.");
81
+ const contributions = [];
82
+ let ghost = 0, veil = 0;
83
+ if (input.enabled)
84
+ for (const s of sources)
85
+ for (const r of profile.responses) {
86
+ const m = r.centroidMmPerDegree;
87
+ const center = { x: m[0] * s.fieldAngleXDegrees + m[1] * s.fieldAngleYDegrees + r.offsetMm.x,
88
+ y: m[2] * s.fieldAngleXDegrees + m[3] * s.fieldAngleYDegrees + r.offsetMm.y };
89
+ const rho = Math.hypot(s.fieldAngleXDegrees, s.fieldAngleYDegrees) / profile.maximumSourceAngleDegrees;
90
+ const response = r.axisPowerFraction * (1 + r.angularSlope * rho * rho);
91
+ // Infinite-plane unit-integral density in 1/mm², converted to 1/m².
92
+ const densityPerM2 = Math.exp(-((p.x - center.x) ** 2 + (p.y - center.y) ** 2) / (2 * r.sigmaMm ** 2)) / (2 * Math.PI * r.sigmaMm ** 2) * 1e6;
93
+ const irradiance = s.incidentSpectralPowerWPerNm * s.admittedFraction * response * densityPerM2;
94
+ contributions.push({ sourceId: s.id, responseId: r.id, kind: r.kind, spectralIrradianceWPerM2PerNm: irradiance });
95
+ if (r.kind === "ghost")
96
+ ghost += irradiance;
97
+ else
98
+ veil += irradiance;
99
+ }
100
+ const total = primary + ghost + veil;
101
+ return approximationResult({ profileId: profile.id, profileVersion: profile.version, interaction: profile.interaction,
102
+ imagePointMm: p, wavelengthNm: profile.wavelengthNm, wavelengthBasis: profile.wavelengthBasis,
103
+ timeSeconds: time, primarySpectralIrradianceWPerM2PerNm: primary, ghostSpectralIrradianceWPerM2PerNm: ghost,
104
+ veilSpectralIrradianceWPerM2PerNm: veil, totalSpectralIrradianceWPerM2PerNm: total,
105
+ meterDomain: meter, meterSpectralIrradianceWPerM2PerNm: meter === "primary-only" ? primary : total, contributions }, "parametric-clean-lens-stray-light", "0.1.0", [profile.evidence.basis, profile.evidence.residualNote,
106
+ "Additive pre-sensor irradiance; exposure, saturation and noise remain downstream",
107
+ "No diffraction, primary PSF, contamination, cosmetic sprites or calibrated branded signature",
108
+ "One instant and one wavelength slice; no implicit temporal or spectral averaging"]);
109
+ }
110
+ //# sourceMappingURL=stray-light.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"stray-light.js","sourceRoot":"","sources":["../../src/optics/stray-light.ts"],"names":[],"mappings":"AAAA,sCAAsC;AAEtC;;;;;;;;;GASG;AAEH,OAAO,EAAE,mBAAmB,EAA0B,MAAM,+BAA+B,CAAC;AAC5F,OAAO,EAAE,2BAA2B,EAAE,M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W,EAAE,OAAO,CAAC,WAAW;QACnH,YAAY,EAAE,CAAC,EAAE,YAAY,EAAE,OAAO,CAAC,YAAY,EAAE,eAAe,EAAE,OAAO,CAAC,eAAe;QAC7F,WAAW,EAAE,IAAI,EAAE,oCAAoC,EAAE,OAAO,EAAE,kCAAkC,EAAE,KAAK;QAC3G,iCAAiC,EAAE,IAAI,EAAE,kCAAkC,EAAE,KAAK;QAClF,WAAW,EAAE,KAAK,EAAE,kCAAkC,EAAE,KAAK,KAAK,cAAc,CAAC,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC,KAAK,EAAE,aAAa,EAAE,EACrH,mCAAmC,EAAE,OAAO,EAAE,CAAC,OAAO,CAAC,QAAQ,CAAC,KAAK,EAAE,OAAO,CAAC,QAAQ,CAAC,YAAY;QAClG,kFAAkF;QAClF,8FAA8F;QAC9F,kFAAkF,CAAC,CAAC,CAAC;AACzF,CAAC"}
@@ -1,3 +1,11 @@
1
+ /**
2
+ * Module boundary and integration notes.
3
+ * Calculates Gaussian thin-lens image distance: 1/f = 1/s + 1/v where f is focal length, s is object
4
+ * distance, and v is image distance. This is a paraxial ideal-lens model. It does not model real-lens
5
+ * focus breathing, pupil magnification, principal-plane movement, or aberrations.
6
+ * @see docs/PHYSICS_FOUNDATION.md for equations, coordinate/unit conventions, blockers and support
7
+ * limits.
8
+ */
1
9
  import { type CalculationResult } from "../core/calculation-result.js";
2
10
  export interface CalculateThinLensImageDistanceInput {
3
11
  /** Lens focal length in millimetres. */
@@ -1 +1 @@
1
- {"version":3,"file":"thin-lens.d.ts","sourceRoot":"","sources":["../../src/optics/thin-lens.ts"],"names":[],"mappings":"AAEA,OAAO,EAEL,KAAK,iBAAiB,EACvB,MAAM,+BAA+B,CAAC;AAMvC,MAAM,WAAW,mCAAmC;IAClD,wCAAwC;IACxC,aAAa,EAAE,MAAM,CAAC;IACtB,2EAA2E;IAC3E,eAAe,EAAE,MAAM,CAAC;CACzB;AAED,MAAM,WAAW,qBAAqB;IACpC,gFAAgF;IAChF,eAAe,EAAE,MAAM,CAAC;IACxB,uEAAuE;IACvE,aAAa,EAAE,MAAM,CAAC;IACtB;;;OAGG;IACH,uBAAuB,EAAE,MAAM,CAAC;CACjC;AAED;;;;;;;;;GASG;AACH,wBAAgB,8BAA8B,CAC5C,KAAK,EAAE,mCAAmC,GACzC,iBAAiB,CAAC,qBAAqB,CAAC,CA6B1C"}
1
+ {"version":3,"file":"thin-lens.d.ts","sourceRoot":"","sources":["../../src/optics/thin-lens.ts"],"names":[],"mappings":"AAEA;;;;;;;GAOG;AAEH,OAAO,EAEL,KAAK,iBAAiB,EACvB,MAAM,+BAA+B,CAAC;AAMvC,MAAM,WAAW,mCAAmC;IAClD,wCAAwC;IACxC,aAAa,EAAE,MAAM,CAAC;IACtB,2EAA2E;IAC3E,eAAe,EAAE,MAAM,CAAC;CACzB;AAED,MAAM,WAAW,qBAAqB;IACpC,gFAAgF;IAChF,eAAe,EAAE,MAAM,CAAC;IACxB,uEAAuE;IACvE,aAAa,EAAE,MAAM,CAAC;IACtB;;;OAGG;IACH,uBAAuB,EAAE,MAAM,CAAC;CACjC;AAED;;;;;;;;;GASG;AACH,wBAAgB,8BAA8B,CAC5C,KAAK,EAAE,mCAAmC,GACzC,iBAAiB,CAAC,qBAAqB,CAAC,CA6B1C"}
@@ -1,4 +1,12 @@
1
1
  // SPDX-License-Identifier: Apache-2.0
2
+ /**
3
+ * Module boundary and integration notes.
4
+ * Calculates Gaussian thin-lens image distance: 1/f = 1/s + 1/v where f is focal length, s is object
5
+ * distance, and v is image distance. This is a paraxial ideal-lens model. It does not model real-lens
6
+ * focus breathing, pupil magnification, principal-plane movement, or aberrations.
7
+ * @see docs/PHYSICS_FOUNDATION.md for equations, coordinate/unit conventions, blockers and support
8
+ * limits.
9
+ */
2
10
  import { calculatedResult } from "../core/calculation-result.js";
3
11
  import { InvalidScientificInputError, requirePositiveFinite } from "../core/validation.js";
4
12
  /**
@@ -1 +1 @@
1
- {"version":3,"file":"thin-lens.js","sourceRoot":"","sources":["../../src/optics/thin-lens.ts"],"names":[],"mappings":"AAAA,sCAAsC;AAEtC,OAAO,EACL,gBAAgB,EAEjB,MAAM,+BAA+B,CAAC;AACvC,OAAO,EACL,2BAA2B,EAC3B,qBAAqB,EACtB,MAAM,uBAAuB,CAAC;AAqB/B;;;;;;;;;GASG;AACH,MAAM,UAAU,8BAA8B,CAC5C,KAA0C;IAE1C,qBAAqB,CAAC,eAAe,EAAE,KAAK,CAAC,aAAa,CAAC,CAAC;IAC5D,qBAAqB,CAAC,iBAAiB,EAAE,KAAK,CAAC,eAAe,CAAC,CAAC;IAEhE,MAAM,gBAAgB,GAAG,KAAK,CAAC,eAAe,GAAG,IAAI,CAAC;IACtD,IAAI,gBAAgB,IAAI,KAAK,CAAC,aAAa,EAAE,CAAC;QAC5C,MAAM,IAAI,2BAA2B,CACnC,sEAAsE,CACvE,CAAC;IACJ,CAAC;IAED,MAAM,eAAe,GACnB,CAAC,KAAK,CAAC,aAAa,GAAG,gBAAgB,CAAC;QACxC,CAAC,gBAAgB,GAAG,KAAK,CAAC,aAAa,CAAC,CAAC;IAE3C,OAAO,gBAAgB,CACrB;QACE,eAAe;QACf,aAAa,EAAE,eAAe,GAAG,gBAAgB;QACjD,uBAAuB,EAAE,eAAe,GAAG,KAAK,CAAC,aAAa;KAC/D,EACD,mCAAmC,EACnC,OAAO,EACP;QACE,mCAAmC;QACnC,oDAAoD;QACpD,mEAAmE;KACpE,CACF,CAAC;AACJ,CAAC"}
1
+ {"version":3,"file":"thin-lens.js","sourceRoot":"","sources":["../../src/optics/thin-lens.ts"],"names":[],"mappings":"AAAA,sCAAsC;AAEtC;;;;;;;GAOG;AAEH,OAAO,EACL,gBAAgB,EAEjB,MAAM,+BAA+B,CAAC;AACvC,OAAO,EACL,2BAA2B,EAC3B,qBAAqB,EACtB,MAAM,uBAAuB,CAAC;AAqB/B;;;;;;;;;GASG;AACH,MAAM,UAAU,8BAA8B,CAC5C,KAA0C;IAE1C,qBAAqB,CAAC,eAAe,EAAE,KAAK,CAAC,aAAa,CAAC,CAAC;IAC5D,qBAAqB,CAAC,iBAAiB,EAAE,KAAK,CAAC,eAAe,CAAC,CAAC;IAEhE,MAAM,gBAAgB,GAAG,KAAK,CAAC,eAAe,GAAG,IAAI,CAAC;IACtD,IAAI,gBAAgB,IAAI,KAAK,CAAC,aAAa,EAAE,CAAC;QAC5C,MAAM,IAAI,2BAA2B,CACnC,sEAAsE,CACvE,CAAC;IACJ,CAAC;IAED,MAAM,eAAe,GACnB,CAAC,KAAK,CAAC,aAAa,GAAG,gBAAgB,CAAC;QACxC,CAAC,gBAAgB,GAAG,KAAK,CAAC,aAAa,CAAC,CAAC;IAE3C,OAAO,gBAAgB,CACrB;QACE,eAAe;QACf,aAAa,EAAE,eAAe,GAAG,gBAAgB;QACjD,uBAAuB,EAAE,eAAe,GAAG,KAAK,CAAC,aAAa;KAC/D,EACD,mCAAmC,EACnC,OAAO,EACP;QACE,mCAAmC;QACnC,oDAAoD;QACpD,mEAAmE;KACpE,CACF,CAAC;AACJ,CAAC"}
@@ -0,0 +1,49 @@
1
+ import { type CalculationResult } from "../core/calculation-result.js";
2
+ import { calculateFieldOfView } from "../camera/field-of-view.js";
3
+ import { type OpticalProfileState } from "../optics/profile-contract.js";
4
+ import { type CaptureSdrInput, type CaptureSdrResult } from "./capture-sdr.js";
5
+ import { calculateLensCorrectedCapture, type GenericLensCorrectionProfile, type ResolvedLensCorrectionPlan } from "./lens-corrections.js";
6
+ import { type GeometricResampler } from "./geometric-transforms.js";
7
+ import { type RasterRect } from "./capture-geometry.js";
8
+ export declare const CAPTURE_CORRECTED_SDR_SCHEMA_VERSION: "0.1.0";
9
+ /** Explicit native-optical correction binding. Body/lens/mode identities remain producer declarations. */
10
+ export interface CaptureCorrectedSdrInput extends CaptureSdrInput {
11
+ correction: {
12
+ profile: GenericLensCorrectionProfile;
13
+ state: OpticalProfileState;
14
+ /** Native optical +X right/+Y up, RGB basis after the selected color/WB operation. */
15
+ coordinateFrame: "native-optical-linear-srgb-d65";
16
+ selections: Readonly<Record<string, "on" | "off" | "auto">>;
17
+ selectionKind: ResolvedLensCorrectionPlan["selectionKind"];
18
+ /** Seconds from exposure start, not the capture's scene-clock time. */
19
+ frameTimeSeconds: number;
20
+ resampler: GeometricResampler;
21
+ clippingLevel: number;
22
+ invalidSupport: "reject" | "joint-valid-crop";
23
+ outputImageStateId: string;
24
+ };
25
+ }
26
+ /** Derived output view, never a replacement for the committed capture's physical geometry. */
27
+ export interface CaptureCorrectedSdrResult extends Omit<CaptureSdrResult, "schemaVersion"> {
28
+ schemaVersion: typeof CAPTURE_CORRECTED_SDR_SCHEMA_VERSION;
29
+ sceneTimeSeconds: number;
30
+ plan: CalculationResult<ResolvedLensCorrectionPlan>;
31
+ correction: ReturnType<typeof calculateLensCorrectedCapture>;
32
+ projection: ReturnType<typeof calculateFieldOfView>;
33
+ /** Oriented full-output support; child correction plans retain native optical coordinates. */
34
+ validSourceMask: readonly boolean[];
35
+ outputView: {
36
+ imageStateId: string;
37
+ rect: RasterRect;
38
+ pixelWidth: number;
39
+ pixelHeight: number;
40
+ samples: readonly number[];
41
+ };
42
+ }
43
+ /** Strict boundary; execution also checks capture optics, native raster binding and source history. */
44
+ export declare function parseCaptureCorrectedSdrInput(input: unknown): CaptureCorrectedSdrInput;
45
+ /** Internal shared validation for capture-derived exporters; does not create or validate pixel values. */
46
+ export declare function parseCaptureCorrectionChoice(input: unknown, capture: CaptureSdrInput["capture"], forbiddenImageStateIds?: readonly string[]): CaptureCorrectedSdrInput["correction"];
47
+ /** Bounded committed capture → color/WB → native correction → oriented output view → SDR. No physical stage activation. */
48
+ export declare function calculateCaptureCorrectedSdr(input: CaptureCorrectedSdrInput): CalculationResult<CaptureCorrectedSdrResult>;
49
+ //# sourceMappingURL=capture-corrected-sdr.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"capture-corrected-sdr.d.ts","sourceRoot":"","sources":["../../src/output/capture-corrected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AAE,MAAM,CAAC;IACzB,IAAI,EAAE,iBAAiB,CAAC,0BAA0B,CAAC,CAAC;IACpD,UAAU,EAAE,UAAU,CAAC,OAAO,6BAA6B,CAAC,CAAC;IAC7D,UAAU,EAAE,UAAU,CAAC,OAAO,oBAAoB,CAAC,CAAC;IACpD,8FAA8F;IAC9F,eAAe,EAAE,SAAS,OAAO,EAAE,CAAC;IACpC,UAAU,EAAE;QAAE,YAAY,EAAE,MAAM,CAAC;QAAC,IAAI,EAAE,UAAU,CAAC;QAAC,UAAU,EAAE,MAAM,CAAC;QAAC,WAAW,EAAE,MAAM,CAAC;QAAC,OAAO,EAAE,SAAS,MAAM,EAAE,CAAA;KAAE,CAAC;CAC7H;AAID,uGAAuG;AACvG,wBAAgB,6BAA6B,CAAC,KAAK,EAAE,OAAO,GAAG,wBAAwB,CAKtF;AACD,0GAA0G;AAC1G,wBAAgB,4BAA4B,CAAC,KAAK,EAAE,OAAO,EAAE,OAAO,EAAE,eAAe,CAAC,SAAS,CAAC,EAC9F,sBAAsB,GAAE,SAAS,MAAM,EAAO,GAAG,wBAAwB,CAAC,YAAY,CAAC,CA2BxF;AAuBD,2HAA2H;AAC3H,wBAAgB,4BAA4B,CAAC,KAAK,EAAE,wBAAwB,GAAG,iBAAiB,CAAC,yBAAyB,CAAC,CA+D1H"}
@@ -0,0 +1,149 @@
1
+ // SPDX-License-Identifier: Apache-2.0
2
+ /**
3
+ * Module boundary and integration notes.
4
+ * Strict boundary; execution also checks capture optics, native raster binding and source history.
5
+ * Internal shared validation for capture-derived exporters; does not create or validate pixel values.
6
+ * @see docs/PROCESSED_OUTPUT.md for equations, coordinate/unit conventions, blockers and support
7
+ * limits.
8
+ */
9
+ import { requireAllowlistedRecord, isPublicOpaqueId } from "../core/record-validation.js";
10
+ import { approximationResult } from "../core/calculation-result.js";
11
+ import { InvalidConfigurationError } from "../core/configuration-error.js";
12
+ import { calculateFieldOfView } from "../camera/field-of-view.js";
13
+ import { parseOpticalProfileState } from "../optics/profile-contract.js";
14
+ import { prepareCaptureSdrSource, parseCaptureSdrInput } from "./capture-sdr.js";
15
+ import { resolveLensCorrectionPlan, calculateLensCorrectedCapture, parseGenericLensCorrectionProfile } from "./lens-corrections.js";
16
+ import { calculateValidSourceCrop } from "./geometric-transforms.js";
17
+ import { mapOrientedPhysicalUvToImagePlanePoint, transformNativeRasterPointToOriented } from "./capture-geometry.js";
18
+ import { calculateSdrRendering } from "./sdr-rendering.js";
19
+ export const CAPTURE_CORRECTED_SDR_SCHEMA_VERSION = "0.1.0";
20
+ function fields(value, allowed) {
21
+ return requireAllowlistedRecord(value, allowed, "Invalid capture correction fields.");
22
+ }
23
+ /** Strict boundary; execution also checks capture optics, native raster binding and source history. */
24
+ export function parseCaptureCorrectedSdrInput(input) {
25
+ const r = fields(input, ["capture", "sourcePlaneId", "color", "profile", "correction"]);
26
+ const base = parseCaptureSdrInput({ capture: r.capture, sourcePlaneId: r.sourcePlaneId, color: r.color, profile: r.profile });
27
+ return { ...base, correction: parseCaptureCorrectionChoice(r.correction, base.capture, base.color.kind === "transform" ? [base.color.outputImageStateId] : []) };
28
+ }
29
+ /** Internal shared validation for capture-derived exporters; does not create or validate pixel values. */
30
+ export function parseCaptureCorrectionChoice(input, capture, forbiddenImageStateIds = []) {
31
+ const c = fields(input, ["profile", "state", "coordinateFrame", "selections", "selectionKind", "frameTimeSeconds",
32
+ "resampler", "clippingLevel", "invalidSupport", "outputImageStateId"]);
33
+ const profile = parseGenericLensCorrectionProfile(c.profile), state = parseOpticalProfileState(c.state);
34
+ const selections = fields(c.selections, profile.components.map((v) => v.id));
35
+ if (Object.values(selections).some((v) => v !== "on" && v !== "off" && v !== "auto") ||
36
+ c.coordinateFrame !== "native-optical-linear-srgb-d65" ||
37
+ (c.selectionKind !== "camera-selectable" && c.selectionKind !== "reference-bypass") ||
38
+ (c.invalidSupport !== "reject" && c.invalidSupport !== "joint-valid-crop") ||
39
+ typeof c.frameTimeSeconds !== "number" || !Number.isFinite(c.frameTimeSeconds) || c.frameTimeSeconds < 0 ||
40
+ typeof c.clippingLevel !== "number" || !Number.isFinite(c.clippingLevel) || c.clippingLevel <= 0 ||
41
+ !isPublicOpaqueId(c.outputImageStateId) ||
42
+ capture.planes.some((p) => p.imageStateId === c.outputImageStateId) ||
43
+ forbiddenImageStateIds.includes(c.outputImageStateId)) {
44
+ throw new InvalidConfigurationError("Invalid correction choice, clock, threshold or derived state identity.");
45
+ }
46
+ const s = fields(c.resampler, ["id", "version", "filter", "antialias"]);
47
+ if (typeof s.id !== "string" || !s.id.trim() || typeof s.version !== "string" || !s.version.trim() ||
48
+ (s.filter !== "nearest" && s.filter !== "bilinear") || (s.antialias !== "none" && s.antialias !== "source-prefiltered")) {
49
+ throw new InvalidConfigurationError("Invalid correction resampler.");
50
+ }
51
+ resolveLensCorrectionPlan({ profile, state, selections: selections,
52
+ outputKind: "processed", selectionKind: c.selectionKind });
53
+ return { profile, state, coordinateFrame: c.coordinateFrame,
54
+ selections: selections, selectionKind: c.selectionKind,
55
+ frameTimeSeconds: c.frameTimeSeconds, clippingLevel: c.clippingLevel, invalidSupport: c.invalidSupport,
56
+ outputImageStateId: c.outputImageStateId, resampler: { id: s.id, version: s.version, filter: s.filter, antialias: s.antialias } };
57
+ }
58
+ function nativeRaster(bounds, width, height, orientation) {
59
+ const corners = [0, 1].flatMap((u) => [0, 1].map((v) => mapOrientedPhysicalUvToImagePlanePoint({
60
+ uv: { u, v }, orientation, orientedPhysicalBoundsFromOpticalAxisMm: bounds
61
+ })));
62
+ const x = corners.map((p) => p.x), y = corners.map((p) => p.y);
63
+ const quarter = orientation === "portrait-clockwise" || orientation === "portrait-counter-clockwise";
64
+ const w = quarter ? height : width, h = quarter ? width : height;
65
+ const pitchX = (Math.max(...x) - Math.min(...x)) / w, pitchY = (Math.max(...y) - Math.min(...y)) / h;
66
+ if (Math.abs(pitchX - pitchY) > 1e-12 * Math.max(pitchX, pitchY)) {
67
+ throw new InvalidConfigurationError("Correction executor requires square physical pixel pitch; no implicit stretching.");
68
+ }
69
+ return { width: w, height: h, pitchMm: pitchX,
70
+ centerMm: { x: (Math.min(...x) + Math.max(...x)) / 2, y: (Math.min(...y) + Math.max(...y)) / 2 } };
71
+ }
72
+ /** Exact quarter-turn index permutation through the capture geometry contract, not another resampling pass. */
73
+ function orientedIndices(raster, orientation, orientedWidth) {
74
+ return Array.from({ length: raster.width * raster.height }, (_, i) => {
75
+ const p = transformNativeRasterPointToOriented({ point: { x: i % raster.width + .5, y: Math.floor(i / raster.width) + .5 },
76
+ nativeRaster: { pixelWidth: raster.width, pixelHeight: raster.height }, orientation });
77
+ return Math.floor(p.y) * orientedWidth + Math.floor(p.x);
78
+ });
79
+ }
80
+ /** Bounded committed capture → color/WB → native correction → oriented output view → SDR. No physical stage activation. */
81
+ export function calculateCaptureCorrectedSdr(input) {
82
+ const v = parseCaptureCorrectedSdrInput(input), c = v.correction;
83
+ const { value, source, plane, color, applied } = prepareCaptureSdrSource({
84
+ capture: v.capture, sourcePlaneId: v.sourcePlaneId, color: v.color, profile: v.profile
85
+ });
86
+ if (plane.storage.kind !== "inline-float64" || plane.pixelWidth * plane.pixelHeight > 65536 ||
87
+ plane.appliedTransforms.some((t) => t.kind === "digital-lens-correction")) {
88
+ throw new InvalidConfigurationError("Requires bounded inline RGB without prior digital lens correction; no implicit loading or double correction.");
89
+ }
90
+ const capture = value.capture, g = capture.resolvedGeometry, orientation = g.orientedCapture.orientation;
91
+ const sourceBounds = plane.rasterBinding === "output" ? g.output.physicalBoundsFromOpticalAxisMm : g.orientedCapture.physicalBoundsFromOpticalAxisMm;
92
+ const src = nativeRaster(sourceBounds, plane.pixelWidth, plane.pixelHeight, orientation);
93
+ const dst = nativeRaster(g.output.physicalBoundsFromOpticalAxisMm, g.output.raster.pixelWidth, g.output.raster.pixelHeight, orientation);
94
+ if (c.state.focalLengthMm !== capture.exposure.focalLengthMm || c.state.aperture !== capture.exposure.aperture ||
95
+ capture.focus.kind !== "finite" || c.state.focusDistanceM !== capture.focus.distanceM ||
96
+ c.state.outputWidth !== dst.width || c.state.outputHeight !== dst.height || c.frameTimeSeconds > capture.exposure.shutterSeconds) {
97
+ throw new InvalidConfigurationError("Correction state differs from committed optics/native output raster or local exposure interval.");
98
+ }
99
+ const plan = resolveLensCorrectionPlan({ profile: c.profile, state: c.state, selections: c.selections,
100
+ selectionKind: c.selectionKind, outputKind: "processed" });
101
+ const samples = plane.storage.samples, sourceIndices = orientedIndices(src, orientation, plane.pixelWidth);
102
+ const channels = { red: sourceIndices.map((i) => samples[3 * i]), green: sourceIndices.map((i) => samples[3 * i + 1]),
103
+ blue: sourceIndices.map((i) => samples[3 * i + 2]) };
104
+ // Existing engine projection owns finite-focus distance; never substitute scene-clock time or focal length.
105
+ const projection = calculateFieldOfView({ focalLengthMm: capture.exposure.focalLengthMm,
106
+ sensorDimensionMm: g.activeCapture.imagingArea.widthMm, focusDistanceM: c.state.focusDistanceM });
107
+ const correction = calculateLensCorrectedCapture({ plan: plan.value, capture: { state: c.state,
108
+ captureId: capture.captureId, noiseRealizationId: capture.noise.realizationId, timeSeconds: c.frameTimeSeconds, raster: src, channels },
109
+ destinationRaster: dst, resampler: c.resampler, clippingLevel: c.clippingLevel,
110
+ physicalProjectionDistanceMm: projection.value.projectionDistanceMm });
111
+ const width = g.output.raster.pixelWidth, height = g.output.raster.pixelHeight;
112
+ const indices = orientedIndices(dst, orientation, width), mask = Array(width * height).fill(false);
113
+ const rgb = Array(width * height * 3).fill(null);
114
+ indices.forEach((index, i) => {
115
+ mask[index] = correction.value.validSourceMask[i];
116
+ rgb[3 * index] = correction.value.channels.red[i];
117
+ rgb[3 * index + 1] = correction.value.channels.green[i];
118
+ rgb[3 * index + 2] = correction.value.channels.blue[i];
119
+ });
120
+ if (c.invalidSupport === "reject" && mask.some((valid) => !valid))
121
+ throw new InvalidConfigurationError("Corrected output has unavailable channel support.");
122
+ const rect = c.invalidSupport === "reject" ? { x: 0, y: 0, width, height } : calculateValidSourceCrop(mask, width, height);
123
+ if (rect === null)
124
+ throw new InvalidConfigurationError("No joint-valid corrected output crop.");
125
+ const outputSamples = [];
126
+ for (let y = rect.y; y < rect.y + rect.height; y++)
127
+ for (let x = rect.x; x < rect.x + rect.width; x++) {
128
+ const offset = 3 * (y * width + x);
129
+ outputSamples.push(rgb[offset], rgb[offset + 1], rgb[offset + 2]);
130
+ }
131
+ const rendering = calculateSdrRendering({ sourceImageStateId: c.outputImageStateId,
132
+ inputImageState: "color-transformed-linear-rgb", inputColorSpace: "linear-srgb-d65",
133
+ whiteBalanceHandling: applied ? "already-applied-upstream" : "not-required", pixelWidth: rect.width, pixelHeight: rect.height,
134
+ referenceWhiteValue: plane.referenceWhiteValue, samples: outputSamples, profile: value.profile });
135
+ return approximationResult({ schemaVersion: CAPTURE_CORRECTED_SDR_SCHEMA_VERSION, captureId: capture.captureId,
136
+ sourcePlaneId: source.id, sourceImageStateId: source.imageStateId, rasterBinding: source.rasterBinding,
137
+ sourceCaptureSaturation: source.captureSaturation, sourceDynamicRangeHistory: capture.source.dynamicRangeHistory,
138
+ noiseRealizationId: capture.noise.realizationId, sceneTimeSeconds: capture.sceneTimeSeconds,
139
+ whiteBalance: applied ? color ? "applied-here" : "already-applied-upstream" : "not-required",
140
+ color, plan, correction, projection, validSourceMask: mask,
141
+ outputView: { imageStateId: c.outputImageStateId, rect, pixelWidth: rect.width, pixelHeight: rect.height, samples: outputSamples }, rendering }, "capture-corrected-sdr-adapter", CAPTURE_CORRECTED_SDR_SCHEMA_VERSION, [
142
+ "Generic corrections are explicitly declared for native optical coordinates and the post-color/WB linear-sRGB basis",
143
+ "Body/lens identity, acquisition mode, stabilization and prefilter adequacy remain producer declarations, not verified calibration",
144
+ "Quarter-turn permutations reuse capture geometry; crop never rewrites physical capture or focal equivalence",
145
+ "Gain clipping events, upstream saturation and SDR gamut clipping remain distinct; no covariance/noise regeneration",
146
+ "Bounded reference integration only; no production-plan activation, RAW correction bake, streaming or external IO"
147
+ ]);
148
+ }
149
+ //# sourceMappingURL=capture-corrected-sdr.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"capture-corrected-sdr.js","sourceRoot":"","sources":["../../src/output/capture-corrected-sdr.ts"],"names":[],"mappings":"AAAA,sCAAsC;AAEtC;;;;;;GAMG;AAEH,OAAO,EAAE,wBAAwB,EAAE,gBAAgB,EAAE,MAAM,8BAA8B,CAAC;AAC1F,OAAO,EAAE,mBAAmB,EAA0B,MAAM,+BAA+B,CAAC;AAC5F,OAAO,EAAE,yBAAyB,EAAE,MAAM,gCAAgC,CAAC;AAC3E,OAAO,EAAE,oBAAoB,EAAE,MAAM,4BAA4B,CAAC;AAClE,OAAO,EAAE,wBAAwB,EAA4B,MAAM,+BAA+B,CAAC;AACnG,OAAO,EAAE,uBAAuB,EAAE,oBAAoB,EAA+C,MAAM,kBAAkB,CAAC;AAC9H,OAAO,EAAE,yBAAyB,EAAE,6BAA6B,EAAE,iCAAiC,EAC9B,MAAM,uBAAuB,CAAC;AACpG,OAAO,EAAE,wBAAwB,EAAiD,MAAM,2BAA2B,CAAC;AACpH,OAAO,EAAE,sCAAsC,EAAE,oCAAoC,EACH,MAAM,uBAAuB,CAAC;AAChH,OAAO,EAAE,qBAAqB,EAAE,MAAM,oBAAoB,CAAC;AAE3D,MAAM,CAAC,MAAM,oCAAoC,GAAG,OAAgB,CAAC;AA6BrE,SAAS,MAAM,CAAC,KAAc,EAAE,OAA0B;IACxD,OAAO,wBAAwB,CAAC,KAAK,EAAE,OAAO,EAAE,oCAAoC,CAAC,CAAC;AACxF,CAAC;AACD,uGAAuG;AACvG,MAAM,UAAU,6BAA6B,CAAC,KAAc;IAC1D,MAAM,CAAC,GAAG,MAAM,CAAC,KAAK,EAAE,CAAC,SAAS,EAAE,eAAe,EAAE,OAAO,EAAE,SAAS,EAAE,YAAY,CAAC,CAAC,CAAC;IACxF,MAAM,IAAI,GAAG,oBAAoB,CAAC,EAAE,OAAO,EAAE,CAAC,CAAC,OAAO,EAAE,aAAa,E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B,GAChC,YAAY,CAId;AAED,sEAAsE;AACtE,wBAAgB,qCAAqC,CACnD,KAAK,EAAE,0BAA0B,GAChC,YAAY,CAId;AAED;;;;;;;;GAQG;AACH,wBAAgB,sCAAsC,CACpD,KAAK,EAAE,sCAAsC,GAC5C,uBAAuB,CAsBzB;AAED;;;;;;;;GAQG;AACH,wBAAgB,sCAAsC,CACpD,KAAK,EAAE,2CAA2C,GACjD,kBAAkB,CA+BpB;AAED,yFAAyF;AACzF,wBAAgB,mCAAmC,CACjD,KAAK,EAAE,wBAAwB,GAC9B,UAAU,CAgCZ;AAED,qFAAqF;AACrF,wBAAgB,mCAAmC,CACjD,KAAK,EAAE,wBAAwB,GAC9B,UAAU,CAiCZ;AA+LD;;;GAGG;AACH,wBAAgB,sBAAsB,CACpC,KAAK,EAAE,2BAA2B,GACjC,iBAAiB,CAAC,uBAAuB,CAAC,CA6H5C;AAED;;;;;GAKG;AACH,wBAAgB,iCAAiC,CAC/C,KAAK,EAAE,sCAAsC,GAC5C,iBAAiB,CAAC,wBAAwB,CAAC,CA0C7C;AAED;;;;GAIG;AACH,wBAAgB,0BAA0B,CACxC,KAAK,EAAE,+BAA+B,GACrC,iBAAiB,CAAC,iBAAiB,CAAC,CAsCtC"}
1
+ {"version":3,"file":"capture-geometry.d.ts","sourceRoot":"","sources":["../../src/output/capture-geometry.ts"],"names":[],"mappings":"AAcA,OAAO,EAEL,KAAK,qBAAqB,EAC1B,KAAK,iBAAiB,EACvB,MAAM,+BAA+B,CAAC;AAMvC,OAAO,EACL,KAAK,iBAAiB,EACtB,KAAK,gBAAgB,EACrB,KAAK,iBAAiB,EACvB,MAAM,8BAA8B,CAAC;AAEtC,MAAM,MAAM,kBAAkB,GAC1B,WAAW,GACX,oBAAoB,GACpB,oBAAoB,GACpB,4BAA4B,CAAC;AASjC,MAAM,WAAW,WAAW;IAC1B,CAAC,EAAE,MAAM,CAAC;IACV,CAAC,EAAE,MAAM,CAAC;CACX;AAED,MAAM,WAAW,YA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;AAED,qFAAqF;AACrF,wBAAgB,mCAAmC,CACjD,KAAK,EAAE,wBAAwB,GAC9B,UAAU,CAiCZ;AA+LD;;;GAGG;AACH,wBAAgB,sBAAsB,CACpC,KAAK,EAAE,2BAA2B,GACjC,iBAAiB,CAAC,uBAAuB,CAAC,CA6H5C;AAED;;;;;GAKG;AACH,wBAAgB,iCAAiC,CAC/C,KAAK,EAAE,sCAAsC,GAC5C,iBAAiB,CAAC,wBAAwB,CAAC,CA0C7C;AAED;;;;GAIG;AACH,wBAAgB,0BAA0B,CACxC,KAAK,EAAE,+BAA+B,GACrC,iBAAiB,CAAC,iBAAiB,CAAC,CAsCtC"}
@@ -1,4 +1,12 @@
1
1
  // SPDX-License-Identifier: Apache-2.0
2
+ /**
3
+ * Module boundary and integration notes.
4
+ * Transforms a continuous native raster edge-coordinate point into oriented capture coordinates. Pixel
5
+ * centers can be represented with +0.5 offsets.
6
+ * Transforms an oriented raster edge-coordinate point back to native coordinates.
7
+ * @see docs/PHYSICS_FOUNDATION.md for equations, coordinate/unit conventions, blockers and support
8
+ * limits.
9
+ */
2
10
  import { calculateFieldOfViewBounds } from "../camera/field-of-view.js";
3
11
  import { calculatedResult } from "../core/calculation-result.js";
4
12
  import { InvalidScientificInputError, requirePositiveFinite, requirePositiveInteger } from "../core/validation.js";