Encoding and decoding spatio-temporal information for super-resolution microscopy