Lens correction in darktable when my lens isn't known?

The name of the pictureThe name of the pictureThe name of the pictureClash Royale CLAN TAG#URR8PPP











up vote
1
down vote

favorite












I took some raw (CR2) photos with the Canon Powershot G5 X and want to edit them in darktable. The focal length is quite low and the distortion high. My Problem: I want to correct the distortion and don't know how.



The way I usually do this is by using darktable's lens correction module which automatically chooses the right values based on the exif information. It works for DSLRs but this camera/ isn't known.



lens correction



If there is a way to correct it, I wouldn't know which values to choose.
The only hint I get is through the camera`s software which automatically saves a corrected preview jpeg roughly the same resolution embedded in the raw.



My question:



  • What's the way to correct the distortion in darktable, if I cannot choose the right objective from the drop down menu in the lens correction module?

  • How do I determine the values? Which values should I choose?









share|improve this question









New contributor




quiliup is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.















  • 2




    Related (ignoring the specific lens/body): Darktable doesn't recognize tamron 18-270mm lens
    – scottbb
    3 hours ago










  • Possible duplicate of Darktable doesn't recognize tamron 18-270mm lens
    – Romeo Ninov
    1 hour ago














up vote
1
down vote

favorite












I took some raw (CR2) photos with the Canon Powershot G5 X and want to edit them in darktable. The focal length is quite low and the distortion high. My Problem: I want to correct the distortion and don't know how.



The way I usually do this is by using darktable's lens correction module which automatically chooses the right values based on the exif information. It works for DSLRs but this camera/ isn't known.



lens correction



If there is a way to correct it, I wouldn't know which values to choose.
The only hint I get is through the camera`s software which automatically saves a corrected preview jpeg roughly the same resolution embedded in the raw.



My question:



  • What's the way to correct the distortion in darktable, if I cannot choose the right objective from the drop down menu in the lens correction module?

  • How do I determine the values? Which values should I choose?









share|improve this question









New contributor




quiliup is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.















  • 2




    Related (ignoring the specific lens/body): Darktable doesn't recognize tamron 18-270mm lens
    – scottbb
    3 hours ago










  • Possible duplicate of Darktable doesn't recognize tamron 18-270mm lens
    – Romeo Ninov
    1 hour ago












up vote
1
down vote

favorite









up vote
1
down vote

favorite











I took some raw (CR2) photos with the Canon Powershot G5 X and want to edit them in darktable. The focal length is quite low and the distortion high. My Problem: I want to correct the distortion and don't know how.



The way I usually do this is by using darktable's lens correction module which automatically chooses the right values based on the exif information. It works for DSLRs but this camera/ isn't known.



lens correction



If there is a way to correct it, I wouldn't know which values to choose.
The only hint I get is through the camera`s software which automatically saves a corrected preview jpeg roughly the same resolution embedded in the raw.



My question:



  • What's the way to correct the distortion in darktable, if I cannot choose the right objective from the drop down menu in the lens correction module?

  • How do I determine the values? Which values should I choose?









share|improve this question









New contributor




quiliup is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.











I took some raw (CR2) photos with the Canon Powershot G5 X and want to edit them in darktable. The focal length is quite low and the distortion high. My Problem: I want to correct the distortion and don't know how.



The way I usually do this is by using darktable's lens correction module which automatically chooses the right values based on the exif information. It works for DSLRs but this camera/ isn't known.



lens correction



If there is a way to correct it, I wouldn't know which values to choose.
The only hint I get is through the camera`s software which automatically saves a corrected preview jpeg roughly the same resolution embedded in the raw.



My question:



  • What's the way to correct the distortion in darktable, if I cannot choose the right objective from the drop down menu in the lens correction module?

  • How do I determine the values? Which values should I choose?






distortion darktable lens-correction






share|improve this question









New contributor




quiliup is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.











share|improve this question









New contributor




quiliup is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.









share|improve this question




share|improve this question








edited 2 hours ago









mattdm

117k37339630




117k37339630






New contributor




quiliup is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.









asked 4 hours ago









quiliup

1084




1084




New contributor




quiliup is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.





New contributor





quiliup is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.






quiliup is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.







  • 2




    Related (ignoring the specific lens/body): Darktable doesn't recognize tamron 18-270mm lens
    – scottbb
    3 hours ago










  • Possible duplicate of Darktable doesn't recognize tamron 18-270mm lens
    – Romeo Ninov
    1 hour ago












  • 2




    Related (ignoring the specific lens/body): Darktable doesn't recognize tamron 18-270mm lens
    – scottbb
    3 hours ago










  • Possible duplicate of Darktable doesn't recognize tamron 18-270mm lens
    – Romeo Ninov
    1 hour ago







