You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The code shows how to perform zigzag scan on a NxN matrix.
Zigzag scan is used in many different applications including JPEG Compression using DCT Transform as this arrangement helps to facilitate entropy encoding in JPEG by placing low frequency coefficients before the high frequency ones.
The application is written in C++ in console mode.
There are two important functions in the code:
1. ZigZagGetScan()
2. ZigZagPutScan()
Which can be used to obtain the data in the form of a zigzag scan order as well as put it back.
A NxN matrix is used as a simple example to demonstrates the functionality.