dfof¶
-
seas.video.dfof(array, win_size: Optional[int] = None, win_type: str = 'box')[source]¶ Calculates the change in fluorescence over mean fluorescense for a video. If no win_size is given, it will calculate the dfof using an average projection of the whole video. Define window size and window type from (see function from time course analysis) to calculate a rolling average dfof.
- Parameters
array – The input (x,y,t or xy,t) array to calculate dfof of.
win_size – The temporal window size to calculate rolling mean effects, if applicable.
win_type – The type of windowing effect applied to the movie.
- Returns
The array after dfof is applied.
- Return type
array