Login  Register

Re: Does jocl work in multidimensional mode ?

Posted by notzed on Oct 22, 2011; 10:54pm
URL: https://forum.jogamp.org/Does-jocl-work-in-multidimensional-mode-tp3437749p3444640.html

All the time, and 3d as well.  socles has a pile of code that uses 2D.

Simplest is probably the sobel filter.

Host code: http://code.google.com/p/socles/source/browse/trunk/socles/src/au/notzed/socle/filter/Sobel.java
Kernel: http://code.google.com/p/socles/source/browse/trunk/socles/src/au/notzed/socle/filter/sobel.cl

I don't have any demo code which uses it, but the arguments are pretty obvious.

(note it has a bug and only processes images whose size is a multiple of 16).

Still I find it pretty hard to believe you haven't found any examples with 2d kernels.