This project is a graphical user interface (GUI) application for image processing, developed using PyQt5. It supports the following functions:
- Image loading and display
- Color space conversion (RGB, CMY, HSI, XYZ, Lab, YUV)
- Pseudo color mapping (Jet, Hot, Cool, Spring, etc.)
- k-means clustering in different color spaces
- Allows users to open and display an image from the local filesystem.
- Performs k-means clustering on image pixels in selected color spaces:
- Result is displayed as a segmented image based on clustering.
-
Install dependencies
pip install opencv-python-headless PyQt5 numpy scikit-learn
-
Run the GUI application
python hw5_gui.py
│
├── hw5_gui.py # Main GUI application
├── color_convert.py # Color space conversion functions
├── colormap.py # Pseudo color mapping logic
├── kmeans_clustering.py # k-means clustering logic
└── README.md # This documentation
- Python 3.8+
- PyQt5
- OpenCV 4.x
- NumPy
- scikit-learn









