Create MR8 filterbank with open cv
Hi,
I've been looking to implement the MR8 filterbank from http://www.robots.ox.ac.uk/~vgg/resea...
with open cv but am still relatively new to it and haven't been able to find many details on how you create the edge or bar filters mentioned.
I've gone through the computer vision tutorials on the open cv site but their 'filter 2d' method only allows for odd inputs not the odd and even dimensions required for the bar and edge MR8 filters especially. Is there a different method which is able to handle these or do i need to look at creating these filters another way?
Any help would be really appreciated!
see filter2D docs it never mentions, that even kernels are forbidden.
also i do not see, why your MR8 filterbank would be restricted to even or odd kernels
(well, GaussianBlur() and Laplacian() are limited to odd sizes)
Shouldn't be too difficult to implement, maybe you can use existing code like this python version: https://gist.github.com/amueller/3129692 or even find a C++ version.
thanks for the fast replies, I've more fully defined my question as:
Thanks again for the help!
Also @Guanta, thank you for the link, sadly i'm a C programmer at heart so i dont have python experience and haven't found any repo's for C++ code yet