Click here to Skip to main content
12,633,079 members (33,011 online)
Rate this:
 
Please Sign up or sign in to vote.
See more: C# C#4.0
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 22-Feb-11 6:35am
Updated 22-Feb-11 6:37am
v2
Comments
SAKryukov 22-Feb-11 11:47am
   
No it could not be just one matrix, but the question is interesting, my 5.
--SA

1 solution

Rate this: bad
 
good
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: http://sprg.massey.ac.nz/pdfs/2003_IVCNZ_408.pdf[^].

—SA
  Permalink  
Comments
SAKryukov 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
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.
--SA

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 | Mobile
Web02 | 2.8.161208.2 | Last Updated 15 Feb 2013
Copyright © CodeProject, 1999-2016
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