Skip to content

Instantly share code, notes, and snippets.

@Pethaf
Created August 13, 2017 18:45
Show Gist options
  • Save Pethaf/8951cb7544bd4ca4fe5e159677d433e6 to your computer and use it in GitHub Desktop.
Save Pethaf/8951cb7544bd4ca4fe5e159677d433e6 to your computer and use it in GitHub Desktop.
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