Reconstructed Background#

Returned by cnmf.get_rcb() extension.

class mesmerize_core.arrays.LazyArrayRCB(spatial, temporal, frame_dims)#

Lazy array for reconstructed background, i.e. b ⊗ f

Parameters:
  • spatial (np.ndarray) – spatial components

  • temporal (np.ndarray) – temporal components

  • frame_dims (Tuple[int, int]) – frame dimensions

as_numpy()#

NOT RECOMMENDED, THIS COULD BE EXTREMELY LARGE. Converts to a standard numpy array in RAM.

Return type:

np.ndarray

property dtype: str#

str data type

property max: float#

float max value of the array if it were fully computed

property max_image: ndarray#

max projection image

property mean_image: ndarray#

mean projection image

property min: float#

float min value of the array if it were fully computed

property min_image: ndarray#

min projection image

property n_frames: int#

int number of frames

property nbytes: int#

int number of bytes for the array if it were fully computed

property nbytes_gb: float#

float number of gigabytes for the array if it were fully computed

property ndim: int#

int Number of dimensions

property shape: Tuple[int, int, int]#

Tuple[int] (n_frames, dims_x, dims_y)

property std_image: ndarray#

standard deviation projection image