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".
Source code in tit/tools/montage_visualizer.py
222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 | |