PYME.DSView.displayOptions module¶
- class PYME.DSView.displayOptions.DisplayOpts(datasource, xp=0, yp=0, zp=0, aspect=1)¶
Bases:
object- ACTION_POSITION = 0¶
- ACTION_SELECTION = 1¶
- ACTION_SELECT_OBJECT = 2¶
- EndSelection()¶
- GetActiveChans()¶
- GetSliceSelection()¶
- OnChange()¶
- Optimise(method='percentile')¶
- ROT90 = 1¶
- ResetSelection()¶
- SLICE_XY = 0¶
- SLICE_XZ = 1¶
- SLICE_YZ = 2¶
- SetAspect(aspect)¶
- SetCMap(chan, cmap)¶
- SetDataStack(datasource)¶
- SetGain(chan, gain)¶
- SetOffset(chan, offset)¶
- SetOrientation(orientation)¶
- SetScale(scale)¶
- SetSelection(begin, end)¶
- SetSlice(slice)¶
- Show(chan, sh=True)¶
- Synchronise(other)¶
- UPRIGHT = 0¶
- property complexMode¶
- get_hist_data(subsample_threshold=10000.0)¶
Get data to display in an image histogram. Only returns a subset of the data for large images
- Parameters
- subsample_threshold: int/float, default=10000
Number of pixels above which to subsample when calculating histogrammes. The default value of 10,000 is enough to give a visually accurate histogram representation whilst ensuring that the time to compute the histogram (and by extension display latency) remains reasonable. When using get_hist_data for other purposes (e.g. data scaling) it might be prudent to increase this, especially if wanting to capture minima and maxima on signals which are very sparse.
- Returns
- property sorted_selection¶
- property thresholds¶
- property tp¶
- property xp¶
- property yp¶
- property zp¶
- PYME.DSView.displayOptions.fast_grey(data)¶
- PYME.DSView.displayOptions.labeled(data)¶