Ask Your Question
0

android change brightness and contrast of image

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

HasanGhaforian gravatar image

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

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
2

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

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

edit flag offensive delete link more

Comments

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 -0600 )edit

Question Tools

Stats

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

Seen: 4,666 times

Last updated: Sep 22 '14