Giter Site home page Giter Site logo

beluckydaf / omp Goto Github PK

View Code? Open in Web Editor NEW
0.0 2.0 0.0 42 KB

A simple program, which allows opening an image file in Netpbm format, applying the Sobel operation to it, distributing the work between several threads, and then saving the resulting image in another file.

C 98.05% Makefile 1.95%
netpbm makefile sobel multithreaded converter gcc make omp

omp's Introduction

Netpbm-Sobel

The program allows the user to open an existing RGB image, convert it to grayscale, apply the Sobel operator to the image and then save it to a file. Once again, the resulting file will contain the image in the grayscale format.

Even though, the task only includes what is described above, the codebase has a lot more potential. It allows to open, read and write to disk any type of Netpbm image: P1..P6.

Building

The project does not have any external dependencies, therefore, to compile the project you just need gcc and make.

In order to build the executable, run make or make netpbm-sobel in the root folder of the project.

The binary can then be found at %PROJECT%/build/netpbm-sobel.

Usage

The program must be executed with the following command line arguments: ./netpbm-sobel "source_image_path" "new_image_path" [threads], where threads is a number of threads to use. This field is optional, if it is omitted, 1 thread is used.

Notes

This project was implemented as a test task for my internship application at OMP (Sailfish Mobile OS RUS).

omp's People

Contributors

beluckydaf avatar

Watchers

 avatar  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.