int width = mInPixelsAllocation.getType().getX();
int height = mInPixelsAllocation.getType().getY();
Type.Builder tb = new Type.Builder(mRS, Element.U8(mRS));
tb.setX(width);
tb.setY(height);
mScratchPixelsAllocation1 = Allocation.createTyped(mRS, tb.create());
mScratchPixelsAllocation2 = Allocation.createTyped(mRS, tb.create());
mScript = new ScriptC_greyscale(mRS);
mScript.forEach_toU8(mInPixelsAllocation, mScratchPixelsAllocation1);
mIntrinsic = ScriptIntrinsicBlur.create(mRS, Element.U8(mRS));
mIntrinsic.setRadius(MAX_RADIUS);
mIntrinsic.setInput(mScratchPixelsAllocation1);