Skip to content

grinvolod13/image-to-hilbert-curve

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Making Hilbert Curve from image

  • In curve.py Python code to convert RGB or grayscale image to Hilbert Space-Filling Curve (also works with PNG)
  • In example.ipynb example of usage with visualization
  • ⭐Star the repo, if you like it!⭐

Prerequisites:

pip install numpy numpy-hilbert-curve

For running example.ipynb:

pip install -r requirements.txt

Visualization

  • Original images(left), and reshaped Hilbert Curve images(right)
  • Because Hilbert Curve is 1-d(its length), line was reshaped to square to represent as image alt image

Acknowledges