Pure cross-platform Clojure/ClojureScript (.cljc) implementation of client-side Hermite soft-ramp alpha matting, foreground color-spill decontamination, and DICOM PS3.3 Section 10.7 anisotropic pixel-spacing Euclidean measurement.
Pure cross-platform Clojure/ClojureScript (.cljc) implementation of client-side Hermite soft-ramp alpha matting, foreground color-spill decontamination, and DICOM PS3.3 Section 10.7 anisotropic pixel-spacing Euclidean measurement.
(calibrated-distance-mm {:keys [row-spacing col-spacing]}
[col1 row1]
[col2 row2])Computes calibrated Euclidean distance per NEMA DICOM PS3.3 Section 10.7.1.3: row-spacing (Value 1) scales vertical row displacement (delta-row), col-spacing (Value 2) scales horizontal column displacement (delta-col).
Computes calibrated Euclidean distance per NEMA DICOM PS3.3 Section 10.7.1.3: row-spacing (Value 1) scales vertical row displacement (delta-row), col-spacing (Value 2) scales horizontal column displacement (delta-col).
(clamp x lo hi)Clamps numeric value x into the closed interval [lo, hi].
Clamps numeric value x into the closed interval [lo, hi].
(compute-pixel-matte {:keys [tolerance softness decon-strength]
:or {tolerance 34.0 softness 22.0 decon-strength 0.75}}
[r g b a]
[br bg bb])Computes alpha [0.0..1.0] and decontaminated [fr fg fb] foreground tuple for an RGBA pixel. Unmixes observed C = alpha * F + (1 - alpha) * B along semi-transparent transition bands.
Computes alpha [0.0..1.0] and decontaminated [fr fg fb] foreground tuple for an RGBA pixel. Unmixes observed C = alpha * F + (1 - alpha) * B along semi-transparent transition bands.
(hermite-smoothstep edge0 edge1 x)Computes cubic Hermite smoothstep 3t^2 - 2t^3 across [edge0, edge1].
Computes cubic Hermite smoothstep 3t^2 - 2t^3 across [edge0, edge1].
(perceptual-luma-distance [r g b] [br bg bb])Computes BT.601 weighted Euclidean chroma distance between [r g b] and background key [br bg bb].
Computes BT.601 weighted Euclidean chroma distance between [r g b] and background key [br bg bb].
cljdoc builds & hosts documentation for Clojure/Script libraries
| Ctrl+k | Jump to recent docs |
| ← | Move to previous article |
| → | Move to next article |
| Ctrl+/ | Jump to the search field |