Ask Your Question
2

Create MR8 filterbank with open cv

asked 2015-06-04 11:41:06 -0500

albertJ gravatar image

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!

edit retag flag offensive close merge delete

Comments

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)

berak gravatar imageberak ( 2015-06-04 11:59:42 -0500 )edit

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.

Guanta gravatar imageGuanta ( 2015-06-05 06:54:01 -0500 )edit

thanks for the fast replies, I've more fully defined my question as:

  • What is the best method to create a bar/edge filter, i'm currently using the a gabor kernel(getGaborKernel -> filter2D). Is this the best way?
  • If not then should is there any documentation on creating a bar/edge filter kernel described in https://www.robots.ox.ac.uk/~vgg/rese...

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

albertJ gravatar imagealbertJ ( 2015-06-07 17:19:23 -0500 )edit

1 answer

Sort by ยป oldest newest most voted
2

answered 2015-07-08 18:48:34 -0500

Mark_J34 gravatar image

Hey i saw this a while back and thought it looked interesting, so i wrote up some basic code for it. I still need to go through and clean it up and also need to create the maximum response for the different scales but outside of that it works. https://github.com/mark342/MR8-Filter... Hope this is helpful!

edit flag offensive delete link more
Login/Signup to Answer

Question Tools

1 follower

Stats

Asked: 2015-06-04 11:40:23 -0500

Seen: 791 times

Last updated: Jun 04 '15