[digikamimageplugins] [Bug 312764] New: [patch] Crop factor always set to -1.0 in lens correction

classic Classic list List threaded Threaded
9 messages Options
Reply | Threaded
Open this post in threaded view
|

[digikamimageplugins] [Bug 312764] New: [patch] Crop factor always set to -1.0 in lens correction

Roman I Khimov
https://bugs.kde.org/show_bug.cgi?id=312764

            Bug ID: 312764
           Summary: [patch] Crop factor always set to -1.0 in lens
                    correction
    Classification: Unclassified
           Product: digikamimageplugins
           Version: 2.6.0
          Hardware: Other
                OS: Linux
            Status: UNCONFIRMED
          Severity: normal
          Priority: NOR
         Component: Lens Distortion
          Assignee: [hidden email]
          Reporter: [hidden email]

Digikam always uses crop factor of -1.0 (1.0 effectively) in lens correction.
For cropped cameras this gives surprising results.

Patch will be added.

Reproducible: Always

--
You are receiving this mail because:
You are the assignee for the bug.
_______________________________________________
Digikam-devel mailing list
[hidden email]
https://mail.kde.org/mailman/listinfo/digikam-devel
Reply | Threaded
Open this post in threaded view
|

[digikamimageplugins] [Bug 312764] [patch] Crop factor always set to -1.0 in lens correction

Roman I Khimov
https://bugs.kde.org/show_bug.cgi?id=312764

--- Comment #1 from Roman I Khimov <[hidden email]> ---
Created attachment 76254
  --> https://bugs.kde.org/attachment.cgi?id=76254&action=edit
Patch to fix the problem

--
You are receiving this mail because:
You are the assignee for the bug.
_______________________________________________
Digikam-devel mailing list
[hidden email]
https://mail.kde.org/mailman/listinfo/digikam-devel
Reply | Threaded
Open this post in threaded view
|

[digikamimageplugins] [Bug 312764] [patch] Crop factor always set to -1.0 in lens correction

Roman I Khimov
In reply to this post by Roman I Khimov
https://bugs.kde.org/show_bug.cgi?id=312764

Roman I Khimov <[hidden email]> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Blocks|                            |267613, 253941, 266204,
                   |                            |281783, 284708

--- Comment #2 from Roman I Khimov <[hidden email]> ---
It looks to me that this patch should fix bugs added to 'blocks' list. They're
all similar, wrong corrections for cropped cameras.

--
You are receiving this mail because:
You are the assignee for the bug.
_______________________________________________
Digikam-devel mailing list
[hidden email]
https://mail.kde.org/mailman/listinfo/digikam-devel
Reply | Threaded
Open this post in threaded view
|

[digikamimageplugins] [Bug 312764] [patch] Crop factor always set to -1.0 in lens correction

Gilles Caulier-4
In reply to this post by Roman I Khimov
https://bugs.kde.org/show_bug.cgi?id=312764

Gilles Caulier <[hidden email]> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |RESOLVED
   Version Fixed In|                            |3.0.0
         Resolution|---                         |FIXED
      Latest Commit|                            |http://commits.kde.org/digi
                   |                            |kam/8b3eb6f0b498ae11729e088
                   |                            |0e7ac0673b2dd2bd8

--- Comment #3 from Gilles Caulier <[hidden email]> ---
Git commit 8b3eb6f0b498ae11729e0880e7ac0673b2dd2bd8 by Gilles Caulier.
Committed on 07/01/2013 at 11:16.
Pushed by cgilles into branch 'master'.

Apply patch #76254 from Roman I Khimov about lensfun interface which don't
mangle cropFactor if it's set.
This behaviour was introduced by polish commit
bebef401e147a00f859cb81774f8498a0623eee5.
With this branch present we always get cropFactor of
-1.0 in LensFunFilter::filterImage() and given that lensfun library just uses
crop factor of 1 which leads to obviously wrong calculations for cropped
cameras.
Related: bug 253941, bug 266204, bug 267613, bug 281783, bug 284708
FIXED-IN: 3.0.0
CCMAIL: [hidden email]

M  +0    -4    libs/dimg/filters/lens/lensfuncameraselector.cpp

http://commits.kde.org/digikam/8b3eb6f0b498ae11729e0880e7ac0673b2dd2bd8

--
You are receiving this mail because:
You are the assignee for the bug.
_______________________________________________
Digikam-devel mailing list
[hidden email]
https://mail.kde.org/mailman/listinfo/digikam-devel
Reply | Threaded
Open this post in threaded view
|

[digikamimageplugins] [Bug 312764] Crop factor always set to -1.0 in lens correction [patch]

Gilles Caulier-4
In reply to this post by Roman I Khimov
https://bugs.kde.org/show_bug.cgi?id=312764

