@@ -14,19 +14,19 @@ export mapwindow, mapwindow!
1414 border = "replicate",
1515 indices = default_imginds(img, window, border), callmode=:copy!)
1616
17- Apply `f` to sliding windows of `img`` , with window size or axes specified by window. For
17+ Apply `f` to sliding windows of `img`, with window size or axes specified by window. For
1818example, `mapwindow(median!, img, window)` returns an Array of values similar to `img`
1919(median-filtered, of course), whereas `mapwindow(extrema, img, window)` returns an Array of
20- (min, max) tuples over a window of size window centered on each point of `img`.
20+ (min, max) tuples over a window of size ` window` centered on each point of `img`.
2121
22- The function `f` receives a buffer `buf`` for the window of data surrounding the current point.
22+ The function `f` receives a buffer `buf` for the window of data surrounding the current point.
2323
24- If `window`` is specified as a Dims-tuple (tuple-of-integers), then all the integers must be
24+ If `window` is specified as a Dims-tuple (tuple-of-integers), then all the integers must be
2525odd and the window is centered around the current image point.
2626
27- For example, if `window = (3,3)`, then `f` will receive an Array `buf``
28- corresponding to offsets (-1:1, -1:1) from the `imgf[i, j]` ` for which this is
29- currently being computed. Alternatively, window can be a tuple of
27+ For example, if `window = (3,3)`, then `f` will receive an Array `buf`
28+ corresponding to offsets ` (-1:1, -1:1)` from the `imgf[i, j]` for which this is
29+ currently being computed. Alternatively, ` window` can be a tuple of
3030`AbstractUnitRange`s, in which case the specified ranges are used for `buf`; this
3131allows you to use asymmetric windows if needed.
3232
0 commit comments