https://github.com/carusel02/image-manipulation
Implement image-manipulation functions using a quaternary tree in C
https://github.com/carusel02/image-manipulation
binary-file image-manipulation image-processing pixels rgb-color
Last synced: 6 months ago
JSON representation
Implement image-manipulation functions using a quaternary tree in C
- Host: GitHub
- URL: https://github.com/carusel02/image-manipulation
- Owner: Carusel02
- Created: 2022-04-29T17:56:32.000Z (over 3 years ago)
- Default Branch: master
- Last Pushed: 2022-10-17T21:05:25.000Z (almost 3 years ago)
- Last Synced: 2025-02-09T09:15:19.935Z (8 months ago)
- Topics: binary-file, image-manipulation, image-processing, pixels, rgb-color
- Language: C
- Homepage:
- Size: 12.6 MB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Quaternary tree
### Implementation
- The most important part is the correct reading of the binary file and the correct transposition of the pixels in a ***matrix dynamically allocated***.
- As a way of working, we need a main function processing that calculates the similarity score
and compares it with a certain threshold.
- Then, calls are made according to the function (recursively) as many times as needed to divide the initial matrix in ***4 quarters*** and the information is stored each time in a tree.
- A function that transposes the elements from one tree to another is also necessary
vector and vice versa, the implementation consists of ***recursive calls***.
- I did too 2 functions for specific writing of output files, and a function
which calculates the average value of a color channel.