Straight and inverse zigzag scan for matrices of any sizes.
zigzag(in) takes a matrix as an input and returns a one-dimensional array consisting of a zigzag scan results.
izigzag(in, vmax, hmax) takes a one-dimensional array and converts it back to (vmax x hmax) matrix.
Alexey Sokolov (2020). Zigzag Scan (https://www.mathworks.com/matlabcentral/fileexchange/15317-zigzag-scan), MATLAB Central File Exchange. Retrieved .
I needed to calculate block entropy for a CDT encoded image. So thnaks for helping the community, Best Regards, Fabián
Nice work, Dasvidaña!
if i apply this code on zigzag scan on lena image am not getting the inverse image
very clear code
please help me . I have zigzag scanning program in MATLAB.
superp....... but need seperation for every scaning group.
Thanks a lot...
Great! But could we further speed it up using vector operation ?
Find the treasures in MATLAB Central and discover how the community can help you!Start Hunting!