timothybrooks / hdr-plus

HDR+ Implementation
MIT License
587 stars 201 forks source link

[make] no match function,template argument deduction/substitution failed #79

Open xzg-wang-er opened 2 years ago

xzg-wang-er commented 2 years ago

image

AmberCheng commented 1 year ago

hi, I have met the same problem. I wonder how you fix it?

teboli commented 1 year ago

Hi,

I ran into the same problem. It is because in the meantime Halide itself changed the signature of its boundary functions. Now you should be using the Range object defined in Halide.h, that defines a slice between min and max (like [min:max] in Python) as:

Func imgs_mirror = BoundaryConditions::mirror_interior(imgs, {Range(0, width), Range(0, height)}); instead of the former Func imgs_mirror = BoundaryConditions::mirror_interior(imgs, 0, width, 0, height);

Do it anywhere there is a call of boundary routines and it should not raise errors anymore. Hope it helps!