@@ -183,9 +183,10 @@ to Colors according to `clims`, `stretch`, and `cmap`.
183
183
184
184
The data is first clamped to `clims`, which can either be a tuple of (min, max)
185
185
values or a function accepting an iterator of pixel values that returns (min, max).
186
- By default, `clims=extrema` i.e. the minimum and maximum of `img`.
186
+ By default, `clims=Percent(99.5)` which sets the display min and max to the central
187
+ 99.5 percentile range of pixel values.
187
188
Convenient functions to use for `clims` are:
188
- `extrema`, `zscale `, and `percent (p)`
189
+ `extrema`, `Zscale `, and `Percent (p)`
189
190
190
191
Next, the data is rescaled to [0,1] and remapped according to the function `stretch`.
191
192
Stretch can be any monotonic fuction mapping values in the range [0,1] to some range [a,b].
@@ -223,7 +224,7 @@ or black if.
223
224
The view returned by `imview` can be saved using general `FileIO.save` methods.
224
225
Example:
225
226
```julia
226
- v = imview(data, cmap=:magma, stretch=asinhstretch, clims=percent (95))
227
+ v = imview(data, cmap=:magma, stretch=asinhstretch, clims=Percent (95))
227
228
save("output.png", v)
228
229
```
229
230
"""
0 commit comments