Code Monkey home page Code Monkey logo

image_restoration_pdes's Introduction

Image restoration using PDEs

This is a simple project to test different image restoration methods, based on PDEs. The Image restoring method used here are simple diffusion and the Perona-Malik method. To run the programm main.py, this will launch a GUI in which you can choose the different options, if you prefer you can also run the script test.py and in this one change the parameters of image_name, rest_method and steps.

Libraries needed

This program was developed using Python3 and uses the libraries

  • Numpy
  • OpenCv2
  • Scipy
  • PyQt5
  • Skimage

How to use the GUI

If you run the program main.py it will launch a GUI developed in PyQt5. The steps to follow are the next:

  1. Pres Ctrl + L or click the button [...] to load a damaged image or open the menu file and select Load Image. The program only supporst .png, .bmp and .jpg formats for the moment.
  2. Once you have choosen in the box Select a Method select a method to restore the image.
  3. Select the number of steps on which the restoration method will be iterated.
  4. If you have the original image before damaged and you want to select the Discrepancy Score, check the box Compare with original?
  5. Click Go and wait for results.

IMPORTANT

  • The methods for Image impainting, i.e. impaint_Diff, biharmonic_impainting and impaint_Perona_Malik only work if they have the original image to compare with, reason for which the option Compare with original?must be selected.
  • The region selection is now added but it still have flaws with image of sizes of less than 300x300 pixels.
  • Full size screen present some bugs

Example of Results

example_1

Image damaged

example_2

Imapinting using Perona-Malik for 600 steps

example_3

example_4

Imapinting using Perona-Malik for 3000 steps

example_5

example6

Imapinting using Perona-Malik for 3000 steps

image_restoration_pdes's People

Contributors

j-lazo 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.