Skip to content

Simple educational-purpose multi-threaded image grayscaler - OpenMP version

License

Notifications You must be signed in to change notification settings

xeptore/grayscaler-openmp

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

OpenMP Grayscaler

Simple educational-purpose multi-threaded image grayscaler - OpenMP version

Currently, only jpeg images are supported using libjpeg.

Usage

  1. Configure

    You can configure

    • input image name (INPUT_IMAGE_FILENAME)
    • output images name (OUTPUT_IMAGE_FILENAME)
    • number of worker threads (NUM_THREADS)

    configuration parameters in config.h file.

  2. Build

    cmake -S . -B build -DCMAKE_BUILD_TYPE=Release
    cmake --build build

    Change Release to Debug in order to include debugg symbol files with output executable.

  3. Run

    ./build/grayscale

Development

You'll need CMake and a C compiler. I used CMake version 3.20.5 and clang version 12.0.1. If you want to use another compiler, set its path in CMakeLists.txt file (CMAKE_C_COMPILER configuration variable).

About

Simple educational-purpose multi-threaded image grayscaler - OpenMP version

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published