PYME.IO.buffers module¶
Created on Fri Apr 3 10:45:24 2015
@author: david
- class PYME.IO.buffers.SliceBuffer(dataSource, bLen=12)¶
Bases:
object
Replacement candidate for dataBuffer which avoids memory copying
- getSlice(ind)¶
- class PYME.IO.buffers.backgroundBufferM(dataBuffer, percentile=0.5)¶
Bases:
object
- getBackground(bgindices)¶
- refresh_settings(percentile, buffer_length)¶
Change percentile.
- Parameters
- percentilefloat
fractional index to grab at each pixel (i.e. 0.5 corresponds to the median)
- buffer_lengthint
ignored, as this buffer grows itself as needed.
- class PYME.IO.buffers.backgroundBufferMC(*args, **kwargs)¶
Bases:
backgroundBufferM
- class PYME.IO.buffers.bgFrameBuffer(initialSize=30, percentile=0.25)¶
Bases:
object
- MAXIDX = 10000¶
- MAXSHORT = 65535¶
- addFrame(frameNo, data)¶
- getPercentile(pctile)¶
- removeFrame(frameNo)¶
- class PYME.IO.buffers.bgFrameBufferC(initialSize=30, percentile=0.25)¶
Bases:
bgFrameBuffer
- addFrame(frameNo, data)¶
- getPercentile(pctile)¶
- removeFrame(frameNo)¶