Giter VIP home page Giter VIP logo

image-processor's Introduction

Image Processor

A Python project that provides functionalities to sharpen or apply noise removal to an image. It utilizes Nvidia's Warp library for efficient parallel computation.

Prerequisites

  • Python 3.x
  • NumPy
  • Pillow
  • Nvidia Warp library

Installation

pip install -r requirements.txt

Usage

python3 image_processing.py flag kernel_size parameter input_file output_file
  • flag: Specify -n for noise removal or -s for sharpening.
  • kernel_size: Size of the kernel for mean filtering or unsharp masking. Must be an odd integer greater than 0.
  • parameter: The parameter for unsharp masking. A floating-point value.
  • input_file: Path to the input image file.
  • output_file: Path to save the processed output image.

Examples

Noise Removal

To apply noise removal to a grayscale image with a kernel size of 3, run the following command:

python3 image_processing.py -n 3 0.5 input_image.png output_image.png

Sharpening

To perform image sharpening on a color image with a kernel size of 5 and a parameter of 0.8, run the following command:

python3 image_processing.py -s 5 0.8 input_image.png output_image.png

Algorithms

  • The unsharp masking algorithm is used to sharpen the image.
  • The mean average filtering algorithm is used for noise removal.

image-processor's People

Contributors

farid-hamid-4 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.