Segment image into parts.
Currently contains only quadtree segmentation.
Segment image into parts. Currently contains only quadtree segmentation.
(segment-pixels p ch)
(segment-pixels p
ch
{:keys [min-size max-size threshold]
:or {min-size 4 max-size 256 threshold 15.0}})
Decompose channel ch
from Pixels
into square segments using quadtree decomposition.
min-size
is minimum size of segmentmax-size
is maximum sizethreshold
is accuracy (minimum std dev of pixel values to make decision about subdivision.Returns list of of vectors containing [x y size] where [x y] is segment position and size
is a side length.
Decompose channel `ch` from `Pixels` into square segments using quadtree decomposition. * `min-size` is minimum size of segment * `max-size` is maximum size * `threshold` is accuracy (minimum std dev of pixel values to make decision about subdivision. Returns list of of vectors containing [x y size] where [x y] is segment position and `size` is a side length.
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close