Re: [darktable-user] Is there a repo for the newest lensfun-database?

2017-06-01 Thread Jean-Luc CECCOLI
Hello,

 

If I'm allowed, let me add... You *must*

- remove the 1st line

- remove everything following "lensfun" but the closing ">"

- replace every double linefeed (\n\n) with a single one

- be aware that your lens isn't the last in the file, or it will be ignored.

That said, I am very happy my Nikkon 70-200 vrII can now be corrected !

Maybe will I be able to work on my 500 Reflex, but I first need to print a A3 
target with straight lines, not distorted !

 

Regards,

 

J.-Luc

 

 

 

> Message du 29/05/17 09:34
> De : junkyardspar...@yepmail.net
> A : darktable-user@lists.darktable.org
> Copie à : 
> Objet : Re: [darktable-user] Is there a repo for the newest lensfun-database?
> 
> You can download the files that are relevant to you ("slr-sigma.xml" etc), 
> and put them in ~/.local/share/lensfun where they will override the system 
> copies installed with lensfun. You might need to remove 'version="2"' from 
> the tag. Case and non-alphanumeric symbols shouldn't be significant for 
> matching in lensfun.
> 
> 
> On Sun, May 28, 2017, at 07:49, Аl Воgnеr wrote:
> > Am Fri, 26 May 2017 22:53:06 -0700
> > schrieb junkyardsparkle :
> > 
> > > Lens database updates happen here first:
> > > 
> > > https://github.com/lensfun/lensfun/tree/master/data/db
> > 
> > How can I install them. I have now 0.3.2.0 installed with Ubuntu 16.04.
> > 
> > Unfortunately, I have lenses which ar suppored with versions newer then
> > 0.3.2
> > 
> > Also I am unsure if it works correcty with 0.3.2.0
> > 
> > Most times I don't see a change, but rarely I see a change.
> > 
> > I have to choose the lens every time manually too, which is not very
> > comfortable
> > 
> > e.g.
> > 
> > [MakerNotes] 0x Lens Type : Sigma 17-50mm
> > F2.8 EX DC HSM
> > 
> > [MakerNotes] 0x0001 Lens Type :
> > Sigma 17-50mm F2.8 EX DC HSM
> > 
> > Please note the spelling:
> > 
> > Dartktable shows f/2.8 (f in lowercase)
> > 
> > Al
> > 
> > darktable user mailing list
> > to unsubscribe send a mail to darktable-user+unsubscr...@lists.darktable.org
> > 
> 
> darktable user mailing list
> to unsubscribe send a mail to darktable-user+unsubscr...@lists.darktable.org
> 
>

darktable user mailing list
to unsubscribe send a mail to darktable-user+unsubscr...@lists.darktable.org



Re: [darktable-user] Is there a repo for the newest lensfun-database?

2017-05-30 Thread Аl Воgnеr
Am Mon, 29 May 2017 16:23:11 -0700
schrieb junkyardspar...@yepmail.net:

> > > You can download the files that are relevant to you
> > > ("slr-sigma.xml" etc), and put them in ~/.local/share/lensfun
> > > where they will override the system copies installed with
> > > lensfun. You might need to remove 'version="2"' from the
> > >  tag. Case and non-alphanumeric symbols shouldn't
> > > be significant for matching in lensfun.  
> > 
> > I didn't try it until now. Does it make sense to mix it with
> > 0.2.8?  
> 
> I assumed that should work, but it appeared not to in the other
> person's case. I'm not sure what the best approach is in this
> situation.

It works now more or less at first sight with the newer lenses. I start
a new thread re

Is it possible to configure "alias lenses"

As there are changes when I use it in dt, I didn't remove 'version="2",
I even don't know where / how I have to do this.

Al


darktable user mailing list
to unsubscribe send a mail to darktable-user+unsubscr...@lists.darktable.org



Re: [darktable-user] Is there a repo for the newest lensfun-database?

2017-05-30 Thread Romano Giannetti

On 30/05/17 07:59, Romano Giannetti wrote:


So the problem is why sometime the new database entry are not working 
for 0.2.8. For example, the entry below seems correct (and it is 
correctly selected with the 0.3.2 hack, albeit with the fisheye problem 
above --- switch to rectilinear and it works), but darktable refuses to 
let me select it with the 0.2.8: 
http://pix.toile-libre.org/?img=1495308076.png



Entry in question:


[removed...]


   3:2


This is the culprit. Just get rid of this line and lensfun 0.2.8 works ok.