2




2




Related (ignoring the specific lens/body): Darktable doesn't recognize tamron 18-270mm lens
– scottbb
3 hours ago




Related (ignoring the specific lens/body): Darktable doesn't recognize tamron 18-270mm lens
– scottbb
3 hours ago












Possible duplicate of Darktable doesn't recognize tamron 18-270mm lens
– Romeo Ninov
1 hour ago




Possible duplicate of Darktable doesn't recognize tamron 18-270mm lens
– Romeo Ninov
1 hour ago










1 Answer
1






active

oldest

votes

















up vote
3
down vote



accepted










Unfortunately, as of right now, darktable doesn't have a very good way of doing ad hoc distortion correction for a lens you don't have a lensfun profile for. The following is a dirty hack that may be useful in cases where the barrel distortion at the wide end of a zoom is so strong that even "incorrect" correction might be an improvement...



In the lens correction module, click on the top (camera) dropdown list, and manually select "Crop-factor 1.0 (Full Frame)" from the "Generic" menu category, then similarly for the lens dropdown select Generic>Rectilinear 10-1000mm f/1.0. Change the "geometry" setting to "fish-eye", and the "mode" setting to "distort". Now, when you change the value in the "mm" dropdown menu, you should get different degrees of generic "defishing"; start at the largest mm values and work down the list until you find something that looks closest to correct. Clicking the circular arrow button to the right of the "scale" slider will auto-adjust the scale to the largest crop with no blank pixels.



If you're trying to correct "pincushion" distortion at the long end of a zoom, change the mode to "correct" instead of "distort".






share|improve this answer




















  • Good info. But I believe that lensfun 0.3.95 (development) has info for the G5 X, so perhaps just an update to 0.3.95 is all that's necessary?
    – scottbb
    1 hour ago










Your Answer







StackExchange.ready(function()
var channelOptions =
tags: "".split(" "),
id: "61"
;
initTagRenderer("".split(" "), "".split(" "), channelOptions);

StackExchange.using("externalEditor", function()
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled)
StackExchange.using("snippets", function()
createEditor();
);

else
createEditor();

);

function createEditor()
StackExchange.prepareEditor(
heartbeatType: 'answer',
convertImagesToLinks: false,
noModals: false,
showLowRepImageUploadWarning: true,
reputationToPostImages: null,
bindNavPrevention: true,
postfix: "",
noCode: true, onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
);



);






quiliup is a new contributor. Be nice, and check out our Code of Conduct.









 

draft saved


draft discarded


















StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fphoto.stackexchange.com%2fquestions%2f101972%2flens-correction-in-darktable-when-my-lens-isnt-known%23new-answer', 'question_page');

);

Post as a guest






























1 Answer
1






active

oldest

votes








1 Answer
1






active

oldest

votes









active

oldest

votes






active

oldest

votes








up vote
3
down vote



accepted










Unfortunately, as of right now, darktable doesn't have a very good way of doing ad hoc distortion correction for a lens you don't have a lensfun profile for. The following is a dirty hack that may be useful in cases where the barrel distortion at the wide end of a zoom is so strong that even "incorrect" correction might be an improvement...



In the lens correction module, click on the top (camera) dropdown list, and manually select "Crop-factor 1.0 (Full Frame)" from the "Generic" menu category, then similarly for the lens dropdown select Generic>Rectilinear 10-1000mm f/1.0. Change the "geometry" setting to "fish-eye", and the "mode" setting to "distort". Now, when you change the value in the "mm" dropdown menu, you should get different degrees of generic "defishing"; start at the largest mm values and work down the list until you find something that looks closest to correct. Clicking the circular arrow button to the right of the "scale" slider will auto-adjust the scale to the largest crop with no blank pixels.



If you're trying to correct "pincushion" distortion at the long end of a zoom, change the mode to "correct" instead of "distort".






share|improve this answer




















  • Good info. But I believe that lensfun 0.3.95 (development) has info for the G5 X, so perhaps just an update to 0.3.95 is all that's necessary?
    – scottbb
    1 hour ago














up vote
3
down vote



accepted










Unfortunately, as of right now, darktable doesn't have a very good way of doing ad hoc distortion correction for a lens you don't have a lensfun profile for. The following is a dirty hack that may be useful in cases where the barrel distortion at the wide end of a zoom is so strong that even "incorrect" correction might be an improvement...



