Quadtree decomposition (Encoding) and Decoding of RGB Image
Versión 2.0 (467 KB) por
Dr. Murtaza Ali Khan
Quadtree decomposition (Encoding) and Decoding of RGB Image of size M-by-N-by-3.
Quadtree Decomposition of an RGB Image (M × N × 3)
This method performs Quadtree decomposition on an RGB image of size M × N × 3, using three separate thresholds for the red, green, and blue components.
For any R, G, or B block, if the difference between the maximum and minimum values of the block exceeds its respective threshold, the RGB block is split into four smaller blocks.
In lossy encoding, the mean values of the R, G, and B components are assigned to the corresponding RGB block. If the image size is not a power of 2, it is padded to ensure division continues down to a block size of 1 × 1.
Thresholds
Thresholds are specified as values between 0 and 1 (0 for lossless encoding).
- If the image is of type uint8, the threshold is multiplied by 255 to determine the actual threshold.
- If the image is of type uint16, the threshold is multiplied by 65535 to determine the actual threshold.
🔹 No toolbox is required.
main.m
A test program for Quadtree decomposition (encoding) and decoding of an RGB image.
Reference
📖 Murtaza Khan and Yoshio Ohno,
"A hybrid image compression technique using quadtree decomposition and parametric line fitting for synthetic images",
Advances in Computer Science and Engineering, Vol. 1, No. 3, pp. 263–283, Nov. 2007.
Citar como
Dr. Murtaza Ali Khan (2025). Quadtree decomposition (Encoding) and Decoding of RGB Image (https://es.mathworks.com/matlabcentral/fileexchange/9485-quadtree-decomposition-encoding-and-decoding-of-rgb-image), MATLAB Central File Exchange. Recuperado .
Compatibilidad con la versión de MATLAB
Se creó con
R2025a
Compatible con cualquier versión
Compatibilidad con las plataformas
Windows macOS LinuxCategorías
- Image Processing and Computer Vision > Image Processing Toolbox > Import, Export, and Conversion >
- Signal Processing > Wavelet Toolbox > Denoising and Compression >
Más información sobre Import, Export, and Conversion en Help Center y MATLAB Answers.
Etiquetas
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!Descubra Live Editor
Cree scripts con código, salida y texto formateado en un documento ejecutable.
rgbquadtree
| Versión | Publicado | Notas de la versión | |
|---|---|---|---|
| 2.0 | improved documentation |
||
| 1.5.0.0 | Two missing files are added |
||
| 1.3.0.0 | Reference of my research work and my research paper is included |
||
| 1.2.0.0 | Missing files are included |
||
| 1.1.0.0 | BSD License |
||
| 1.0.0.0 | updated |