Created
August 13, 2017 18:45
-
-
Save Pethaf/8951cb7544bd4ca4fe5e159677d433e6 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
long start = System.nanoTime(); | |
Bitmap image = originalImage; | |
Bitmap res = image.copy(image.getConfig(), true); | |
RenderScript rs = RenderScript.create(this); | |
Allocation allocationA = Allocation.createFromBitmap(rs, res); | |
Allocation allocationB = Allocation.createTyped(rs, allocationA.getType()); | |
ScriptC_FuzzHistEq fuzzhistEq= new ScriptC_FuzzHistEq(rs); | |
fuzzhistEq.forEach_root(allocationA, allocationB); | |
int tmp = 1+1; | |
Log.i("Info","Hello World,again"); | |
allocationB.copyTo(res); | |
long stop = System.nanoTime(); | |
Log.i("Info","Hello World"); | |
int tmp2 = 1+2; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment