Liking cljdoc? Tell your friends :D

clojure2d.extra.segmentation

Segment image into parts.

Currently contains only quadtree segmentation.

Segment image into parts.

Currently contains only quadtree segmentation.
raw docstring

*sequence-generator*clj

Sequence generator used to select pixels for decision about subdivision. Defaults to R2 low-discrepancy sequence.

Sequence generator used to select pixels for decision about subdivision. Defaults to `R2` low-discrepancy sequence.
sourceraw docstring

segment-pixelsclj

(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 segment
  • max-size is maximum size
  • threshold is accuracy (minimum std dev of pixel values to make decision about subdivision).

Returns lazy sequence of vectors containing [x y size] where [x y] is segment position and size is a side length.

For segmentation, sequence generator (dynamic variable *sequence-generator* is used.

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 lazy sequence of vectors containing [x y size] where [x y] is segment position and `size` is a side length.

For segmentation, sequence generator (dynamic variable `*sequence-generator*` is used.
sourceraw docstring

cljdoc is a website building & hosting documentation for Clojure/Script libraries

× close