2015-11-26 08:15:01 -0600 | commented question | get few pixels value of grayscale image with android API Sorry men, i've found the solution at this question, the problem is that when you use the method get on Mat need to switch the value x and y of cordinates, otherwise could go out of range and return null value. So must to use as follow: Mat m = something double[] buff = m.get(Y,X); //in this form if want read only few values double value=buff[0]; //contain the pixel intensity for grayscale image //or intensity of one channel according to the model RGB or BGR However thanks alot all of you. |
2015-11-26 06:09:26 -0600 | asked a question | get few pixels value of grayscale image with android API Hi men, first of all sorry for my bad englisjh. I need to use a few pixels value of a grayscale image, i've searched everywhere on the web and have understood how read the pixel value but cannot resolve my problem. In short i have a grayscale image 8UC1, under the significant code: Sorry for the cofuded code, the important is that pupil is an image not empty in grayscale and 8UC1, i'm sure, and the vectors data1u, etc... are null (viewed with debug) on diff1=(data1u[0]-data1d[0]); Why is that? Hope in some advices. Thanks you all. |
2015-08-19 03:41:25 -0600 | received badge | ● Enthusiast |
2015-08-17 13:25:57 -0600 | commented question | problem with face detection on android Thank you man, i read and studied more carefully the documentation and now work |
2015-08-16 03:13:26 -0600 | asked a question | problem with face detection on android HI all. I'm a beginner in android so i have a little difficulty to use openCV here. For my studies i'm doing a face detection for opportunely image processing of that ROI. So i've the code in c++ that work, seeing the official documentation and my c++ code i tried to porting on android, my application work without crash but i can't to draw any rectangle for the faces. I was hoping you could give me any advice for detect and solve my mistake Here the code that do face detection: |