Skip to content

Latest commit

 

History

History
24 lines (20 loc) · 1.11 KB

README.md

File metadata and controls

24 lines (20 loc) · 1.11 KB

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