← Back to projects

Top Hat Filter Implementation

Extracting details from image using CUDA, OMP and MPI

CUDAMPIOMPC

2025-01-15

Overview

This project was done as a part of a university course "Computer Organization and Architecture". Its goal was to implement a top hat filter in order to extract small bright objects from a given image. It was done with CUDA, OMP and MPI.

Cosmos image has been provided. Inside of it, all the white dots/elements have been removed with the top hat.

Results

Before: Original image

After: CUDA Top Hat Filter result

What I Learned

  • How to programme in different environments, especially CUDA
  • The purpose of top-hat filter
  • Understanding portable graymaps (PGMs) files.

Technical Challenges

  • Understand the compilation (eg. nvcc -ccbin top-hat_filter_cuda.cu image_utils.cu top-hat_transform_cuda.cu -o top-hat_filter_cuda.exe)
  • Dillatation and parallelism implementation

Future Improvements

  • None