Quadtree decomposition (Encoding) and Decoding of RGB Image
Versione 2.0 (467 KB) da
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.
Cita come
Dr. Murtaza Ali Khan (2025). Quadtree decomposition (Encoding) and Decoding of RGB Image (https://www.mathworks.com/matlabcentral/fileexchange/9485-quadtree-decomposition-encoding-and-decoding-of-rgb-image), MATLAB Central File Exchange. Recuperato .
Compatibilità della release di MATLAB
Creato con
R2025a
Compatibile con qualsiasi release
Compatibilità della piattaforma
Windows macOS LinuxCategorie
- Image Processing and Computer Vision > Image Processing Toolbox > Import, Export, and Conversion >
- Signal Processing > Wavelet Toolbox > Denoising and Compression >
Scopri di più su Import, Export, and Conversion in Help Center e MATLAB Answers
Tag
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!Scopri Live Editor
Crea script con codice, output e testo formattato in un unico documento eseguibile.