How to use ScriptIntrinsicConvolve5x5 in android?
问题 I'm trying to understand how convolution matrix works in android and I want to use ScriptIntrinsicConvolve5x5 class to change contrast of my image. I've multiple variations of this matrix: R G B A W R [c 0 0 0 0] G [0 c 0 0 0] B [0 0 c 0 0] A [0 0 0 1 0] W [t t t 0 1] c = contrast t = (1.0 - c) / 2.0 But it doesn't work in ScriptIntrinsicConvolve5x5, all i see is a black screen. I want to use a RenderScript because of performance I've been able to change contrast with ColorMatrix class, but