Closed Kunz-David closed 4 years ago
# this is only one index, it need indices
- inds = CartesianIndex(50, 50)
+ inds = (40:60, 40:60)
# only NoPad strategy is supported for inds
- imfilter!(CPU1(Algorithm.FIRTiled()), imgfilt, img, kernel, "symmetric", inds)
+ imfilter!(CPU1(Algorithm.FIRTiled()), imgfilt, img, kernel, NoPad(), inds)
Edit: labeled it as a bug because this confusing error message is introduced by an oversight on dispatching.
Ahh, now I see. Thanks for the answer @johnnychen94. I was hoping there would be a way to make this work on a discontinuous indices. How hard do you think it would be adapt the code for that usage? Do you see any other way to make it work in this use-case other than just running the loop for every index that is separate?
(Sorry for the long delay.)
Hi, I have a question about how to use
imfilter!
so that is computes only on provided inds. I am having trouble making a simple example work. Here is my code:From the documentation I thought this would work, but it doesn't. I get an error like this:
Is there perhaps a dispatch problem here?
This is the fuction at
imfilter.jl:585
:The kernel I use has:
Isn't there supposed to be a function that takes this kind of kernel and also has
args..
?(Disclaimer; I am new to Julia so this might just be me not using the function correctly. Sorry for that.)