Giter VIP home page Giter VIP logo

mhraisr's Introduction

RAISR

A Python implementation of RAISR. Supporting color images.

How To Use

Prerequisites

You can install most of the following packages using pip.

Training

Put your training images in the train directory, and run the following command to start training.

python train.py

The learned filters will be saved in the root directory of the project.

Testing

Put your testing images in the test directory, and run the following command to start generating high resolution images using RAISR.

python test.py

The result will be saved in the results directory.

Visualization

Visualing the learned filters

Uncomment the following line in train.py.

# filterplot(h, R, Qangle, Qstrength, Qcoherence, patchsize)

Visualing the process of RAISR image upscaling

Uncomment the following line in test.py.

# plt.show()

Testing Results

Comparing between original image, bilinear interpolation and RAISR:

Origin Bilinear Interpolation RAISR
origin_gray_crop bmp cheap_crop bmp raisr_gray_crop bmp

Other results using images taken from BSDS500 database and ArTe-Lab 1D Medium Barcode Dataset:

Origin RAISR
origin_crop bmp raisr_crop bmp
origin_crop bmp raisr_crop bmp
origin_crop bmp raisr_crop bmp

References

  • Y. Romano, J. Isidoro and P. Milanfar, "RAISR: Rapid and Accurate Image Super Resolution" in IEEE Transactions on Computational Imaging, vol. 3, no. 1, pp. 110-125, March 2017.
  • P. Arbelaez, M. Maire, C. Fowlkes and J. Malik, "Contour Detection and Hierarchical Image Segmentation", IEEE TPAMI, Vol. 33, No. 5, pp. 898-916, May 2011.
  • Alessandro Zamberletti, Ignazio Gallo and Simone Albertini, "Robust Angle Invariant 1D Barcode Detection", Proceedings of the 2nd Asian Conference on Pattern Recognition (ACPR), Okinawa, Japan, 2013

License

MIT. Copyright (c) 2017 James Chen

mhraisr's People

Contributors

movehand avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.