How can I speed up filter2D
Hi,
My algorithm calls filter2D around 256 times. Because of this the processing time of the overall algorithm is high. I tried all other ways to minimize the number of convolutions(by scaling image etc). Is there any alternative function or something for reducing the time of filter2D(without using gpu etc).
just adding a comment here, to get notified of the outcome ;)
(only using 8 gabor filters here, but the time used for it still .. )
hmm, sidenote, don't you want to upgrade your 2.1 opencv ?
@rgadde Did you apply filters to one source? In case of multiple source images you can try to parallelize it, with TBB for example.
@berak I am using 16 gabor filters. I wish I could use latest version of opencv. Problem is I am not able to cross compile opencv 2.4 on ARM6. I tried my best. I already have opencv2.1 libraries so, I downgraded my code too :(.
@Daniil Osokin Thanks for the comment. I think in my case I can't use TBB. I am trying to use my code on ARM 11 processor which has single core. Please, correct me if I am wrong
Please me the result,when you use TBB and opencv function. I think there are some problem when used them mixed. Cause opencv core has TBB.
But the best way is to separate kernel matrix to cols & rows.