[IPOL discuss] use of Eigen for PCA/SVD computation in demo blm_color_dimensional_filtering

Pierre Moulon pmoulon at gmail.com
Fri May 20 17:40:34 CEST 2011


Thanks for sharing your experiments.

It's possible that Eigen detect error on "Optimization".

I want say that they are not true error ...

One other possibility is to report the valgrind error the the Eigen
developement team in order to isolate potential problem that they could fix


2011/5/20 José Luis Lisani <joseluis.lisani at uib.es>

> Hi,
> this is a follow up of the discussion "SVD for IPOL: which library, and
> how?"
> I just wanted to share my experience with the various options that were
> proposed.
> I  wanted to find a substitute for a PCA computation function from
> Numerical Recipes
> - CImg:
> I tried what David proposed and it worked fine
> (except for a bug in the compilation line, it should be:
> g++ -o toto toto.cpp -Dcimg_display_type=0)
> The only drawback is that I don't need a whole image processing library,
> just a linear algebra library
> - GSL:
> It also worked fine, but then I tried to follow Enric's suggestion
> (ie. 'The desired code from GSL can be easily copy-pasted into your
> program').
> I spent two days trying to isolate the SVD functions that I needed but
> I was unable to do it (too many dependencies between the source codes
> and on global variables that were set during the GSL installation process).
> So I gave up this option.
> - Eigen:
> it works fine and it is very easy to use.
> I added the 'Eigen' folder to my source code (it adds  'only' 2.16MB)
> and now it can be compiled without problem with any C++ compiler
> (it even works fine with Visual C++ Express).
> The code is now slightly slower than my original code (the one using
> Numerical Recipes) but it is OK.
> The main drawback is that valgrind detects several errors in Eigen,
> which raises doubts about the quality of the code.
> If you want, you can take a look at the code, available from the web page:
> http://www.ipol.im/pub/algo/blm_color_dimensional_filtering/
> Best,
> José Luis
> _______________________________________________
> discuss mailing list
> discuss at list.ipol.im
> http://tools.ipol.im/mailman/listinfo/discuss
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://tools.ipol.im/mailman/archive/discuss/attachments/20110520/6cd35a47/attachment.htm>

More information about the discuss mailing list