This repository will contain the code produced during experimenting with python and image processing.
Install Jupyter notebook Please follow the official guideline
Install necessary libraries using pip.
pip install -r requirements.txt
The script contain example in using python is in the folder python-demo/
.
Go to img-proc/
and explore
- Basic read and write
- Generating (interesting) images
- Geometric transformation
- Histogram
- Pixel-wise operations
Some of the example in this project is the Python version of examples in the MATLAB book "การประยุกต์ใช้ MATLAB สำหรับการประมวลภาพดิจิตอล".
The example number sorted by the book is listed here:
- Chapter 1
- Example 1-1 Resizing the image.
- Chapter 2
- Example 2-1 Reading the image.
- Example 2-2 (See Example 2-1) Showing the image. (NB)
- Example 2-3 Arithmetic
- Example 2-4 Read and show multiple images.
- Chapter 3
- Example 3-2 Read and play a video file.
- Chapter 4
- Example 4-1 Pixel-wise operation (write)
- Example 4-2 Pixel-wise operation (read) (See example 4-1)
- Example 4-3 Add color to the first quarter of the image
- Example 4-4 Generate black image, then fill the first quarter with white color.
- Example 4-5 Find the coordinate with specific color
- Example 4-6 Generate one-layer and three-layer black-and-white image See "Pixel-wise can do anything" (NB)
- Example 4-7 Add border (bounding box) to specific part of the image
- Chapter 6
- Example 6-1 (NB)
- [Example 6-2&3](Adjust Example 6-1) (NB)
- Example 6-4 Convert RGB image to grayscale image.
- Example 6-5 Create vertical and horizontal histogram from B&W image.
- Chapter 7
- OpenCV tutorial: They have a very good documentation.
- Erosion and dilation (NB)
NB = Jupyter Notebook (more chapters to come in the future!)