Am Thu, 07 Dec 2017 16:38:43 -0800
schrieb [email protected]:
I have found a (strange) workaround for 3 Tamron lenses with Pentax and
my Ubuntu Xenial-pc, it works now automatically with darktable. Files
are in ~/.local/share/lensfun
change in git-version for Tamron SP AF 28-75mm:
<model lang="en">Tamron SP AF 28-75mm F2.8 XR Di LD Aspherical [IF]
Macro</model>
<lens>
<maker>Tamron</maker>
<model>Tamron SP AF 28-75mm f/2.8 XR Di LD Aspherical
(IF)</model> <model lang="en">Tamron SP AF 28-75mm f/2.8 XR Di (IF)
Macro</model> <model lang="en">Tamron SP AF 28-75mm F2.8 XR Di LD
Aspherical [IF] Macro</model> <mount>Canon EF</mount>
<mount>Nikon F AF</mount>
<mount>Pentax KAF</mount>
<mount>Sony Alpha</mount>
<cropfactor>1</cropfactor>
<calibration>
<distortion model="ptlens" focal="28" a="0.01469"
b="-0.034774" c="0"/> <distortion model="ptlens" focal="30"
a="0.012441" b="-0.026997" c="0"/> <distortion model="ptlens"
focal="35" a="0.009958" b="-0.018577" c="0"/> <distortion
model="ptlens" focal="50" a="0" b="0.005421" c="0"/> <distortion
model="ptlens" focal="60" a="0" b="0.00752" c="0"/> <distortion
model="ptlens" focal="75" a="0" b="0.007321" c="0"/> </calibration>
</lens>
change in git-version for Tamron SP AF 70-200mm:
the "trick" above did _not_ the job, I mean adding a line "<model lang"
I remvoed in the git-version all 70-200 entries (including Nikon) and
made an own file for the 70-200, then it worked. Again the same
strategy as before with a new line for the lensname according to
exiftool.
This file contains:
<lensdatabase>
<lens>
<maker>Tamron</maker>
<model>Tamron SP AF 70-200mm f/2.8 Di LD (IF) Macro
(A001)</model> <model lang="en">Tamron SP AF 70-200mm f/2.8 Di LD
(IF) Macro</model> <model lang="en">Tamron SP AF 70-200mm F2.8 Di
LD [IF] Macro (A001)</model> <mount>Canon EF</mount>
<mount>Nikon F AF</mount>
<mount>Sony Alpha</mount>
<mount>Pentax KAF2</mount>
<cropfactor>1</cropfactor>
<calibration>
<!-- Taken with Nikon D700 -->
<distortion model="poly3" focal="70" k1="-0.00915"/>
<distortion model="poly3" focal="92" k1="-0.00355"/>
<distortion model="poly3" focal="120" k1="0.00108"/>
<distortion model="poly3" focal="145" k1="0.00556"/>
<distortion model="poly3" focal="200" k1="0.00775"/>
<tca model="poly3" focal="70" vr="1.0003920"
vb="0.9998959"/> <tca model="poly3" focal="92" vr="1.0001709"
vb="0.9999495"/> <tca model="poly3" focal="120" vr="1.0000178"
vb="0.9999875"/> <tca model="poly3" focal="145" vr="0.9999155"
vb="1.0000171"/> <tca model="poly3" focal="200" vr="0.9998438"
vb="0.9999326"/> </calibration>
</lens>
</lensdatabase>
No idea, why this didn't work in the git-file.
changed in git-version for Tamron SP AF 10-24mm F3.5-4.5 Di II LD
Aspherical [IF]
With this lens it helped too to do the same as with the 28-75, and to
add the exact lensname displayed by exiftool.
<lens>
<maker>Tamron</maker>
<model>Tamron SP AF 10-24mm f/3.5-4.5 Di II LD Aspherical
(IF)</model> <model lang="en">Tamron SP AF 10-24mm F3.5-4.5 Di II
LD Aspherical [IF]</model> <mount>Canon EF</mount>
<mount>Nikon F AF</mount>
<mount>Pentax KAF</mount>
<mount>Sony Alpha</mount>
<!-- Average crop factor of non-Canon APS-C cameras -->
<cropfactor>1.53</cropfactor>
<calibration>
<distortion model="poly3" focal="10" k1="-0.02452"/>
<distortion model="poly3" focal="12" k1="-0.03732"/>
<distortion model="poly3" focal="15" k1="-0.023"/>
<distortion model="poly3" focal="17" k1="-0.01204"/>
<distortion model="poly3" focal="24" k1="-0.00673"/>
<tca model="poly3" focal="10" br="-0.0010404"
cr="0.0020275" vr="0.9995749" bb="0.0009303" cb="-0.0018018"
vb="1.0010352"/> <tca model="poly3" focal="12" br="-0.0007314"
cr="0.002109" vr="0.9993352" bb="0.0004953" cb="-0.0011687"
vb="1.0007539"/> <tca model="poly3" focal="15" br="-0.0001484"
cr="0.000925" vr="0.9997811" bb="0.0001986" cb="-0.0006209"
vb="1.0005421"/> <tca model="poly3" focal="17" br="0.0005667"
cr="-0.0006233" vr="1.0004042" bb="0.0000267" cb="-0.000269"
vb="1.0004302"/> <tca model="poly3" focal="18" br="0.0002315"
cr="-0.0001694" vr="1.0002462" bb="-0.0000242" cb="-0.0001424"
vb="1.000351"/> <tca model="poly3" focal="24" br="0.00027"
cr="-0.0002972" vr="1.0002846" bb="-0.0000645" cb="-0.0000806"
vb="1.0003365"/> </calibration> </lens> Al
> On Thu, Dec 7, 2017, at 07:18, Аl Воgnеr wrote:
> > Am Thu, 7 Dec 2017 15:32:01 +0100
> > schrieb Аl Воgnеr <[email protected]>:
> >
> > > Am Wed, 06 Dec 2017 23:26:08 -0800
> > > schrieb [email protected]:
> > >
> > > > I adjuststed the model name in the database to match your
> > > > reported Exif model name.
> >
> > I found another Tamron-lens which doesn't work with the Pentax K-5.
> >
> > Exif-Data in photo:
> > Tamron SP AF 10-24mm F3.5-4.5 Di II LD Aspherical [IF]
> >
> > in DB:
> > Tamron SP AF 10-24mm f/3.5-4.5 Di II LD Aspherical (IF)
> >
> > The difference is the slash, which should be ignored in theory.
> >
> > I have to choose the lens manually to see a correction.
> >
> > There is 1 Tamron-lens here, which works fine:
> >
> > Tamron AF 17-50mm F2.8 XR Di-II LD (Model A16)
> >
> >
> > <lens>
> > <!-- This is an alias of Tamron SP AF 17-50mm f/2.8 XR Di
> > II LD Aspherical (IF). According to [email protected], they are
> > optically equivalent. -->
> > <maker>Tamron</maker>
> > <model>Tamron AF 17-50mm f/2.8 XR Di-II LD (Model
> > A16)</model>
> >
> >
> > So maybe the file has to be changed like for the 17-50?
>
> Yes, it looks like some of the lenses in the database need the extra
> model number added to the names. For instance, I found DNG files in
> the calibration upload repository for the 70-200mm, and the name
> reported in darktable was:
>
> Tamron SP AF 70-200mm F2.8 Di LD [IF] Macro (A001)
>
> where the entry in the database was lacking the last '(A001)' part
> (has been added now). If you can compile a list of other such cases,
> they can be updated in the repository. It can be difficult to see
> long names in the information panel in darktable, but you can
> right-click, select-all, and copy... then paste that name into your
> new file for testing. I can't easily troubleshoot your issue with
> files in ~/.local/share/lensfun not being given priority; I'm using
> darktable built against a different version of lensfun. Two things to
> keep in mind with the database files for your version, though: you
> will need to *not* have the 'version="n"' part in the line:
> <lensdatabase version="n"> and *not* have the <aspect-ratio> tag in
> the profile (more likely found in newer non-SLR profiles). AFAIK
> those are the important differences between current git files and
> 0.2.8 compatibility. Hope that helps.
>
------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Lensfun-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/lensfun-users