Gilles Caulier <[hidden email]> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |[hidden email]
            Summary|[patch] Crop factor always  |Crop factor always set to
                   |set to -1.0 in lens         |-1.0 in lens correction
                   |correction                  |[patch]

--
You are receiving this mail because:
You are the assignee for the bug.
_______________________________________________
Digikam-devel mailing list
[hidden email]
https://mail.kde.org/mailman/listinfo/digikam-devel
Reply | Threaded
Open this post in threaded view
|

[digikamimageplugins] [Bug 312764] Crop factor always set to -1.0 in lens correction [patch]

Gilles Caulier-4
In reply to this post by Roman I Khimov
https://bugs.kde.org/show_bug.cgi?id=312764

--- Comment #4 from Gilles Caulier <[hidden email]> ---
Git commit 613d004121682d122e9ea7fd9041a7bbc49acb89 by Gilles Caulier.
Committed on 07/01/2013 at 11:34.
Pushed by cgilles into branch 'master'.

Apply patch #76256 from Roman I Khimov to use crop factor from camera, not from
lens data.
Lens crop factor in DB only tells us which crop factor was used for lens
calibration data, but it has nothing to do with shots made on random user's
camera. So the default behaviour should be to use camera's crop factor and only
fallback to lens data if there in no data present for camera. As "this should
not happen" it's appropriate to spit out some debug message in this case.

Ref: http://lensfun.berlios.de/manual/el_lens.html
Ref: http://lensfun.berlios.de/manual/el_camera.html
Related: bug 312766, bug 253941, bug 266204, bug 267613, bug 281783, bug 284708
FIXED-IN: 3.0.0
CCMAIL: [hidden email]

M  +2    -1    libs/dimg/filters/lens/lensfuncameraselector.cpp
M  +1    -1    libs/dimg/filters/lens/lensfuniface.cpp

http://commits.kde.org/digikam/613d004121682d122e9ea7fd9041a7bbc49acb89

--
You are receiving this mail because:
You are the assignee for the bug.
_______________________________________________
Digikam-devel mailing list
[hidden email]
https://mail.kde.org/mailman/listinfo/digikam-devel
Reply | Threaded
Open this post in threaded view
|

[digikamimageplugins] [Bug 312764] Crop factor always set to -1.0 in lens correction [patch]

Gilles Caulier-4
In reply to this post by Roman I Khimov
https://bugs.kde.org/show_bug.cgi?id=312764

--- Comment #5 from Gilles Caulier <[hidden email]> ---
Git commit 70cf9beaac9996c219f988d8ae74d75dc253c0ad by Gilles Caulier.
Committed on 07/01/2013 at 11:39.
Pushed by cgilles into branch 'master'.

Apply patch #76255 from Roman I Khimov to don't pass crop factor as scale
factor to lensfun.

Sixth parameter to Initialize() is actually a scale factor which has nothing
in common with crop factor. I think it's safe to assume that we want no
scaling from lensfun and thus use the value of one.

Ref: http://lensfun.berlios.de/manual/structlfModifier.html
Related: bug 312765, bug 253941, bug 266204, bug 267613, bug 281783, bug 284708
FIXED-IN: 3.0.0
CCMAIL: [hidden email]

M  +1    -1    libs/dimg/filters/lens/lensfunfilter.cpp

http://commits.kde.org/digikam/70cf9beaac9996c219f988d8ae74d75dc253c0ad

--
You are receiving this mail because:
You are the assignee for the bug.
_______________________________________________
Digikam-devel mailing list
[hidden email]
https://mail.kde.org/mailman/listinfo/digikam-devel
Reply | Threaded
Open this post in threaded view
|

[digikamimageplugins] [Bug 312764] Crop factor always set to -1.0 in lens correction [patch]

Roman I Khimov
In reply to this post by Roman I Khimov
https://bugs.kde.org/show_bug.cgi?id=312764

Roman I Khimov <[hidden email]> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|RESOLVED                    |CLOSED

--- Comment #6 from Roman I Khimov <[hidden email]> ---
Patch applied, thanks, closing.

--
You are receiving this mail because:
You are the assignee for the bug.
_______________________________________________
Digikam-devel mailing list
[hidden email]
https://mail.kde.org/mailman/listinfo/digikam-devel
Reply | Threaded
Open this post in threaded view
|

[digikam] [Bug 312764] Crop factor always set to -1.0 in lens correction [patch]

bugzilla_noreply
In reply to this post by Roman I Khimov
https://bugs.kde.org/show_bug.cgi?id=312764

[hidden email] changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
          Component|Lens Distortion             |Tool-LensDistortion
            Product|digikamimageplugins         |digikam

--
You are receiving this mail because:
You are the assignee for the bug.
_______________________________________________
Digikam-devel mailing list
[hidden email]
https://mail.kde.org/mailman/listinfo/digikam-devel