heartcv.mpx_grid

heartcv.mpx_grid(frames, binsize)[source]

Compute a mean pixel value grid for a sequence of frames at a given binsize.

This function is a required step in calculating energy proxy traits as per the method outlined in Tills et al., 2021.

Parameters
  • frames (list or ndarray or vuba.Frames) – Sequence of frames to compute mean pixel values for.

  • binsize (int) – Binning resolution to create the mean pixel value grid from.

Returns

mpxs – Array of the mean pixel value grid.

Return type

ndarray

Notes

Here, binsize simply refers to the size of individual bins to compute mean pixel values for, e.g. a binsize of 2 would mean that each 2x2 block of pixels in a frame will be reduced to a mean.

See also

epts, spectral_map

References

Tills, O., Spicer, J.I., Ibbini, Z. et al. Spectral phenotyping of embryonic development reveals integrative thermodynamic responses. BMC Bioinformatics 22, 232 (2021). https://doi.org/10.1186/s12859-021-04152-1