A small Rust script to convert circular anamorphic images into horizontal images.
Input Image: Explanation of the view of Paris, created in 1814 (Museum Number: 1886,0111.23.13). From the British Museum, licensed under CC BY-NC-SA 4.0.
Executed command:
./target/debug/anamorph-to-panorama ./input.jpg ./output-panorama.jpg 1730 1825 813 1925
Output Image:
Close up:
Assuming Rust is installed:
cargo build
./target/debug/anamorph-to-panorama [INPUT_FILE] [OUTPUT_FILE] [center X] [center Y] [inner diameter] [outer diameter]
Below is a visual explanation of how the script works. It converts a 🍩 into a 🥖.