[CREATE] Lens correction database

Andrew Zabolotny zap at homelink.ru
Sat Sep 8 12:23:58 PDT 2007


From Sat, 8 Sep 2007 16:19:36 +0200
"Udi Fuchs" <udifuchs at gmail.com> wrote:

> > So I think that your blackbox covers 99% of applications out there,
> > but unfortunately to please the remaining 1%, you will need to
> > expose some more functions in the public API.
> I think that UFRaw also goes into this 1%. First, for the interactive
> interface it would also require handling of tiles, otherwise it will
> be too slow. Second, handling corrections of raw files could make use
> of the raw data, and therefore require different algorithms.
Strange to hear this, since I design the library with ufraw in mind ;-)

It's just a misunderstanding of the library interface. I did not meant
to have a function which will do a complete post-processing of the
whole image. Instead, I have in mind little functions which will be
called per-pixel and perform all computations, returning the result.

The distortion and TCA correction is done via the method:

void lfCorrector::Apply (float xu, float yu, float *xd, float *yd)

The idea is that you call this method for every pixel of the image, and
you get an array of three x and three y's for red, green and blue
correspondingly. Then you just take the r/g/b values from the derived
coordinates and put them at xu, yu. If you do that on a complete image
or on a sensor dump - it's up to the application.

-- 
Andrew
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
Url : http://lists.freedesktop.org/archives/create/attachments/20070908/7df66401/attachment.pgp 


More information about the CREATE mailing list