This repository contains Python implementations of various operations on images
- HSV, HSI, HSL convertion
- Sepia, Grayscale image conversion
- image histogram
- MSE, RMSE image comparison
- aligning image with tail elimination
- convolution
- treshold
- edge and circle detection
- Python 3.10
- NumPy
- Matplotlib
- OpenCV
- Clone the repository to your local machine:
git clone https://github.com/Arrturo/Machine-Graphics.git
- Install necessary libraries, you can use pip:
pip install numpy
pip install matplotlib
pip install opencv-python
You can also install all needed libraries with requirements.txt
file:
pip install -r requirements.txt
To use repo, you first need to import the Image class:
from Image import Image
Then you can create an instance of the Image class and pass in path to the image:
image = Image('D://Dokumenty//Code//Python//Introduction-to-Computer-Graphics//data//lena.jpg')
You can then display image using the show_img
method:
image.show_img()