Back to project page filtrations.
The source code is released under:
GNU General Public License
If you think the Android project filtrations listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.
package sk.feromakovi.android.opencv.filtrations.processing; /* w w w . j a v a 2 s .c o m*/ import org.opencv.core.Mat; import org.opencv.imgproc.Imgproc; public final class Filter2dProcessor extends ImageProcessor { @Override protected Mat process(Mat mat, Mat kernelMat) { return filter2D(mat, kernelMat); } private Mat filter2D(Mat image, Mat kernelMat){ Imgproc.filter2D(image, image, image.depth(), kernelMat); return image; } @Override public CharSequence getName() { return "Filter2D"; } }