d3 / d3-geo-projection

Extended geographic projections for d3-geo.
https://observablehq.com/collection/@d3/d3-geo-projection
Other
1.1k stars 199 forks source link

Can this library be used to reproject a fisheye image into equirectangular projection? #171

Closed jumpjack closed 5 years ago

jumpjack commented 5 years ago

I took a photo of a grid using my 235° FOV fisheye camera. Can I use this library to reproject the image into equirectangular projection, assuming that I already know the coordinates of each grid intersection in source and destination images?

Fil commented 5 years ago

d3-geo-projection is mostly useful to project GeoJSON (vector) data, not bitmap/raster data such as an image.

In my view your question might be better answered with custom JS or WebGL code, such as https://bl.ocks.org/fil/497d327919606ba6024cb13b4bee38a4

(This example goes FROM an equirectangular projected image TO the stereographic projection, you would probably have to use the inverse).