In the lens correction module, click on the top (camera) dropdown list, and manually select "Crop-factor 1.0 (Full Frame)" from the "Generic" menu category, then similarly for the lens dropdown select Generic>Rectilinear 10-1000mm f/1.0. Change the "geometry" setting to "fish-eye", and the "mode" setting to "distort". Now, when you change the value in the "mm" dropdown menu, you should get different degrees of generic "defishing"; start at the largest mm values and work down the list until you find something that looks closest to correct. Clicking the circular arrow button to the right of the "scale" slider will auto-adjust the scale to the largest crop with no blank pixels.



If you're trying to correct "pincushion" distortion at the long end of a zoom, change the mode to "correct" instead of "distort".






share|improve this answer




















  • Good info. But I believe that lensfun 0.3.95 (development) has info for the G5 X, so perhaps just an update to 0.3.95 is all that's necessary?
    – scottbb
    1 hour ago












up vote
3
down vote



accepted







up vote
3
down vote



accepted






Unfortunately, as of right now, darktable doesn't have a very good way of doing ad hoc distortion correction for a lens you don't have a lensfun profile for. The following is a dirty hack that may be useful in cases where the barrel distortion at the wide end of a zoom is so strong that even "incorrect" correction might be an improvement...



In the lens correction module, click on the top (camera) dropdown list, and manually select "Crop-factor 1.0 (Full Frame)" from the "Generic" menu category, then similarly for the lens dropdown select Generic>Rectilinear 10-1000mm f/1.0. Change the "geometry" setting to "fish-eye", and the "mode" setting to "distort". Now, when you change the value in the "mm" dropdown menu, you should get different degrees of generic "defishing"; start at the largest mm values and work down the list until you find something that looks closest to correct. Clicking the circular arrow button to the right of the "scale" slider will auto-adjust the scale to the largest crop with no blank pixels.



If you're trying to correct "pincushion" distortion at the long end of a zoom, change the mode to "correct" instead of "distort".






share|improve this answer












Unfortunately, as of right now, darktable doesn't have a very good way of doing ad hoc distortion correction for a lens you don't have a lensfun profile for. The following is a dirty hack that may be useful in cases where the barrel distortion at the wide end of a zoom is so strong that even "incorrect" correction might be an improvement...



In the lens correction module, click on the top (camera) dropdown list, and manually select "Crop-factor 1.0 (Full Frame)" from the "Generic" menu category, then similarly for the lens dropdown select Generic>Rectilinear 10-1000mm f/1.0. Change the "geometry" setting to "fish-eye", and the "mode" setting to "distort". Now, when you change the value in the "mm" dropdown menu, you should get different degrees of generic "defishing"; start at the largest mm values and work down the list until you find something that looks closest to correct. Clicking the circular arrow button to the right of the "scale" slider will auto-adjust the scale to the largest crop with no blank pixels.



If you're trying to correct "pincushion" distortion at the long end of a zoom, change the mode to "correct" instead of "distort".







share|improve this answer












share|improve this answer



share|improve this answer










answered 3 hours ago









junkyardsparkle

4,325924




4,325924











  • Good info. But I believe that lensfun 0.3.95 (development) has info for the G5 X, so perhaps just an update to 0.3.95 is all that's necessary?
    – scottbb
    1 hour ago
















  • Good info. But I believe that lensfun 0.3.95 (development) has info for the G5 X, so perhaps just an update to 0.3.95 is all that's necessary?
    – scottbb
    1 hour ago















Good info. But I believe that lensfun 0.3.95 (development) has info for the G5 X, so perhaps just an update to 0.3.95 is all that's necessary?
– scottbb
1 hour ago




Good info. But I believe that lensfun 0.3.95 (development) has info for the G5 X, so perhaps just an update to 0.3.95 is all that's necessary?
– scottbb
1 hour ago










quiliup is a new contributor. Be nice, and check out our Code of Conduct.









 

draft saved


draft discarded


















quiliup is a new contributor. Be nice, and check out our Code of Conduct.












quiliup is a new contributor. Be nice, and check out our Code of Conduct.











quiliup is a new contributor. Be nice, and check out our Code of Conduct.













 


draft saved


draft discarded














StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fphoto.stackexchange.com%2fquestions%2f101972%2flens-correction-in-darktable-when-my-lens-isnt-known%23new-answer', 'question_page');

);

Post as a guest













































































Comments

Popular posts from this blog

What does second last employer means? [closed]

Installing NextGIS Connect into QGIS 3?

One-line joke