Click here to Skip to main content
15,885,044 members
Please Sign up or sign in to vote.
5.00/5 (2 votes)
See more:
Hello,

is there a reasonably fast tranformation matrix available,
that removes a pinCushion- or barrel-distortion from an image.

I have found no transformation that can be used by a graphics class
and coding an algorithm using GetPixel and SetPixel is awfully slow.

Any hint will be very much appreciated.

Wolfgang
Posted
Updated 22-Feb-11 5:37am
v2
Comments
Sergey Alexandrovich Kryukov 22-Feb-11 11:47am    
No it could not be just one matrix, but the question is interesting, my 5.
--SA

1 solution

There can be "fast" or "slow" transformation matrix: matrix transformation is matrix transformation, that all have the same speed (quite good).

I'm quite sure you cannot achieve the fix of such distortion (a very typical task) with just one matrix transformation, so the question is: can you find both easy-to-implement and fast solution for the distortion correction. That is your goal, right?

I don't think this is easy even if the parameters of distortion are already known. This article confirms my skepticism: http://sprg.massey.ac.nz/pdfs/2003_IVCNZ_408.pdf[^].

—SA
 
Share this answer
 
Comments
Sergey Alexandrovich Kryukov 23-Feb-11 2:12am    
OP commented:

Hello,

great article. I really have to study it.
But I share your feelings, this will not be easy.

Many thanks
Wolfgang
Sergey Alexandrovich Kryukov 24-Oct-11 13:14pm    
Well, could end up with quite a big piece of work...
Every time you need something really good, it's never easy.
--SA

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900