Skip to content

Latest commit

Β 

History

History
82 lines (67 loc) Β· 1.88 KB

File metadata and controls

82 lines (67 loc) Β· 1.88 KB

Image Processing Basis

This repository provides basic image processing practice focusing on:

  • 🚩 Image Rotation
  • 🚩 Image Scaling

implemented in C++ for foundational understanding.


πŸ“‚ Directory Structure

.
β”œβ”€β”€ affine_transformation
β”‚   β”œβ”€β”€ affine_transformer
β”‚   β”œβ”€β”€ affine_transformer.cpp
β”‚   β”œβ”€β”€ build.sh
β”‚   β”œβ”€β”€ lenna_transformed_opencv_verify.png
β”‚   β”œβ”€β”€ lenna_transformed.png
β”‚   └── run.sh
β”œβ”€β”€ image_rotation
β”‚   β”œβ”€β”€ build.sh
β”‚   β”œβ”€β”€ image_rotator
β”‚   β”œβ”€β”€ image_rotator.cpp
β”‚   β”œβ”€β”€ lenna_rotated_opencv_verify.png
β”‚   β”œβ”€β”€ lenna_rotated.png
β”‚   └── run.sh
β”œβ”€β”€ image_scaling
β”‚   β”œβ”€β”€ build.sh
β”‚   β”œβ”€β”€ image_scaler
β”‚   β”œβ”€β”€ image_scaler.cpp
β”‚   β”œβ”€β”€ manual_scaled.png
β”‚   β”œβ”€β”€ opencv_scaled.png
β”‚   └── run.sh
β”œβ”€β”€ lenna.png
└── README.md

3 directories, 20 files

πŸš€ Quick Start

1️⃣ Clone Repository

git clone https://github.com/M-H482/image-processing-basis.git
cd image-processing-basis

2️⃣ Image Rotation

Rotates input images by a specified angle (in degrees), using the image center as the rotation center.

cd image_rotation
bash build.sh       # Build the rotation executable
bash run.sh         # Run the rotation demo

3️⃣ Image Scaling

Resizes input images to specified scales.

cd image_scaling
bash build.sh       # Build the scaling executable
bash run.sh         # Run the scaling demo

4️⃣ Affine Transformation

Implementing rotation of any angle around any center using an affine matrix

cd affine_transformation
bash build.sh       # Build the scaling executable
bash run.sh         # Run the scaling demo

πŸ›  Requirements

Linux with g++

OpenCV

πŸ“ˆ Future Plans

Add a demo of FFT.