-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
5 changed files
with
66 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
MIT License | ||
|
||
Copyright (c) 2024 dev6699 | ||
|
||
Permission is hereby granted, free of charge, to any person obtaining a copy | ||
of this software and associated documentation files (the "Software"), to deal | ||
in the Software without restriction, including without limitation the rights | ||
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | ||
copies of the Software, and to permit persons to whom the Software is | ||
furnished to do so, subject to the following conditions: | ||
|
||
The above copyright notice and this permission notice shall be included in all | ||
copies or substantial portions of the Software. | ||
|
||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR | ||
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, | ||
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE | ||
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER | ||
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, | ||
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE | ||
SOFTWARE. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
# FisheyeDewarp 🐟👁️ | ||
|
||
[![GoDoc](https://pkg.go.dev/badge/github.com/dev6699/fisheyedewarp)](https://pkg.go.dev/github.com/dev6699/fisheyedewarp) | ||
[![Go Report Card](https://goreportcard.com/badge/github.com/dev6699/fisheyedewarp)](https://goreportcard.com/report/github.com/dev6699/fisheyedewarp) | ||
[![License](https://img.shields.io/github/license/dev6699/fisheyedewarp)](LICENSE) | ||
|
||
FisheyeDewarp dewarps fisheye distortion in images. | ||
|
||
## Installation | ||
|
||
Use `go get` to install this package: | ||
|
||
```bash | ||
go get github.com/dev6699/fisheyedewarp | ||
``` | ||
|
||
### Sample usage | ||
Check [cmd/fisheyedewarp/main.go](cmd/fisheyedewarp/main.go) for more details. | ||
|
||
- For help | ||
```bash | ||
./fisheyedewarp --help | ||
``` | ||
```bash | ||
Usage of ./fisheyedewarp: | ||
-fov float | ||
Input fisheye field of view in degrees. Must be between 0 and 180. (default 180) | ||
-img string | ||
Path to the input fisheye image file. (default "images/fisheye.jpg") | ||
-pfov float | ||
Output perspective field of view in degrees. Must be between 0 and 180. (default 120) | ||
-ptype string | ||
Type of projection to apply. Options: 'Linear', 'EqualArea', 'Orthographic', 'Stereographic' (default "Linear") | ||
|
||
``` | ||
|
||
### Examples | ||
|
||
| ![Image 1](/images/fisheye.jpg) | ![Image 2](/images/fisheye_Linear_180_120.jpg) | | ||
|:-------------------------------:|:-------------------------------:| | ||
| **Original Fisheye** | **Linear projection, 120 PFOV** | | ||
|
||
| ![Image 3](/images/fisheye_Linear_180_130.jpg) | ![Image 4](/images/fisheye_Linear_180_140.jpg) | | ||
|:-------------------------------:|:-------------------------------:| | ||
| **Linear projection, 130 PFOV** | **Linear projection, 140 PFOV** | |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.