Zig-Zag scan

Zig-zag and inverse zig-zag scan as used in Image Processing's JPEG compression.
5.1K Downloads
Updated 24 Mar 2010

View License

The functions presented within perform normal zig-zag scanning and the reverse. The normal process converts a matrix of any size into a one-dimensional array by implementing the zig-zag scan procedure.
The inverse function takes in a one-dimensional array and by specifying the desired number of rows and columns, it returns a matrix having the specified dimensions, which would yield the one-dimensional array if the normal zig-zag procedure were implemented.

Works on 2-D matrices of any dimension.

Cite As

Damilola Ogunbiyi (2024). Zig-Zag scan (https://www.mathworks.com/matlabcentral/fileexchange/27078-zig-zag-scan), MATLAB Central File Exchange. Retrieved .

MATLAB Release Compatibility
Created with R2009b
Compatible with any release
Platform Compatibility
Windows macOS Linux
Categories
Find more on Denoising and Compression in Help Center and MATLAB Answers

Community Treasure Hunt

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

Start Hunting!
Version Published Release Notes
1.0.0.0