Coder Social home page Coder Social logo

cudaimageprocessor's Introduction

GPU-accelerated image processor

Screenshot A simple GPU-accelerated command-line image processor. Image processing features are implemented on a GPU using CUDA, which can significantly speed-up hi-res image processing.

External libraries used:

  • NVIDIA CUDA (a capable GPU is required)
  • OpenCV
  • Boost

Features:

  • Command-line UI
  • Edit history (with undo and redo functions)
  • NVIDIA GPU driver detection and CUDA availability checking on Windows and Linux
  • Basic image processing operations

In development:

  • Histogram
  • Applying custom LUTs
  • Batch image processing
  • GUI
  • And more!

Currently available commands:

General functions:
- quit - Exits the program
- load [file_path] - Loads the image from the selected path
- save [file_path] - Saves the edited image to the selected path
- undo - Reverts the latest change
- redo - Performs the latest reverted action
- show [~scale] - Opens the image preview window. If the custom scale (in percentage, i.e. 75% -> scale = 75) is not specified, the window will be automatically scaled to fit 80% of main screen's vertical resolution.
- history - Shows the history of changes
- clear - Clears the notification area
- help - Shows the help screen

Actions:
- brightness [value] - Changes brightness of the image by specified value (it can be either negative or positive number)
- contrast [value] - Changes contrast of the image by specified value (range: <-255,255>)
- equalize - Performs histogram equalization (automatic global contrast correction)
- invert - Inverts colors of the image
- crop [x] [y] [width] [height] - Trims the image from the coordinates (x,y) to (x+width, y+height). Constraints: x+width < full width; y+height < full height.
- resize [width] [height] - Resizes the image to the specified size

(~ - optional)

cudaimageprocessor's People

Contributors

jakubochnik avatar

Stargazers

Dominik Lau avatar Piotr Woźniak avatar  avatar

Watchers

 avatar

cudaimageprocessor's Issues

GPU pointer gets damaged when changing image size

Steps:

1. load *IMG_PATH*
2. resize *NEW_SIZE_X* *NEW_SIZE_Y*
3. contrast *any number*
4. show  

**Image is broken**

Description:
There seems to be a problem with the GPU memory reallocation process.
As GPU memory leaks may lead to display driver crashes, be highly cautious (especially with debugging).

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.