OpenCV Q&A Forum - RSS feedhttp://answers.opencv.org/questions/OpenCV answersenCopyright <a href="http://www.opencv.org">OpenCV foundation</a>, 2012-2018.Fri, 12 Jun 2020 03:35:35 -0500Equivalent to matlab bfilter2?http://answers.opencv.org/question/231176/equivalent-to-matlab-bfilter2/Hi. I don't know too much about image processing, I was told to use matlab bfilter2() (see the link below), but I prefer using OpenCV, if possible. But I don't know if there's an equivalent of such filter, so not to rewrite the whole shebang (which includes learning matlab). A quick googling gives me no clear results.
https://www.mathworks.com/matlabcentral/mlc-downloads/downloads/submissions/62625/versions/1/previews/bfilter2.m/index.html
Any hint? Thanks in advance!NoSpazeFri, 12 Jun 2020 03:35:35 -0500http://answers.opencv.org/question/231176/Construct Gabor Filters and Filter Imagehttp://answers.opencv.org/question/98585/construct-gabor-filters-and-filter-image/ Hi, I am trying to convert these lines of matlab code to java using OpenCV 3.1:
- fb = construct_Gabor_filters_PhD(8,5,[a b]);
- downScale = 40;
- feature = filter_image_with_Gabor_bank_PhD(img,fb,downScale);
These PhD functions are from a face recognition toolbox with documentation found [here](http://luks.fe.uni-lj.si/sl/osebje/vitomir/pub/PhD_manual.pdf).
Here are the function prototypes:
- construct_Gabor_filters_PhD(norie, nscale, size, fmax, ni,
gamma, separation)
- feature vector = filter image with Gabor bank PhD(image,
filter bank,down sampling factor)
construct_Gabor_filters_PhD(8,5,[a b]) is returning a filter bank struct four fields: 5x8 cell spatial, 5x8 cell freq, scales which is a double of value 5, orient which is a double of value 8
filter_image_with_Gabor_bank_PhD(img,fb,downScale) is returning a 38400x1 matrix
Do these functions have corresponding OpenCV functions? Can I mimic what they are doing using OpenCV?
phillityTue, 19 Jul 2016 10:46:15 -0500http://answers.opencv.org/question/98585/