Wolfram Function Repository
Instant-use add-on functions for the Wolfram Language
Function Repository Resource:
Use neural networks to magnify images
ResourceFunction["ImageSuperResolution"][image] Resize the image by a factor of 2. | |
ResourceFunction["ImageSuperResolution"][image,zoom] Resize the image by a factor of zoom in each dimension. |
| "VDSR" | "Very Deep Net for Super-Resolution" |
| "ESRGAN" | "Enhanced Super-Resolution GAN Trained on DIV2K, Flickr2K and OST Data" |
| Automatic | automatically balance performance based on input size |
| "Performance" | the effect is prioritized, and the speed of some algorithms may be very slow |
| "Speed" | speed is prioritized (useful when there is no GPU availability) |
Get an image resized to 128×128:
| In[1]:= |
| Out[1]= | ![]() |
Zoom in to four times the size:
| In[2]:= |
| Out[2]= | ![]() |
Compare to the original picture:
| In[3]:= |
| Out[3]= | ![]() |
Get an image resized to 128×128:
| In[4]:= |
| Out[4]= | ![]() |
The magnification factor need not be an integer:
| In[5]:= |
| Out[5]= | ![]() |
Magnification using ImageSuperResolution is less blurry than with ImageResize:
| In[6]:= |
| Out[6]= | ![]() |
This work is licensed under a Creative Commons Attribution 4.0 International License