GuidedFilter icon indicating copy to clipboard operation
GuidedFilter copied to clipboard

compilation problem

Open lulu1315 opened this issue 7 years ago • 3 comments

hello I'm trying to compile your project on Ubuntu 18.04 and I have this compilation error:

Scanning dependencies of target guided_filter_image [ 93%] Building CXX object examples/CMakeFiles/guided_filter_image.dir/guidedFilter_image.cpp.o /shared/foss-18/GuidedFilter/examples/guidedFilter_image.cpp: In function ‘int main(int, char**)’: /shared/foss-18/GuidedFilter/examples/guidedFilter_image.cpp:114:70: error: invalid conversion from ‘const void*’ to ‘void*’ [-fpermissive] rgb.write (cl_algo::GF::SeparateRGB<C1>::Memory::D_IN, image.datastart); ~~~~~~^~~~~~~~~ In file included from /shared/foss-18/GuidedFilter/examples/guidedFilter_image.cpp:46:0: /shared/foss-18/GuidedFilter/include/GuidedFilter/algorithms.hpp:227:14: note: initializing argument 2 of ‘void cl_algo::GF::SeparateRGB<(cl_algo::GF::SeparateRGBConfig)1>::write(cl_algo::GF::SeparateRGB<(cl_algo::GF::SeparateRGBConfig)1>::Memory, void*, bool, const std::vectorcl::Event, cl::Event)’ void write (SeparateRGB::Memory mem = SeparateRGB::Memory::D_IN, void *ptr = nullptr, bool block = CL_FALSE, ^~~~~

I'm using opencv 3.2 any hints welcomed luc

lulu1315 avatar Feb 28 '19 11:02 lulu1315

found it : // Copy data to device rgb.write (cl_algo::GF::SeparateRGB<C1>::Memory::D_IN, const_cast<uchar *>(image.datastart)); works sorry for the noise

lulu1315 avatar Feb 28 '19 11:02 lulu1315

Hi @lulu1315 , did you manage to get this compiled and running?

I am getting the following error:

Error when accessing kernel file: ios_base::failbit set: iostream stream error (d:\testing\guidedfilter-master\external\clutils\clutils-master\src\clutils.cpp:224)

Did you have this problem?

Thanks!

antithing avatar Sep 16 '19 21:09 antithing

hello antithing sorry i didn't have this problem. as of guided filtering i'm using gmic (https://gmic.eu/) which has an implementation of it. see this discussion https://discuss.pixls.us/t/guided-filter-in-gmic/11579

lulu1315 avatar Sep 17 '19 15:09 lulu1315