mahos.meas.confocal.ConfocalIO#
- class mahos.meas.confocal.ConfocalIO(logger=None)#
IO class for Confocal.
- save_image(filename: str, image: Image, note: str = '') bool #
Save image to filename. return True on success.
- export_image(filename: str, image: Image, params: dict | None = None) bool #
Export the image to text or image files.
- Parameters:
params.only (bool) – set True to use image only mode
params.pos (tuple[float,float]|None) – if given, position crosshair is plotted
params.vmin (float) – lower limit of intensity value
params.vmax (float) – upper limit of intensity value
params.invX (bool) – set True to invert x-axis
params.invY (bool) – set True to invert y-axis
params.cmap (str) – matplotlib colormap name
params.aspect (str|float) – matplotlib aspect
params.figsize (tuple[float, float]) – matplotlib figure size (w, h)
params.fontsize (float) – matplotlib fontsize
params.dpi (float) – matplotlib dpi