Forgot Password
Pentax Camera Forums Home
 

Reply
Show Printable Version Search this Thread
07-12-2018, 10:02 AM   #1
Digitiser of Film
Loyal Site Supporter
BigMackCam's Avatar

Join Date: Mar 2010
Location: North East of England
Posts: 20,661
LensFun XML guide?

I've just started producing lens calibration data for some of my lenses using Hugin's Calibrate Lens tool, and I'd now like to patch the relevant XML files locally to include the new lenses. Although I can sort of figure out what's required by looking at the existing XML, I'd like to be sure I'm doing it correctly. I understand that there used to be a manual written by Andrew Zabolotny at http://lensfun.sourceforge.net/manual/database.html, but it seems that's no longer available (I'm getting a 404 error). Does anyone have a copy of the manual, or alternatively, could someone explain to me exactly what's required?

Any help would, as always, be very much appreciated. Thanks in advance


Last edited by BigMackCam; 07-12-2018 at 10:36 AM.
07-12-2018, 01:54 PM - 1 Like   #2
Pentaxian




Join Date: May 2016
Photos: Gallery
Posts: 3,724
Is this the XML doc you're looking for? It's linked from the API doc on the lens fun sourceforge page. Just guessing, haven't worked with lensfun before.

lensfun: Database file format
07-12-2018, 03:13 PM - 1 Like   #3
Digitiser of Film
Loyal Site Supporter
BigMackCam's Avatar

Join Date: Mar 2010
Location: North East of England
Posts: 20,661
Original Poster
QuoteOriginally posted by aaacb Quote
Is this the XML doc you're looking for? It's linked from the API doc on the lens fun sourceforge page. Just guessing, haven't worked with lensfun before.

lensfun: Database file format
That's a big help - thank you!

I can figure out most of what I need to do from that... the only thing (I think) that I'm missing is how to map and/or calculate a, b, c values in Hugin to the k1, k2 etc. values in the XML... I'm guessing that a=k1, b=k2, etc... but something tells me that's too simple and logical to be correct
07-12-2018, 03:49 PM - 1 Like   #4
Site Supporter
Site Supporter




Join Date: Mar 2008
Location: Prince George, BC
Photos: Gallery | Albums
Posts: 3,546
Hi, Mike. If I remember my uni math courses right, k is a universal shorthand for a coefficient. So your assumption is likely correct. I read recently where one of the lens correction developers is throwing in the towel re. trying to stay on top of including new lenses in the hardcoded lookup tables. Instead they have allowed users to define their own lenses locally that will be scanned and loaded during instantiation. Can't remember if this was lensfun or exiv2 but I can certainly see their point given the plethora of lenses out there with similar and confusing definitions. I assume there will be a way to also pull in matching lens corrections. - Jack

07-12-2018, 04:42 PM - 1 Like   #5
Pentaxian




Join Date: May 2016
Photos: Gallery
Posts: 3,724
Found this other page too after my first post, seems to be closer to what you wanted (guide on using hugin and lensfun), it mentions how to fill in values for different corrections.

Adding new lenses to the database
12-18-2022, 10:40 PM   #6
Site Supporter
Site Supporter




Join Date: Aug 2015
Location: Alabama
Photos: Gallery
Posts: 697
Would you be willing to share your lensfun entries with other forum members?
Reply

Bookmarks
  • Submit Thread to Facebook Facebook
  • Submit Thread to Twitter Twitter
  • Submit Thread to Digg Digg
Tags - Make this thread easier to find by adding keywords to it!
guide, lens, lenses, lensfun xml, photography, photoshop, xml
Thread Tools Search this Thread
Search this Thread:

Advanced Search


Similar Threads
Thread Thread Starter Forum Replies Last Post
Lensfun profiles for DA lenses on K-1 in FF mode Ptitboul Pentax K-1 & K-1 II 2 03-10-2018 03:57 AM
Formula for flash guide number robert52 Flashes, Lighting, and Studio 13 04-06-2017 08:26 AM
The Film Shooters Guide to Digital - A Dummies Guide to the K5 SCADjacket Troubleshooting and Beginner Help 10 11-18-2012 04:49 PM
Lensfun Un-registered Digital Processing, Software, and Printing 5 05-08-2012 09:08 PM
XML error: Invalid character at line 389 jpzk Site Suggestions and Help 2 04-07-2010 10:08 AM



All times are GMT -7. The time now is 08:40 AM. | See also: NikonForums.com, CanonForums.com part of our network of photo forums!
  • Red (Default)
  • Green
  • Gray
  • Dark
  • Dark Yellow
  • Dark Blue
  • Old Red
  • Old Green
  • Old Gray
  • Dial-Up Style
Hello! It's great to see you back on the forum! Have you considered joining the community?
register
Creating a FREE ACCOUNT takes under a minute, removes ads, and lets you post! [Dismiss]
Top