@@ -47,32 +47,32 @@ largely there to preserve backwards compatibility.
47
47
48
48
The following guidance should be observed if performance is an important factor
49
49
50
- * Instantiate :class: `~pyqtgraph.ImageItem ` with :python: `axisOrder='row-major' `
51
-
52
- * Alternatively, set the global configuration optionally
53
- :python: `pyqtgraph.setConfigOption('imageAxisOrder', 'row-major') `
54
-
55
- * Use C-contiguous image data.
56
- * For 1 or 3 channel data, use `uint8 `, `uint16 `, `float32 `, or `float64 `
57
- ``image `` dtype.
58
- * For 4-channel data, use `uint8 ` or `uint16 ` with :python":`levels=None `.
59
- * ``levels `` should be single channel (if 1 or 3 channel data).
60
-
61
- * Setting :python: `levels=None ` will trigger autoLevels sampling, and thus should
62
- be avoided if possible.
63
-
64
- * If using LUTs (lookup tables), ensure they have a dtype of `uint8 ` and have 256
65
- points or less, and that. That can be accomplished with calling:
66
-
67
- * :func: `ImageItem.setColorMap <pyqtgraph.ImageItem.setColorMap> ` or
68
- * :func: `ImageItem.setLookupTable <pyqtgraph.ImageItem.setLookupTable> ` with
69
- :python: `ColorMap.getLookupTable(nPts=256) ` (default is :python: `nPts=512 `)
70
-
71
- * For floating point ``image `` arrays, prefer `float32 ` dtype to `float64 `
72
- and avoid ``NaN `` values.
73
- * Enable Numba with :python: `pyqtgraph.setConfigOption('useNumba', True) `
74
-
75
- * JIT compilation will only accelerate repeated image display.
50
+ * Instantiate :class: `~pyqtgraph.ImageItem ` with :python: `axisOrder='row-major' `
51
+
52
+ * Alternatively, set the global configuration optionally
53
+ :python: `pyqtgraph.setConfigOption('imageAxisOrder', 'row-major') `
54
+
55
+ * Use C-contiguous image data.
56
+ * For 1 or 3 channel data, use `uint8 `, `uint16 `, `float32 `, or `float64 `
57
+ ``image `` dtype.
58
+ * For 4-channel data, use `uint8 ` or `uint16 ` with :python":`levels=None `.
59
+ * ``levels `` should be single channel (if 1 or 3 channel data).
60
+
61
+ * Setting :python: `levels=None ` will trigger autoLevels sampling, and thus should
62
+ be avoided if possible.
63
+
64
+ * If using LUTs (lookup tables), ensure they have a dtype of `uint8 ` and have 256
65
+ points or less, and that. That can be accomplished with calling:
66
+
67
+ * :func: `ImageItem.setColorMap <pyqtgraph.ImageItem.setColorMap> ` or
68
+ * :func: `ImageItem.setLookupTable <pyqtgraph.ImageItem.setLookupTable> ` with
69
+ :python: `ColorMap.getLookupTable(nPts=256) ` (default is :python: `nPts=512 `)
70
+
71
+ * For floating point ``image `` arrays, prefer `float32 ` dtype to `float64 `
72
+ and avoid ``NaN `` values.
73
+ * Enable Numba with :python: `pyqtgraph.setConfigOption('useNumba', True) `
74
+
75
+ * JIT compilation will only accelerate repeated image display.
76
76
77
77
Internally, pyqtgraph attempts to directly construct a :class: `QImage ` using a
78
78
combination of :class: `QImage.Format <QImage.Format> ` options and
0 commit comments