Skip to content

MATLAB-based image processing project for leaf segmentation, morphometric analysis, and multi-leaf feature extraction using HSV thresholding and morphological operations.

License

Notifications You must be signed in to change notification settings

QuantumAlchemist03/leaf-morphometric-image-processing

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Leaf Morphometric Image Processing (MATLAB)

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.


Project Overview

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

Methods & Techniques

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

Tasks Implemented

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

Repository Structure

├── 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


Usage & License Notice

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.

About

MATLAB-based image processing project for leaf segmentation, morphometric analysis, and multi-leaf feature extraction using HSV thresholding and morphological operations.

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages