This repository contains a collection of image segmentation algorithms implemented in Python using OpenCV, SimpleITK, and NumPy.
The following segmentation algorithms are included:
- Fast Marching Segmentation: Implemented using SimpleITK.
- Threshold Segmentation: Implemented using OpenCV.
- Canny Edge Detection: Implemented using OpenCV.
- Contour Detection: Implemented using OpenCV.
- K-means Segmentation: Implemented using OpenCV.
- Watershed Segmentation: Implemented using OpenCV.
Each algorithm is implemented in a separate Python file for better organization.
To use these segmentation algorithms, follow these steps:
- Clone this repository to your local machine:
git clone https://github.com/SYED-M-HUSSAIN/Classical-Image-Segmentation-On-Microorganisms.git
- Install the required dependencies:
pip install -r requirements.txt
- Run the main file:
python3 main.py
Here are the segmented images produced by each algorithm on test folder images:
These segmentation algorithms can be used for various applications, including medical image analysis, object detection, and image processing tasks. Contributions are welcome! If you have any ideas for improvement or new segmentation algorithms to add, feel free to open an issue or submit a pull request.