Skip to content

Commit ae5e91b

Browse files
committed
clarify levels in performance section, again
1 parent b84f15a commit ae5e91b

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

doc/source/api_reference/graphicsItems/imageitem.rst

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -58,8 +58,10 @@ The following guidance should be observed if performance is an important factor
5858
* For 1 or 3 channel data, use `uint8`, `uint16`, `float32`, or `float64` ``image``
5959
dtype.
6060
* For 4-channel data, use `uint8` or `uint16` with :python:`levels=None`.
61-
* ``levels`` should be set to (even if to ``None``) to avoid autoLevels sampling.
62-
* ``levels`` should be single channel or ``None``.
61+
* ``levels`` should be set to either to ``None`` or to single channel ``[min, max]``
62+
63+
* Not setting ``levels`` will trigger autoLevels sampling
64+
6365
* If using LUTs (lookup tables), ensure they have a dtype of `uint8` and have 256
6466
points or less, and that. That can be accomplished with calling:
6567

0 commit comments

Comments
 (0)