Building a C++ Image Editor

Introduction During my university coursework, I developed a C++-based grayscale image editor capable of performing fundamental image processing tasks. This project was an exploration into file handling, image manipulation, and efficient data structures in C++. Features of the Image Editor The application supports: Loading and saving grayscale images in PGM format. Applying filters like mean and median filtering. Performing transformations such as flipping, rotating, and resizing. Combining images either side-by-side or top-to-bottom. Adjusting brightness and generating negative images. Core Implementation The backbone of the editor is the grayImage struct, which stores pixel data and provides functions for image operations. Here’s a snippet demonstrating how pixels are set and retrieved: ...

February 16, 2025 · 2 min · Muhammad Hassan Raza