Skip to main content
Participant
November 27, 2024
Question

Export distortion parameters of image distortion in OpenCV format

  • November 27, 2024
  • 1 reply
  • 220 views

My special wish is to export the distortion coefficients for the use with OpenCV python library. The format is discribed here: https://docs.opencv.org/4.x/d9/d0c/group__calib3d.html, so I want (k1, k2, p1, p2, k3, k4, k5, k6, ...). 
I have seen that in filter/lens corrections one can export a .lcs file as a distortion preset. But after an online viewer I saw no parameters listed there directly.
The idea is to distort the image in photoshop to get an estimation of the image distortion that I have to know for data preprocessing in python. The problem is that I cannot put a chessboard infront of the webcams as it would be normally done.

So is this possible somehow? With warping and or with a plugin?

1 reply

@mj
Community Expert
Community Expert
February 1, 2025

Hi,

You could consider a reference object in the image.

 

Here is an example of the color calibration and size target on the Curiosity rover.

 

Is this possible?

mj

iMSD

Author, Adobe InDesign Masterclass

It's on Amazon!