photon_mosaic.widgets.series#

Classes

ImagingSeriesWidget(imaging[, epoch_index, ...])

Widget for visualizing an ImagingExtractor series with interactive controls.

plot_imaging_series

class photon_mosaic.widgets.series.ImagingSeriesWidget(imaging, epoch_index=0, frame_index=0, time_range=None, colormap='gray', vmin_percentile=2.0, vmax_percentile=98.0, backend=None, **backend_kwargs)[source]#

Widget for visualizing an ImagingExtractor series with interactive controls.

This widget provides an interactive video player for imaging data using ipywidgets, following the SpikeInterface BaseWidget design pattern.

Parameters:
  • imaging (BaseImaging | dict) – The imaging extractor to visualize. Can be a single BaseImaging object or a dictionary of BaseImaging objects for synchronized multi-view display.

  • epoch_index (int) – Which segment to display, by default 0

  • frame_index (int) – Initial frame to display, by default 0

  • time_range (tuple | None) – Time range to display (start, end) in seconds, by default None (full range)

  • colormap (str) – Colormap for image display, by default ‘gray’

  • vmin_percentile (float) – Minimum percentile for contrast (0-100), by default 2.0

  • vmax_percentile (float) – Maximum percentile for contrast (0-100), by default 98.0

  • backend (str, optional) – Backend to use, by default None

  • **backend_kwargs – Additional backend-specific arguments

Methods

plot_ipywidgets(data_plot, **backend_kwargs)

Interactive ipywidgets plot with video controls.

seek_to_frame(frame_number)

Seek to a specific frame.

seek_to_time(time_seconds)

Seek to a specific time.

plot_ipywidgets(data_plot, **backend_kwargs)[source]#

Interactive ipywidgets plot with video controls.

seek_to_frame(frame_number)[source]#

Seek to a specific frame. :param frame_number: Frame number to seek to :type frame_number: int

seek_to_time(time_seconds)[source]#

Seek to a specific time. :param time_seconds: Time in seconds to seek to :type time_seconds: float

photon_mosaic.widgets.series.plot_imaging_series#

alias of ImagingSeriesWidget