montage_visualizer
tit.tools.montage_visualizer ¶
Render PNG visualizations of electrode montage placements.
Overlays coloured rings and arc connections on a template EEG cap
image using ImageMagick convert. Called automatically by the
simulation pipeline to document the active montage.
Public API¶
visualize_montage Render a PNG for a single montage or a combined multi-montage image.
See Also¶
tit.tools.map_electrodes : Map optimised positions to net labels. tit.sim : Simulation pipeline that invokes the visualiser.
get_expected_output_filename ¶
Return the expected montage visualization PNG filename.
Source code in tit/tools/montage_visualizer.py
is_skipped_net ¶
is_supported_net ¶
visualize_montage ¶
visualize_montage(montage_name: str, electrode_pairs: list[list[str]], eeg_net: str, output_dir: str, sim_mode: str = 'U', logger=None) -> None
Render a PNG showing electrode positions and connection arcs.
Parameters¶
montage_name : str
Used as the output filename base (unipolar) or "combined"
(multipolar).
electrode_pairs : list of list of str
Electrode pairs, e.g.
[["E030", "E020"], ["E095", "E070"]].
eeg_net : str
EEG cap name, e.g. "GSN-HydroCel-185.csv".
output_dir : str
Directory to write the output PNG(s) into.
sim_mode : str, optional
"U" produces one image per montage; "M" produces a
single combined image. Default "U".