RGB to grayscale

30 views
Skip to first unread message

tach...@gmail.com

unread,
Apr 18, 2014, 10:08:33 AM4/18/14
to nt2...@googlegroups.com
Hi all,

I have downloaded Boost Simd 3.0.0 on my Windows 7 computer. It's been 3 days I am discovering how this library works. For the time being I am doing pretty fine. However I am stuck with a simple "RGB to grayscale" conversion. I tried to implement the code of the method presented in this pdf : http://meetingcpp.com/tl_files/mcpp/slides/12/simd.pdf but without any success. Diapositive 18/40, there is a FOR loop with "auto p = load <decltype>(rgb)>(rgb, i)" in it. And compilation fails here. I have the following error message : "error C2440 : 'return' : impossible to convert from 'const float' in 'const float*'. I am stuck on this error for more than one day now, and it is annoying. If you guys have any idea why it fails to compile, I'll be glade to listen to it. 

Best regards.

Joel Falcou

unread,
Apr 19, 2014, 7:32:25 AM4/19/14
to nt2...@googlegroups.com
Hi

the slide code is maybe truncated/obsolete as of now.
YOu can find a RGB2grey example here :

https://github.com/MetaScale/nt2/tree/master/demo/rgb2grey/simd

Regards

Reply all
Reply to author
Forward
0 new messages