Ask Your Question

RossWell's profile - activity

2017-07-08 07:42:07 -0600 received badge  Famous Question (source)
2016-04-30 12:12:43 -0600 received badge  Notable Question (source)
2015-12-12 08:40:46 -0600 received badge  Popular Question (source)
2014-03-27 22:06:06 -0600 asked a question Show histogram of gray image in android studio

this my code :

private Mat calHist(Mat src){
        Mat results = new Mat();

        List<Mat> arrMat = Arrays.asList(src);

        MatOfInt channels = new MatOfInt(0);

        Mat hist= new Mat();
        MatOfInt histSize = new MatOfInt(25);
        MatOfFloat ranges = new MatOfFloat(0f, 1f);
        Imgproc.calcHist(arrMat, channels, new Mat(), hist, histSize, ranges);

        return hist;
    }

but i can't show it. When i convert hist to bitmap to show, i have bug.

Utils.matToBitmap(grayHistCalc(Mat_IMG_Gray), results);

plz help me to show it.

2014-03-27 03:07:22 -0600 asked a question How to calculation histogram of Mat in android studio.

How to calculation histogram of Mat in android studio.

I have image

image description

i want calculation histogram of block of image . there are 49 block by 49 histogram. But idon't know did it.

help me plz.

2014-03-25 22:22:45 -0600 asked a question LBP FaceRecognizer in OpenCV

I'm working project about Fafe recognizer by LBP using opencv on android studio.But i don't know starting from where.

plz help me....

2014-03-25 12:10:57 -0600 received badge  Student (source)
2014-03-25 10:36:40 -0600 asked a question Multiply Mat and Scalar not working...help me

I coding by android studio using opencv.

I tried mutiply scalar with Mat but not working.

Mat A = new Mat();
Mat B = new Mat();
Mat C = new Mat();
Mat D = new Mat();
Scalar alpha = new Scalar(5);

I take this:

image description

and i multiply C with "alpha":

Core.multiply(C,alpha,D);

i wana D become :

image description

but D become :

image description

please help me..

2014-03-25 06:59:51 -0600 commented question how to multiply Mat with number (opencv in android )

im try... thanks [break]

2014-03-25 06:58:50 -0600 commented question how to multiply Mat with number (opencv in android )

here Mat with Mat. but i wana Mat with number.

plz

2014-03-25 06:31:02 -0600 commented question how to multiply Mat with number (opencv in android )

compliler error : in Mat cannot be applied to "int"

2014-03-25 06:09:47 -0600 commented question how to multiply Mat with number (opencv in android )

i code with android studio not c++.

no use loop. in the docs doesn't talk about this

2014-03-25 05:55:21 -0600 asked a question how to multiply Mat with number (opencv in android )

I'm working in Mat of opencv in android studio.

i wanna:

Mat A;

Mat B;

int alpha = 5;

B = A*5;

not working.

plz help me take it.