Skip to content

Commit

Permalink
docs: readme
Browse files Browse the repository at this point in the history
  • Loading branch information
dev6699 committed Dec 25, 2024
1 parent 2c556fa commit f17373f
Show file tree
Hide file tree
Showing 5 changed files with 66 additions and 0 deletions.
21 changes: 21 additions & 0 deletions LICENSE
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.
45 changes: 45 additions & 0 deletions README.md
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** |
Binary file added images/fisheye_Linear_180_120.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added images/fisheye_Linear_180_130.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added images/fisheye_Linear_180_140.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit f17373f

Please sign in to comment.