File Exchange

image thumbnail

Superresolution Demo

version (3.51 MB) by Samuel Cheng
A simple superresolution demo based on POCS.


Updated 10 May 2012

View Version History

View License

This is a superresolution based on projection onto convex sets (POCS).
You can also compare the result with bilinear projection (using only
one of the frames).

To start, run sr_gui in Matlab. Please see readme or watch

for detail instruction.

Cite As

Samuel Cheng (2021). Superresolution Demo (, MATLAB Central File Exchange. Retrieved .

Comments and Ratings (20)

Di Du

For those who had the "start_pos" error, you need to select a region first. Select a region, and zoom in, and then run SR(Color or BW). I had the same problem, and I checked the source code and figured out it was the region selection issue.

Björn Beha

Björn Beha

Ha Tung

Tunhe Zhou


Shashang Bharatrajan

Shashang Bharatrajan

Could you please check the code link, Thanks



Debarati Maiti

Thank you so much for sharing the code with us. Could you please let us know which paper did you refer to for coding this.
Thanks in advance.

Sushil Desai

can anyone please provide me with the papers related to this code. OR rather any reference regarding.


I need some reference for this. Will anyone please provide me.

Gauraang Khurana

For all those who are not able to use the above code

1. Go to File and select a folder where all your images are stored. These must be same, they can be slightly displaced or rotated but the image content must be same.

2. Drag the slider to any no of images, it should be more than 2.

3. Crop the area you want to super resolve. Draw a rectangle on the image. Change zoom level as per your choice.

4. Click on 'Register Images'. This will match the cropped area with rest of your images. This function will find the coordinates of the cropped area in every other figure.

5. Click 'SR(Color)' or black and white as per you like.

Hope this helps.
Leave comments for any queries or email me



I have the same problem than Stephen: I load the images, The rotate, then register them.

When I want to Zoom or execute the SR, the same error appear about the 'start_pos' parameter. Maybe because Matlab 2014 don't work with a old GUI version?


srinikhil ch

can u provide related journal to this

Zhuozheng WANG

Hi, Samuel ,I don't know what happened with your code in Matlab. When I typed 'sui_gui', nothing happened and too many errors. Do you have email. I want to ask you some question. Thank you.

Samuel Cheng

I forgot to put it in the readme. Actually, you are supposed to load the image first. Watching this should help

Stephen Becker

Using R2010a, it doesn't work for me. Clicking most of the buttons (such as the 1x, 2x ...) result in error messages, such as:

??? Reference to non-existent field 'start_pos'.


??? Reference to non-existent field 'images'.

To be more concrete, I can generate the latter error message by:
(1) running "sr_gui"
(2) clicking the "register images" button

I'm not sure if this is because another button needs to be clicked first; if that is the case, then maybe a useful warning message can be generated.


MATLAB Release Compatibility
Created with R2010b
Compatible with any release
Platform Compatibility
Windows macOS Linux

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!