Forum Discussion

🚨 This forum is archived and read-only. To submit a forum post, please visit our new Developer Forum. 🚨
DrGusta's avatar
DrGusta
Honored Guest
12 years ago

Barrel Distortion

I have been searching the web for hours now and I have yet to find a solution. I want to apply barrel distortion to a live feed from a USB web cam (Logitech 9000), I am currently using OpenCV. I am fairly new to OpenCV so be gentle.

PS I am writing this in C++ (Visual Studio 2010)

Brenden Geary

13 Replies

  • divby0's avatar
    divby0
    Honored Guest
    "jherico" wrote:
    "rudi" wrote:
    Now I do not get the point of this expressions:


    In GLSL you can apply a scalar against a vector with an operation and it and it applies the operation piecewise to the vector components.


    Close, but not quite: the scalars are implicitly cast to vectors of the correct dimension with every element containing the scalar value. The end result is the same as what you've described, but the docs won't make sense if you don't know that casts are involved.
  • Pernar's avatar
    Pernar
    Honored Guest
    First of all sorry for ressurecting this old dead horse of a thread but I am new here and the FAQ said newbees are to find threads similar to what they need and comment there. So here it goes:

    I am actually after a way to replicate the Rift distrotion in GIMP using the FIlters -> Distorts -> Lense Distortions

    So far I have played around with the filter a bit and I know I am on the right track but just cant figure out the correct values for 'Main', 'Edge' and 'Zoom'.

    Can someone please tell me the exact values here? Or even the specific physical properties of the optics used in the Rift would be helpfull.

    Many thanks!