Ask Your Question

yt12's profile - activity

2016-02-25 00:55:31 -0600 received badge  Popular Question (source)
2013-04-02 14:50:00 -0600 received badge  Student (source)
2013-04-02 08:52:56 -0600 asked a question Get pixel informations wit Mat.get(int,int) on Android

Hi, i am trying to get the pixel infromations (RGB) of a specific pixel on Android with OpenCV 2.4.4

Sometimes Mat.get(int,int) returns "null". Is there an bug or another way?

double[] colors = img.get(123, 123);
Log.v(tag, "-->"+ colors[0] +";"+ colors[1] +";"+ colors[2] +"");

thx