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]:= | ![gob = ImageResize[
  ResourceData["Sample Image: Girl on a Blue Background"], 128]](https://www.wolframcloud.com/obj/resourcesystem/images/e8f/e8ff2e36-5f2d-4724-ad1e-c0931b33ceab/243f72032fe6edf6.png) | 
| Out[1]= |  | 
Zoom in to four times the size:
| In[2]:= | ![ResourceFunction["ImageSuperResolution"][gob]](https://www.wolframcloud.com/obj/resourcesystem/images/e8f/e8ff2e36-5f2d-4724-ad1e-c0931b33ceab/3daac02d3c0b1667.png) | 
| Out[2]= |  | 
Compare to the original picture:
| In[3]:= | ![ImageResize[gob, 256]](https://www.wolframcloud.com/obj/resourcesystem/images/e8f/e8ff2e36-5f2d-4724-ad1e-c0931b33ceab/6b8c1c74521e6d1f.png) | 
| Out[3]= |  | 
Get an image resized to 128×128:
| In[4]:= | ![gob = ImageResize[
  ResourceData["Sample Image: Girl on a Blue Background"], 128]](https://www.wolframcloud.com/obj/resourcesystem/images/e8f/e8ff2e36-5f2d-4724-ad1e-c0931b33ceab/3aa27acef57e57d0.png) | 
| Out[4]= |  | 
The magnification factor need not be an integer:
| In[5]:= | ![ResourceFunction["ImageSuperResolution"][gob, 1.5, Method -> "ESRGAN"]](https://www.wolframcloud.com/obj/resourcesystem/images/e8f/e8ff2e36-5f2d-4724-ad1e-c0931b33ceab/5e7f49e6258742af.png) | 
| Out[5]= |  | 
Magnification using ImageSuperResolution is less blurry than with ImageResize:
| In[6]:= | ![ImageResize[gob, Scaled[1.5], Resampling -> {"OMOMS", 7}]](https://www.wolframcloud.com/obj/resourcesystem/images/e8f/e8ff2e36-5f2d-4724-ad1e-c0931b33ceab/53d1bb81110ede0d.png) | 
| Out[6]= |  | 
This work is licensed under a Creative Commons Attribution 4.0 International License