In this project, it is aimed to do some operations on a photograph using Python libraries. The project is a continuation of the intermediate project and aims to add additional modules to the intermediate project. To be able to do the project, we first need to understand how a picture is saved on the computer. In summary, a picture is kept in the form of a 3D matrix in the computer. Each element of the matrix corresponds to the color value of the picture and is called a pixel. The size of this matrix is the size of the picture x width x the depth of the picture. Depth is 3 for color pictures (red, green blue, ie RGB values), and 1 for black and white pictures. In other words, black and white images are stored in the computer in two dimensions. A sample black and white image (matrix size: size of the image x width of the image);
Sun | Mon | Tue | Wed | Thu | Fri | Sat |
---|---|---|---|---|---|---|
27 | 28 | 29 | 30 | 1 | 2 | 3 |
4 | 5 | 6 | 7 | 8 | 9 | 10 |
11 | 12 | 13 | 14 | 15 | 16 | 17 |
18 | 19 | 20 | 21 | 22 | 23 | 24 |
25 | 26 | 27 | 28 | 29 | 30 | 31 |