Ask Your Question
0

opencv.js gabor wavelet

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

mus gravatar image

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

thanks

edit retag flag offensive close merge delete

Comments

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 -0600 )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 -0600 )edit

1 answer

Sort by ยป oldest newest most voted
0

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

berak gravatar image

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

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

Comments

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 kernel.at<float>(ymax - y, xmax - x) = (float)v;

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

thanks again

mus gravatar imagemus ( 2018-07-15 21:10:06 -0600 )edit

Question Tools

1 follower

Stats

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

Seen: 312 times

Last updated: Jul 11 '18