A non-transitory machine-readable medium, having encoded thereon program code, wherein, when the program code is executed by a machine, the machine implements a method of image processing, the method comprising:
- (A) applying superresolution processing to a first image frame having a first spatial resolution to generate a second image frame having a second spatial resolution that is higher than the first spatial resolution, wherein step (A) comprises:
- (A1) generating a sparse matrix based on a Markov random field defined over the first image frame and a third image frame having a third spatial resolution that is higher than the first spatial resolution;
- (A2) generating an inverse matrix by inverting the sparse matrix;
- and
- (A3) generating the second image frame using the inverse matrix, wherein:
- the first image frame covers a first scene;
- and
- each of the second and third image frames covers the first scene.