Ask Your Question

android change brightness and contrast of image

asked 2014-09-18 23:27:05 -0500

HasanGhaforian gravatar image

updated 2014-09-18 23:28:26 -0500

Hello.I'm new by opencv and I do not know programming with c or c++,so excuse me if my question is weak and it's answer is obvious.Of course,before I ask this question,did a lot searching in Google,opencv Q\A and stackoverflow,but unfortunately I do not found answer.

I have to change brightness and contrast of a bitmap.I know how to get a Mat form bitmap in android.But I could not find any method in Imageproc class to change contrast and brightness of bitmap.Is there any way in java (without using native codes) to do those processes?

edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted

answered 2014-09-22 04:08:31 -0500

Hi! Please refer this wiki link. & use this android version to relate it for android. samples

edit flag offensive delete link more


OK! Thank you.I have to use this line: image.convertTo(new_image, -1, alpha, beta);

HasanGhaforian gravatar imageHasanGhaforian ( 2014-09-22 13:47:36 -0500 )edit
Login/Signup to Answer

Question Tools


Asked: 2014-09-18 23:27:05 -0500

Seen: 3,538 times

Last updated: Sep 22 '14