This repository contains a MATLAB-based image processing project focused on leaf segmentation and morphometric analysis. The work was completed as part of the MOD002643 – Image Processing module at Anglia Ruskin University and is shared here for portfolio and educational demonstration purposes.
The project implements a complete image processing pipeline to analyse leaf images captured under natural lighting conditions. A reference coin is used for scale calibration, enabling real-world morphometric measurements.
Key objectives include:
- Accurate segmentation of leaf and coin objects
- Noise removal using morphological operations
- Feature extraction and quantitative analysis
- Visual annotation of results
- Extension to multi-leaf image analysis
The following techniques were used throughout the project:
- Colour-based segmentation (HSV colour space)
- Morphological operations (opening, closing, hole filling, area filtering)
- Binary mask refinement
- Boundary extraction and visual overlays
- RGB histogram analysis
- Centroid and Green Leaf Index (GLI) calculation
- Morphometric measurements (area, perimeter, major/minor axes in mm)
- Multi-leaf analysis with object labelling and ranking
| Task | Description |
|---|---|
| Task C | HSV thresholding to isolate leaf and coin |
| Task D | Morphological cleaning of binary masks |
| Task E | Normalised RGB histogram analysis |
| Task F | Boundary detection and annotation |
| Task G | Centroid, medoid, and GLI calculation |
| Task H | Morphometric measurements using scale calibration |
| Task I | Multi-leaf detection, labelling, and ranking |
├── code/ # MATLAB scripts (.m / .mat)
├── input-images/ # Original captured images
├── output-images/ # Results for each task (C–I)
├── figures/ # Annotated visual outputs
├── README.md
└── LICENSE
This project was completed as part of academic coursework for
MOD002643 – Image Processing at Anglia Ruskin University.
The contents of this repository (including source code, images, and outputs) are provided for educational and portfolio demonstration purposes only.
❌ Copying, reusing, modifying, or submitting this code (in part or in full) for academic assessment, coursework, commercial use, or redistribution is strictly prohibited without explicit written permission from the author.
© 2025 Alif Sathar. All rights reserved.