Click here to Skip to main content
13,293,173 members (38,281 online)
Rate this:
Please Sign up or sign in to vote.
See more:

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.

Posted 22-Feb-11 6:35am
Updated 22-Feb-11 6:37am
SAKryukov 22-Feb-11 11:47am
No it could not be just one matrix, but the question is interesting, my 5.

1 solution

Rate this: bad
Please Sign up or sign in to vote.

Solution 1

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:[^].

SAKryukov 23-Feb-11 2:12am
OP commented:


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

Many thanks
SAKryukov 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.

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

  Print Answers RSS
Top Experts
Last 24hrsThis month

Advertise | Privacy |
Web04 | 2.8.171207.1 | Last Updated 15 Feb 2013
Copyright © CodeProject, 1999-2017
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100