Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

what is the name of snake-like image traversing algorithm?

The algorithm name is after some mathematician.

You can traverse image line by line of course, but you can traverse image using recursive generated path, which the basic blocks looks like:

U

This one is for traversal 2x2 pixels image. If you have bigger image, you "multiply" this block (rotated or not) for each segment. The result is snake-like path.

So, maybe you remember the name of this algorithm :-) Thank you in advance.

like image 404
greenoldman Avatar asked Apr 07 '10 08:04

greenoldman


2 Answers

I believe it may be Hilbert Traversal or the Hilbert Curve.

See, e.g. http://corte.si/posts/code/hilbert/portrait/index.html

alt text

like image 144
Paul R Avatar answered Sep 28 '22 08:09

Paul R


Another one is Z-order a.k.a. Morton order.

like image 25
denis Avatar answered Sep 28 '22 06:09

denis