Lensfun dual entry APS-FF and vignetting


#1

I have noticed that there isn’t anymore vignetting correction on one of my lenses, smc Pentax-DA L 18-50mm f/4-5.6 DC WR RE, used on a Pentax K20 (aps camera)

I think it’s due to the fact there is an entry for APS correction (complete), and one for full frame correction, without vignetting (for sure, i think there will be big black borders since it’s an APS lens…).

Is there a way to fix this? I’m using 5.5 appimage.

Thank you in advance.

<lens>
    <maker>Pentax</maker>
    <model>smc Pentax-DA L 18-50mm f/4-5.6 DC WR RE</model>
    <mount>Pentax KAF3</mount>
    <cropfactor>1.534</cropfactor>
    <calibration>
        <!-- Taken with Pentax K-S2 -->
        <distortion model="ptlens" focal="18" a="0.00982" b="-0.03805" c="0.01695"/>
        <distortion model="ptlens" focal="24" a="0.00488" b="-0.02037" c="0.01274"/>
        <distortion model="ptlens" focal="34" a="0" b="0.0009" c="0"/>
        <distortion model="ptlens" focal="50" a="0" b="0.00297" c="0"/>
        <tca model="poly3" focal="18" vr="1.0005357" vb="1.0000769"/>
        <tca model="poly3" focal="24" vr="1.0003696" vb="1.0000405"/>
        <tca model="poly3" focal="34" vr="1.0001627" vb="1.0000371"/>
        <tca model="poly3" focal="50" vr="1.0000870" vb="1.0000095"/>
        <!-- Taken with Pentax K20 -->
        <vignetting model="pa" focal="18" aperture="4" distance="10" k1="-0.1711" k2="-0.9527" k3="0.5945"/>
        <vignetting model="pa" focal="18" aperture="4" distance="1000" k1="-0.1711" k2="-0.9527" k3="0.5945"/>
        <vignetting model="pa" focal="18" aperture="5.6" distance="10" k1="-0.0563" k2="-0.5835" k3="0.1701"/>
        <vignetting model="pa" focal="18" aperture="5.6" distance="1000" k1="-0.0563" k2="-0.5835" k3="0.1701"/>
        <vignetting model="pa" focal="18" aperture="8" distance="10" k1="-0.2812" k2="0.2809" k3="-0.3809"/>
        <vignetting model="pa" focal="18" aperture="8" distance="1000" k1="-0.2812" k2="0.2809" k3="-0.3809"/>
        <vignetting model="pa" focal="18" aperture="11" distance="10" k1="-0.3233" k2="0.3157" k3="-0.2672"/>
        <vignetting model="pa" focal="18" aperture="11" distance="1000" k1="-0.3233" k2="0.3157" k3="-0.2672"/>
        <vignetting model="pa" focal="18" aperture="22" distance="10" k1="-0.2513" k2="-0.0017" k3="0.0500"/>
        <vignetting model="pa" focal="18" aperture="22" distance="1000" k1="-0.2513" k2="-0.0017" k3="0.0500"/>
        <vignetting model="pa" focal="24" aperture="4.5" distance="10" k1="-0.0623" k2="-0.9608" k3="0.5561"/>
        <vignetting model="pa" focal="24" aperture="4.5" distance="1000" k1="-0.0623" k2="-0.9608" k3="0.5561"/>
        <vignetting model="pa" focal="24" aperture="5.6" distance="10" k1="-0.1184" k2="-0.1416" k3="-0.0579"/>
        <vignetting model="pa" focal="24" aperture="5.6" distance="1000" k1="-0.1184" k2="-0.1416" k3="-0.0579"/>
        <vignetting model="pa" focal="24" aperture="8" distance="10" k1="-0.2333" k2="0.1738" k3="-0.1239"/>
        <vignetting model="pa" focal="24" aperture="8" distance="1000" k1="-0.2333" k2="0.1738" k3="-0.1239"/>
        <vignetting model="pa" focal="24" aperture="11" distance="10" k1="-0.2046" k2="0.0233" k3="0.0363"/>
        <vignetting model="pa" focal="24" aperture="11" distance="1000" k1="-0.2046" k2="0.0233" k3="0.0363"/>
        <vignetting model="pa" focal="24" aperture="22" distance="10" k1="-0.2095" k2="0.0317" k3="0.0322"/>
        <vignetting model="pa" focal="24" aperture="22" distance="1000" k1="-0.2095" k2="0.0317" k3="0.0322"/>
        <vignetting model="pa" focal="34" aperture="4.5" distance="10" k1="-0.6655" k2="0.4679" k3="-0.1657"/>
        <vignetting model="pa" focal="34" aperture="4.5" distance="1000" k1="-0.6655" k2="0.4679" k3="-0.1657"/>
        <vignetting model="pa" focal="34" aperture="5.6" distance="10" k1="-0.1549" k2="-0.3719" k3="0.2863"/>
        <vignetting model="pa" focal="34" aperture="5.6" distance="1000" k1="-0.1549" k2="-0.3719" k3="0.2863"/>
        <vignetting model="pa" focal="34" aperture="8" distance="10" k1="-0.1223" k2="-0.0198" k3="0.0589"/>
        <vignetting model="pa" focal="34" aperture="8" distance="1000" k1="-0.1223" k2="-0.0198" k3="0.0589"/>
        <vignetting model="pa" focal="34" aperture="11" distance="10" k1="-0.1237" k2="-0.0396" k3="0.0843"/>
        <vignetting model="pa" focal="34" aperture="11" distance="1000" k1="-0.1237" k2="-0.0396" k3="0.0843"/>
        <vignetting model="pa" focal="34" aperture="22" distance="10" k1="-0.1258" k2="-0.0556" k3="0.1032"/>
        <vignetting model="pa" focal="34" aperture="22" distance="1000" k1="-0.1258" k2="-0.0556" k3="0.1032"/>
        <vignetting model="pa" focal="43" aperture="5.6" distance="10" k1="-0.7965" k2="0.7042" k3="-0.2677"/>
        <vignetting model="pa" focal="43" aperture="5.6" distance="1000" k1="-0.7965" k2="0.7042" k3="-0.2677"/>
        <vignetting model="pa" focal="43" aperture="8" distance="10" k1="-0.0475" k2="-0.2120" k3="0.0921"/>
        <vignetting model="pa" focal="43" aperture="8" distance="1000" k1="-0.0475" k2="-0.2120" k3="0.0921"/>
        <vignetting model="pa" focal="43" aperture="11" distance="10" k1="-0.1185" k2="0.0018" k3="0.0462"/>
        <vignetting model="pa" focal="43" aperture="11" distance="1000" k1="-0.1185" k2="0.0018" k3="0.0462"/>
        <vignetting model="pa" focal="43" aperture="22" distance="10" k1="-0.1113" k2="-0.0213" k3="0.0536"/>
        <vignetting model="pa" focal="43" aperture="22" distance="1000" k1="-0.1113" k2="-0.0213" k3="0.0536"/>
        <vignetting model="pa" focal="50" aperture="5.6" distance="10" k1="-0.8485" k2="0.8254" k3="-0.3390"/>
        <vignetting model="pa" focal="50" aperture="5.6" distance="1000" k1="-0.8485" k2="0.8254" k3="-0.3390"/>
        <vignetting model="pa" focal="50" aperture="8" distance="10" k1="-0.0474" k2="-0.5397" k3="0.3555"/>
        <vignetting model="pa" focal="50" aperture="8" distance="1000" k1="-0.0474" k2="-0.5397" k3="0.3555"/>
        <vignetting model="pa" focal="50" aperture="11" distance="10" k1="-0.1252" k2="0.0568" k3="-0.0007"/>
        <vignetting model="pa" focal="50" aperture="11" distance="1000" k1="-0.1252" k2="0.0568" k3="-0.0007"/>
        <vignetting model="pa" focal="50" aperture="22" distance="10" k1="-0.1280" k2="0.0673" k3="-0.0116"/>
        <vignetting model="pa" focal="50" aperture="22" distance="1000" k1="-0.1280" k2="0.0673" k3="-0.0116"/>
    </calibration>
</lens>

<lens>
  <maker>Pentax</maker>
  <model>smc Pentax-DA L 18-50mm f/4-5.6 DC WR RE</model>
  <mount>Pentax KAF3</mount>
  <cropfactor>1</cropfactor>
  <calibration>
      <!-- Taqken with Pentax K1; apparently this APS-C lens is being used on these -->
      <distortion model="ptlens" focal="18" a="0.0434503" b="-0.109204" c="0.03667"/> 
      <distortion model="ptlens" focal="24" a="0.0244552" b="-0.061887" c="0.0268412"/>
      <distortion model="ptlens" focal="34" a="0" b="0.0062517" c="0"/>
      <distortion model="ptlens" focal="50" a="0" b="0.00861152" c="0"/>
      <tca model="poly3" focal="18" vr="1.0005107" vb="1.0000802"/>
      <tca model="poly3" focal="24" vr="1.0003677" vb="1.0000938"/>
      <tca model="poly3" focal="34" vr="1.0002289" vb="1.0000649"/>
      <tca model="poly3" focal="50" vr="1.0001285" vb="1.0000191"/>
  </calibration>

(Carmelo Dr Raw) #2

Could you post a sample RAW file?


#3

Of course it’s here:

IMGP4826.PEF (10.6 MB)