NDImageSlicer#

NDImageSlicer#

Constructor#

NDImageSlicer(data, dims, display_dims[, ...])

NDSlicer subclass for n-dimensional image data.

Properties#

NDImageSlicer.compute_histogram

get or set whether or not to compute the histogram

NDImageSlicer.data

get or set managed data.

NDImageSlicer.dims

dim names, ordered as laid out in the array

NDImageSlicer.display_dims

Subset of dims that are spatial (rendered) dimensions in display order.

NDImageSlicer.display_dims_indices

The ordered spatial dim indices that correspond to the named spatial dims

NDImageSlicer.histogram

an estimate of the histogram of the data, (histogram_values, bin_edges).

NDImageSlicer.n_slider_dims

number of slider dims, i.e. len(slider_dims).

NDImageSlicer.ndim

number of dims

NDImageSlicer.rgb_dim

get or set the RGB(A) dim name, None if no RGB(A) dim exists

NDImageSlicer.shape

interpreted shape of the data

NDImageSlicer.slider_dims

Slider dim names, set(dims) - set(display_dims), unordered

NDImageSlicer.slider_maps

Get or set the per-slider-dim mapping from reference-space values to local array indices, {dim_name: transform}.

NDImageSlicer.spatial_func

Get or set the spatial function which is applied on the data slice after the window functions.

NDImageSlicer.tooltip

whether or not a custom tooltip formatter method exists

NDImageSlicer.window_funcs

Get or set the per-slider-dim window functions applied around the current slider position, {dim_name: (func, window_size)}, ex: {"time": (np.mean, 2.5)}.

NDImageSlicer.window_order

get or set dimension order in which window functions are applied

Methods#

NDImageSlicer.close()

Shut down the thread pool.

NDImageSlicer.get(indices)

Get the data at the given index, process data through the window functions.

NDImageSlicer.get_window_output(indices)

Take the data slice at the given indices and apply the window functions.

NDImageSlicer.tooltip_format(*args)

Override in subclass to format custom tooltips