pysted.base.TemporalSynapseDmap.set_roi
- TemporalSynapseDmap.set_roi(laser, intervals=None)
Sets the Region of Interest for the acquisition.
Uses a laser generated by the microscope object to determine the biggest ROI allowed, sets the ROI if valid
- Parameters:
laser – An array of the same shape as the lasers which will be used on the datamap
intervals – Values to set the ROI to. Either ‘max’, a dict like {‘rows’: [min_row, max_row], ‘cols’: [min_col, max_col]} or None. If ‘max’, the whole datamap will be padded with 0s, and the original array will be used as ROI. If None, will prompt the user to enter an ROI.