PYME.IO.DataSources.MultiviewDataSource module

A DataSource which crops multiple separated (but equal sized) ROIs out of a larger frame and then recombines them.

Useful for situations such as multi-view imaging where there is blank space between the views - e.g. the Bewersdorf lab biplane setup.

Views are concatenated along the x-axis

class PYME.IO.DataSources.MultiviewDataSource.DataSource(dataSource, croppingInfo)

Bases: PYME.IO.DataSources.BaseDataSource.BaseDataSource

Create a new Multiview data source in which multiple ROIs are cropped from an original image and concatenated. Used principally for cutting horizontally spaced ROIs out of a vertical band of the sCMOS chip, where there is dark space between the images and we want to avoid saving and transmitting this dark data.

Parameters:

dataSource : PYME.IO.DataSources.X data source object

The DataSource to crop from

croppingInfo : “dictionary like” object

Information about how to crop the image. Can either be a dictionary, or something which behaves like a dictionary (e.g. a MetaDataHandler). The cropping info should define the keys defined in CROP_INFO_YU above.

Attributes

nTrueDims The number of dimensions which are truely present within the data,
shape The 4D shape of the datasource
oldData  
oldSlice  

Methods

getEvents()
getNumSlices()
getSlice(ind)
getSliceShape()
release()
reloadData()
getEvents()
getNumSlices()
getSlice(ind)
getSliceShape()
moduleName = 'MultiviewDataSource'
release()
reloadData()