Git Product home page Git Product logo

cuda-medianfilter's Introduction

Sviluppo di codice CUDA per l'ottimizzazione del filtro mediano su immagini 2D

Tesi triennale del Corso di Laurea in Ingegneria e Scienze informatiche

Anno Accademico 2022/2023

Presentata da: Ravaioli Michele

Relatore: Marzolla Moreno

Compilazione ed esecuzione

Per la compilazione dei codici presi in considerazione nell'ambiente Linux, è indispensabile avere installato il compilatore GCC per la compilazione del codice omp-median.c e il compilatore NVCC per la compilazione dei codici CUDA/C. Inoltre, per l'esecuzione dei codici CUDA, è necessario che il sistema sia dotato di almeno una scheda grafica NVIDIA adeguata.

Le immagini di input devono necessariamente essere immagini grayscale in formato .raw con pixel di 16 bit.

omp-median.c

Per compilare:
gcc -std=c99 -fopenmp -Wall -Wpedantic -O2 omp-median.c -o omp-median

Per eseguire:
./omp-median -a quicksort -w width -h height -r radius -o fileout filein

cuda-median-qsel.cu

Per compilare (dimensione e raggio vanno specificati alla compilazione):
nvcc cuda-median-qsel.cu -o cuda-median-qsel -D WIDTH=width -D HEIGHT=height -D RADIUS=radius

Per eseguire:
./cuda-median-qsel filein fileout

cuda-median-hist.cu

Per compilare:
nvcc cuda-median-hist.cu -o cuda-median-hist

Per eseguire:
./cuda-median-hist filein fileout width height radius

cuda-median-multi.cu

Per compilare:
nvcc cuda-median-multi.cu -o cuda-median-multi -Xcompiler -fopenmp

Per eseguire:
./cuda-median-multi filein fileout width height radius

cuda-medianfilter's People

Contributors

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