Skip to content
/ omp Public

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.

Notifications You must be signed in to change notification settings

BeLuckyDaf/omp

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

27 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

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.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published