Skip to content

Latest commit

 

History

History
45 lines (34 loc) · 1.67 KB

README.md

File metadata and controls

45 lines (34 loc) · 1.67 KB

FisheyeDewarp 🐟👁️

GoDoc Go Report Card License

FisheyeDewarp dewarps fisheye distortion in images.

Installation

Use go get to install this package:

go get github.com/dev6699/fisheyedewarp

Sample usage

Check cmd/fisheyedewarp/main.go for more details.

  • For help
./fisheyedewarp --help
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 Image 2
Original Fisheye Linear projection, 120 PFOV
Image 3 Image 4
Linear projection, 130 PFOV Linear projection, 140 PFOV