VideoSlicer#

VideoSlicer#

Constructor#

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

NDImageSlicer subclass for video data, used by NDWSubplot.add_video().

Properties#

VideoSlicer.compute_histogram

get or set whether or not to compute the histogram

VideoSlicer.data

get or set managed data.

VideoSlicer.dims

dim names, ordered as laid out in the array

VideoSlicer.display_dims

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

VideoSlicer.display_dims_indices

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

VideoSlicer.histogram

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

VideoSlicer.n_slider_dims

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

VideoSlicer.ndim

number of dims

VideoSlicer.rgb_dim

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

VideoSlicer.shape

interpreted shape of the data

VideoSlicer.slider_dims

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

VideoSlicer.slider_maps

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

VideoSlicer.spatial_func

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

VideoSlicer.tooltip

whether or not a custom tooltip formatter method exists

VideoSlicer.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)}.

VideoSlicer.window_order

get or set dimension order in which window functions are applied

Methods#

VideoSlicer.close()

Shut down the thread pool.

VideoSlicer.get(indices)

Similar to NDImage.get() but accounts for TupleYUV output.

VideoSlicer.get_window_output(indices)

Get the frame at the given indices, squeezing out the slider dims.

VideoSlicer.tooltip_format(*args)

Override in subclass to format custom tooltips