So --- to all listening to this --- remove the lensfun 0.3.2 hack I 
suggested before asap. It's dangerous.


One thousand thanks to jys (junkyardspar...@yepmail.net) and Roman 
(lebedev...@gmail.com) for help.


So in my case, to summarize: I added the relevant camera/lens XML 
stanzas from the new lensfun database in a file in 
$HOME/.local/share/lensfun/extrastuff.xml, and removed the "version=2" 
in  tag and all ... stuff.


And now it works with stock DT!

My step 1 and 2 are done for this camera:

1 - lens geometry correction (this)
2 - noise profiled ok ( see https://redmine.darktable.org/issues/11627 )
3 - white balance presets --- I am stuck (see 
https://redmine.darktable.org/issues/11628 ), could use help

4 - lens vignetting... will start this weekend, I hope.

If anyone can help for 3 and 4 (and some developer comment on 2, I think 
it's ok, but I can be wrong) --- chime in.


Romano

--
Romano Giannetti
http://www.rgtti.com/

darktable user mailing list
to unsubscribe send a mail to darktable-user+unsubscr...@lists.darktable.org



Re: [darktable-user] Is there a repo for the newest lensfun-database?

2017-05-30 Thread Romano Giannetti

Hi all,


That is *really* bad advice.
Lensfun has broken their ABI in <= 0.3.2, without bumping the API version.
So doing that will result in all kinds of subtle bugs, like
https://redmine.darktable.org/issues/11626#note-10 and so on...
I think Roman is right here. There are subtle problem (the most 
important one is that it seems that some lens correction defaults to a 
thorby-fisheye type, giving funny but horribly wrong results.


So the problem is why sometime the new database entry are not working 
for 0.2.8. For example, the entry below seems correct (and it is 
correctly selected with the 0.3.2 hack, albeit with the fisheye problem 
above --- switch to rectilinear and it works), but darktable refuses to 
let me select it with the 0.2.8: 
http://pix.toile-libre.org/?img=1495308076.png




Entry in question:


  
  Panasonic
  DMC-TZ100
  panasonicTZ100
  2.75
  
  
  Leica
  DMC-TZ100  compatibles
  fixed lens
  festes Objektiv
  panasonicTZ100
  2.75
  3:2
  
  b="-0.040959" c="-0.0636536"/>
  b="-0.0535213" c="0.00920877"/>
  b="-0.0124246" c="0"/>
  b="-0.00155103" c="0"/>
  b="0.00368039" c="0"/>
  b="0.00140267" c="0"/>
  b="0.00153697" c="0"/>
  b="-0.000878659" c="0"/>
  vb="1.0002000"/>

  
  vb="1.000"/>
  vb="0.000"/>
  vb="0.000"/>
  vb="1.000"/>
  vb="1.000"/>

  
  
  


--
Romano Giannetti
http://www.rgtti.com/


darktable user mailing list
to unsubscribe send a mail to darktable-user+unsubscr...@lists.darktable.org



Re: [darktable-user] Is there a repo for the newest lensfun-database?

2017-05-29 Thread Remco Viëtor
On lundi 29 mai 2017 23:26:11 CEST Аl Воgnеr wrote:
>...
> In the meantime I know, why 0.3.2 didn't work sometimes, I use
> different cameras and one was the new Pentax KP, which is not supported
> until now. When I assigned a Pentax K3 instead, it worked generally.
> Probably not a good idea. I don't understand why the camera is needed
> to correct distortion.

Correction parameters depend on the crop factor, easiest to just use the 
camera body to store that, and not expect the average user to enter the crop 
factor (most will know what body they use, but probably can't be bothered to 
figure out what a crop factor is, let alone which one applies to their camera).
Also, the camera body used could help limit the number of possible lenses: 
lens IDs are not unique between brands, Canon/Nikon/Tamron/Sigma/... can use a 
given ID value for wildly different lenses. I don't think any program uses that 
info though, and its use is complicated when adapters are used.

But, unless lensfun changed the database format, there is no reason to upgrade 
the lensfun *library* only to get access to data for a new camera/lens. As 
described by Roman, grabbing the latest database files and installing them 
under your home directory should work just fine (again, if the database format 
didn't change). And it's easy to correct if it doesn't work (contrary to a 
library upgrade, which can be a pain to undo)

Remco

darktable user mailing list
to unsubscribe send a mail to darktable-user+unsubscr...@lists.darktable.org



Re: [darktable-user] Is there a repo for the newest lensfun-database?

2017-05-29 Thread junkyardsparkle


On Mon, May 29, 2017, at 14:26, Аl Воgnеr wrote:
> Am Mon, 29 May 2017 13:46:18 -0700
>
> In the meantime I know, why 0.3.2 didn't work sometimes, I use
> different cameras and one was the new Pentax KP, which is not supported
> until now. When I assigned a Pentax K3 instead, it worked generally.
> Probably not a good idea. I don't understand why the camera is needed
> to correct distortion.

All that really matters is that you select a camera with exactly the same crop 
factor as the one actually used, so usually anything known to use the same 
sensor will work.
 
> > Does anyone know why the repository is still using old lensfun?
> 
> Interesting question. I am back to 0.2.8-3pmjdebruijn2~xenial and hope
> a new version is coming officially.

Roman's mail gives some hints... 

> > You can download the files that are relevant to you ("slr-sigma.xml"
> > etc), and put them in ~/.local/share/lensfun where they will override
> > the system copies installed with lensfun. You might need to remove
> > 'version="2"' from the  tag. Case and non-alphanumeric
> > symbols shouldn't be significant for matching in lensfun.
> 
> I didn't try it until now. Does it make sense to mix it with 0.2.8?

I assumed that should work, but it appeared not to in the other person's case. 
I'm not sure what the best approach is in this situation.

-- 
jys

darktable user mailing list
to unsubscribe send a mail to darktable-user+unsubscr...@lists.darktable.org



Re: [darktable-user] Is there a repo for the newest lensfun-database?

2017-05-29 Thread Аl Воgnеr
Am Mon, 29 May 2017 13:46:18 -0700
schrieb junkyardspar...@yepmail.net:

> On Mon, May 29, 2017, at 13:20, Аl Воgnеr wrote:
> > 
> > After I installed 0.3.2 as metioned below, all my RX100 photos are
> > incredible strong distorted. Darktable says the RX100 uses a fixed
> > lens. I am going back to the Ubuntu repo, hopefully the corrections
> > are then fine again.  
> 
> Sorry, I don't know what the implications for using a lensfun package
> that's a different version than the one that your darktable package
> was built against might be.

Simply, the old version doesn't support my lenses.

After I switched back, the distortion remained until I deleted the lens
calibration, so I "packed" the history and activated the lens
calibration again. Then it was ok.

In the meantime I know, why 0.3.2 didn't work sometimes, I use
different cameras and one was the new Pentax KP, which is not supported
until now. When I assigned a Pentax K3 instead, it worked generally.
Probably not a good idea. I don't understand why the camera is needed
to correct distortion.

> Does anyone know why the repository is still using old lensfun?

Interesting question. I am back to 0.2.8-3pmjdebruijn2~xenial and hope
a new version is coming officially.

> You can download the files that are relevant to you ("slr-sigma.xml"
> etc), and put them in ~/.local/share/lensfun where they will override
> the system copies installed with lensfun. You might need to remove
> 'version="2"' from the  tag. Case and non-alphanumeric
> symbols shouldn't be significant for matching in lensfun.

I didn't try it until now. Does it make sense to mix it with 0.2.8?

Al

darktable user mailing list
to unsubscribe send a mail to darktable-user+unsubscr...@lists.darktable.org



Re: [darktable-user] Is there a repo for the newest lensfun-database?

2017-05-28 Thread Romano Giannetti



On 28/05/17 01:16, Аl Воgnеr wrote:


Thanks Romano,

I started with
http://validom.net/blog/2016/08/16/lensfun-0-3-2-on-ubuntu-xenial-16-04/

Xenial is my system, so it looks good. The minor problem at the
beginning was, that copy and paste doesn't work, because of wrong - at
the website.


Yep, there is a problem with character encoding...

This is the list of commands I did:

   sudo apt-get build-dep liblensfun0


This installed for me doxygen libclang1-3.6 libllvm3.6v5 libobjc-5-dev

   sudo dpkg -r --force-all liblensfun0 liblensfun-data


download source from  from https://sourceforge.net/projects/lensfun/files/

   tar xvzf lensfun-0.3.2.tar.gz
   cd lensfun-0.3.2
   mkdir cmake_build
   cd cmake_build
   cmake -DCPACK_BINARY_DEB:BOOL=ON -DCMAKE_INSTALL_PREFIX:PATH=/usr ../
   make
   make package


: sudo lensfun-update-data did not work, but seems to me that it is not 
necessary now --- probably it is not installing the python libraries, do 
not know why, I am investigating. Then as root:


   cd /usr/lib/
   rm iblensfun.so.0
   ln -s x86_64-linux-gnu/liblensfun.so.0.3.2 liblensfun.so.0


Notice however that this is a hack. The liblensfun source 0.3.2 install 
itself as `liblensfun1`, although the version of the library seems to be 
0; that means that the darktable PPA will complain that the liblensfun0, 
fro which it depends, is broken.


I am not sure on how to solve this short of compiling everything from 
source. I hope the author of the PPA is listening and have a bit of time 
to help solve correctly all this mess...


Romao

--
Romano Giannetti
http://www.rgtti.com/



darktable user mailing list
to unsubscribe send a mail to darktable-user+unsubscr...@lists.darktable.org

Re: [darktable-user] Is there a repo for the newest lensfun-database?

2017-05-27 Thread Аl Воgnеr
Am Sat, 27 May 2017 10:20:56 +0200
schrieb Romano Giannetti :

> Hi, you can follow this thread: 
> https://www.mail-archive.com/darktable-user@lists.darktable.org/msg03247.html 
> 
> where I made more or less the same question.
> 
> The problem is that simply updating the database can or cannot work.
> You should also update the whole lensfun library; in the last message
> of that thread I more or less explained what I did. I am trying to
> refine the procedure now for my other PC.
> 
> I am available to help if you find any problem...

Thanks Romano,

I started with
http://validom.net/blog/2016/08/16/lensfun-0-3-2-on-ubuntu-xenial-16-04/

Xenial is my system, so it looks good. The minor problem at the
beginning was, that copy and paste doesn't work, because of wrong - at
the website.

apt-get build-dep liblensfun0
Paketlisten werden gelesen... Fertig
E: Sie müssen einige »source«-URIs für Quellpakete in die
sources.list-Datei eintragen.

Which means I have to install some src-repos, because they are missing,
but it doesn't say which.

Which did you install please?

Al



darktable user mailing list
to unsubscribe send a mail to darktable-user+unsubscr...@lists.darktable.org



Re: [darktable-user] Is there a repo for the newest lensfun-database?

2017-05-27 Thread Romano Giannetti

On 27/05/17 00:20, Аl Воgnеr wrote:


I found out, that the newest list at
http://wilson.bronger.org/lensfun_coverage.html contains my lens,
release 0.3.2 does not and my system is at version
0.2.8-3pmjdebruijn2~xenial, I use xubuntu 16.04

So is there a repo, which contains the newest lensfun-files?
Experimental would be ok for the lensfun files, but I do not want to
use an experimental darktable version.

Hi, you can follow this thread: 
https://www.mail-archive.com/darktable-user@lists.darktable.org/msg03247.html 


where I made more or less the same question.

The problem is that simply updating the database can or cannot work. You 
should also update the whole lensfun library; in the last message of 
that thread I more or less explained what I did. I am trying to refine 
the procedure now for my other PC.


I am available to help if you find any problem...

Romano

--
Romano Giannetti
http://www.rgtti.com/


darktable user mailing list
to unsubscribe send a mail to darktable-user+unsubscr...@lists.darktable.org



Re: [darktable-user] Is there a repo for the newest lensfun-database?

2017-05-26 Thread junkyardsparkle
Lens database updates happen here first:

https://github.com/lensfun/lensfun/tree/master/data/db



On May 26, 2017 3:20:39 PM PDT, "Аl Воgnеr"  wrote:
>I found out, that the newest list at
>http://wilson.bronger.org/lensfun_coverage.html contains my lens,
>release 0.3.2 does not and my system is at version
>0.2.8-3pmjdebruijn2~xenial, I use xubuntu 16.04
>
>So is there a repo, which contains the newest lensfun-files?
>Experimental would be ok for the lensfun files, but I do not want to
>use an experimental darktable version.
>
>Al
>
>darktable user mailing list
>to unsubscribe send a mail to
>darktable-user+unsubscr...@lists.darktable.org

darktable user mailing list
to unsubscribe send a mail to darktable-user+unsubscr...@lists.darktable.org



[darktable-user] Is there a repo for the newest lensfun-database?

2017-05-26 Thread Аl Воgnеr
I found out, that the newest list at
http://wilson.bronger.org/lensfun_coverage.html contains my lens,
release 0.3.2 does not and my system is at version
0.2.8-3pmjdebruijn2~xenial, I use xubuntu 16.04

So is there a repo, which contains the newest lensfun-files?
Experimental would be ok for the lensfun files, but I do not want to
use an experimental darktable version.

Al

darktable user mailing list
to unsubscribe send a mail to darktable-user+unsubscr...@lists.darktable.org