https://github.com/leifgehrmann/anamorph-to-panorama
A small Rust script to convert circular anamorphic images into horizontal images.
https://github.com/leifgehrmann/anamorph-to-panorama
anamorphic image-processing panorama script
Last synced: about 1 year ago
JSON representation
A small Rust script to convert circular anamorphic images into horizontal images.
- Host: GitHub
- URL: https://github.com/leifgehrmann/anamorph-to-panorama
- Owner: leifgehrmann
- License: mit
- Created: 2024-01-30T19:50:00.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2024-06-09T08:30:32.000Z (about 2 years ago)
- Last Synced: 2025-02-17T05:43:46.493Z (over 1 year ago)
- Topics: anamorphic, image-processing, panorama, script
- Language: Rust
- Homepage:
- Size: 1.52 MB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# anamorph-to-panorama
A small Rust script to convert circular anamorphic images into horizontal images.
## Example
Input Image: [_Explanation of the view of Paris_](https://www.britishmuseum.org/collection/object/P_1886-0111-23-13), created in 1814 (Museum Number: 1886,0111.23.13). From the British Museum, licensed under CC BY-NC-SA 4.0.

Executed command:
```shell
./target/debug/anamorph-to-panorama ./input.jpg ./output-panorama.jpg 1730 1825 813 1925
```
Output Image:

Close up:

## Build
Assuming [Rust](https://www.rust-lang.org) is installed:
```shell
cargo build
```
## Usage
```shell
./target/debug/anamorph-to-panorama [INPUT_FILE] [OUTPUT_FILE] [center X] [center Y] [inner diameter] [outer diameter]
```
## Explanation
Below is a visual explanation of how the script works. It converts a 🍩 into a 🥖.
