Ask Your Question
0

Load and display image in greyscale #Android #Java

asked 2014-11-18 04:39:49 -0600

Zain ul abdeen gravatar image

Hi I'm very new to OpenCv and using OpenCv 2.4.9 in android and after spending lots of time I did'nt find anything in documentation. I want to load an image from sdcard and display it as grey scale image in android. Any help is appreciated

edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted
0

answered 2014-11-18 08:20:25 -0600

berak gravatar image

http://docs.opencv.org/java/org/opencv/highgui/Highgui.html#imread(java.lang.String,%20int)

Mat gray = Highgui.imread(path, Highgui.CV_LOAD_IMAGE_GRAYSCALE);

edit flag offensive delete link more

Question Tools

Stats

Asked: 2014-11-18 04:39:49 -0600

Seen: 338 times

Last updated: Nov 18 '14