Skip to content

Geoc2022/IMG_to_Mobius_Loop

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 

Repository files navigation

IMG_to_Mobius_Loop

A simple Python script that wraps a .jpg image around a 3D Möbius strip using matplotlib. You can read more about how it works and the context here.

Example input and output:

Input: input

Output: output


Usage

Requirements

Install required packages:

pip install numpy pillow matplotlib

Run

python main.py example/BWV1087.jpg --save

Arguments

Argument Description Default
image Path to the .jpg image file Required
--band_size_adj Adjusts the band width (relative to image aspect ratio) 0
--elev Elevation angle of the 3D view 25
--azim Azimuth angle of the 3D view -45
--perspective Perspective scaling factor 0.8
--zoom Camera zoom level 2.2
--image_shift Horizontal image shift (loop offset) 0
--res_factor Downsampling factor for faster rendering 1
--transparent Enable brightness-based alpha transparency Off
--save Save the output image as mobius_strip_render.png Off

About

Simple python script to warp an image to be a mobius loop

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages