You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/codox/clojure2d.extra.overlays.html
+2-2Lines changed: 2 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -33,5 +33,5 @@
33
33
800
34
34
{:alpha 128,
35
35
:intensities [10 50 100 150 200 250]})
36
-
...)</code></pre><imgsrc="../images/overlays/4752e32f7ef6d9ef5c632f64b20a98c9.jpg" /></div></div><divclass="src-link"><ahref="https://github.com/Clojure2D/clojure2d/blob/master/src/clojure2d/extra/overlays.clj#L235">view source</a></div></div><divclass="public anchor" id="var-spots-overlay"><h3>spots-overlay</h3><divclass="usage"><code>(spots-overlay w h {:keys [alpha intensities], :or {alpha 80, intensities [60 120]}})</code><code>(spots-overlay w h)</code></div><divclass="doc"><divclass="markdown"><p>Create vector of spotted overlays. Input: spots transparency (default 80), list of intensities (int values from 0 to 255, default [60 120]) and size of overlay.</p></div></div><divclass="markdown"><h4>Examples</h4><div><blockquote><p>Generate spots overlay (it’s a list of images)</p></blockquote><pre><codeclass="hljs clojure">(count (spots-overlay 300 300 {:alpha 80, :intensities [10 100 200]}))
...)</code></pre><imgsrc="../images/overlays/4752e32f7ef6d9ef5c632f64b20a98c9.jpg" /></div></div><divclass="src-link"><ahref="https://github.com/Clojure2D/clojure2d/blob/master/src/clojure2d/extra/overlays.clj#L236">view source</a></div></div><divclass="public anchor" id="var-spots-overlay"><h3>spots-overlay</h3><divclass="usage"><code>(spots-overlay w h {:keys [alpha intensities], :or {alpha 80, intensities [60 120]}})</code><code>(spots-overlay w h)</code></div><divclass="doc"><divclass="markdown"><p>Create vector of spotted overlays. Input: spots transparency (default 80), list of intensities (int values from 0 to 255, default [60 120]) and size of overlay.</p></div></div><divclass="markdown"><h4>Examples</h4><div><blockquote><p>Generate spots overlay (it’s a list of images)</p></blockquote><pre><codeclass="hljs clojure">(count (spots-overlay 300 300 {:alpha 80, :intensities [10 100 200]}))
<p>Currently contains only quadtree segmentation.</p></div><divclass="markdown"><h4>Categories</h4><ul></ul><p>Other vars: <ahref="clojure2d.extra.segmentation.html#var-segment-pixels">segment-pixels</a></p></div></div><divclass="public anchor" id="var-segment-pixels"><h3>segment-pixels</h3><divclass="usage"><code>(segment-pixels p ch)</code><code>(segment-pixels p ch {:keys [min-size max-size threshold], :or {min-size 4, max-size 256, threshold 15.0}})</code></div><divclass="doc"><divclass="markdown"><p>Decompose channel <code>ch</code> from <code>Pixels</code> into square segments using quadtree decomposition.</p>
5
+
<ul>
6
+
<li><code>min-size</code> is minimum size of segment</li>
7
+
<li><code>max-size</code> is maximum size</li>
8
+
<li><code>threshold</code> is accuracy (minimum std dev of pixel values to make decision about subdivision.</li>
9
+
</ul>
10
+
<p>Returns list of of vectors containing [x y size] where [x y] is segment position and <code>size</code> is a side length.</p></div></div><divclass="markdown"><h4>Examples</h4><div><blockquote><p>Usage</p></blockquote><pre><codeclass="hljs clojure">(count (segment-pixels (p/load-pixels "docs/cockatoo.jpg") 0))
;;=> 1.0592537251772889</code></pre></div></div><divclass="src-link"><ahref="https://github.com/Clojure2D/clojure2d/blob/master/src/clojure2d/extra/signal.clj#L387">view source</a></div></div><divclass="public anchor" id="var-effect"><h3>effect</h3><h4class="type">multimethod</h4><divclass="usage"></div><divclass="doc"><divclass="markdown"><p>Create effect for given name (as keyword) and optional parametrization.</p>
217
217
<p>List of all possible effects is under <ahref="clojure2d.extra.signal.html#var-effects-list">effects-list</a>.</p>
...)</code></pre><imgsrc="../images/signal/e6ac224e29951cf46cddcacc14019d76.jpg" /></div></div><divclass="src-link"><ahref="https://github.com/Clojure2D/clojure2d/blob/master/src/clojure2d/extra/signal.clj#L1061">view source</a></div></div><divclass="public anchor" id="var-wave"><h3>wave</h3><h4class="type">multimethod</h4><divclass="usage"></div><divclass="doc"><divclass="markdown"><p>Create waves from various oscilators</p>
0 commit comments