Quadtree decomposition (Encoding) and Decoding of RGB Image

Quadtree decomposition (Encoding) and Decoding of RGB Image of size M-by-N-by-3.
7,6K download
Aggiornato 3 apr 2025

Visualizza la licenza

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 Linux

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!
Versione Pubblicato Note della release
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