Skip to content

Ema-Umar/image-processing-numpy

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 

Repository files navigation

Synthetic Image Processing Mini Lab (NumPy)

Overview

This project demonstrates core NumPy concepts by simulating grayscale image preprocessing on a synthetic 256×256 image.

The goal is to understand how multidimensional arrays, vectorized operations, slicing, filtering, aggregation, and randomness are used in image processing workflows.


Tech Stack

  • Python
  • NumPy
  • Matplotlib

Processing Pipeline

The following operations were implemented:

  • Generated a random 256×256 grayscale image
  • Normalized pixel values (0–1 scaling)
  • Extracted a centered crop (50% region)
  • Increased brightness with safe clipping
  • Applied binary threshold filtering
  • Added random noise
  • Shuffled image rows
  • Saved processed outputs

Sample Results

Original

Original

Normalized

Normalized

Center Crop

Center Crop

Bright

Bright

Binary

Binary

Noisy

Noisy

Shuffled

Shuffled


Concepts Practiced

  • Multidimensional arrays
  • Indexing & slicing
  • Vectorized operations
  • Broadcasting
  • Aggregation functions
  • Conditional filtering (thresholding)
  • Random number generation
  • Image-like data manipulation

Learning Outcome

This project strengthened my understanding of how NumPy handles multidimensional data and how image preprocessing works in Machine Learning pipelines.

About

Synthetic image preprocessing mini-lab using NumPy

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages