A .m-file which creates a square matrix with the indices of the hilbert space filling curve.
A .m-file which creates vectors containing the row and column cooridinates for the hilbert space filling curve for an arbitrary sized matrix.
The Hilbert space filling curve has recently been introduced to digital halftoning as a scan order for spatial dithering. The advantage to using space filling curves is the error diffusion can be done in one dimension and the resulting patterns exhibit clustering. For related literature see works by Velho and Gomes in their book 'Image processing for computer graphics.'
Daniel Lau (2020). hilbert (https://www.mathworks.com/matlabcentral/fileexchange/125-hilbert), MATLAB Central File Exchange. Retrieved .
Find the treasures in MATLAB Central and discover how the community can help you!Start Hunting!