Ask Your Question

opencv.js gabor wavelet

asked 2018-07-08 23:42:14 -0500

mus gravatar image

hiii, anyone has idea to implement gabor wavelet with opencv.js


edit retag flag offensive close merge delete


as a rule of thumb: if it is not in the tutorials -- chances are low, that it was wrapped into opencv.js at all.

you'd have to use getGaborKernel() and filter2D() to build a gabor filter.

berak gravatar imageberak ( 2018-07-09 05:34:56 -0500 )edit

anyone know how easy to develop getGaborKernel() and filter2D() ourself.. any roadmap for opencv.js development?

mus gravatar imagemus ( 2018-07-10 03:16:49 -0500 )edit

1 answer

Sort by ยป oldest newest most voted

answered 2018-07-11 01:38:46 -0500

berak gravatar image

updated 2018-07-11 01:41:36 -0500

you can see, what's implemented here

so it HAS filter2D(), and you only have to write a replacement for this

edit flag offensive delete link more


thanks, try to convert opencv/modules/imgproc/src/gabor.cpp to javascript but found internal function of opencv line 75 Mat kernel(ymax - ymin + 1, xmax - xmin + 1, ktype); line 89<float>(ymax - y, xmax - x) = (float)v;

suggestion.. it is posibble just add getGaborKernel to opencv/modules/js/src/ and compile it again :) line 106 imgproc = {'': ['getGaborKernel','Canny', 'GaussianBlur', 'Laplacian' ...

thanks again

mus gravatar imagemus ( 2018-07-15 21:10:06 -0500 )edit
Login/Signup to Answer

Question Tools

1 follower


Asked: 2018-07-08 23:24:06 -0500

Seen: 22 times

Last updated: Jul 11 '18