LumiGuide / haskell-opencv

Haskell binding to OpenCV-3.x
Other
154 stars 44 forks source link

Add `undistort` to correct for camera lens distortion #84

Closed ocharles closed 7 years ago

basvandijk commented 7 years ago

@ocharles I've rebased this ons master and constrained the camera matrix to have a 3x3 shape and the distortion coefficients to be a matrix with either a 4x1, 5x1, 8x1, 12x1 or 14x1 shape.

I would expect that the number of channels and depth also need to be restrained but that's not specified in the documentation and I couldn't quickly discover it in the source code.