Ask Your Question

AndyStevens's profile - activity

2013-08-14 08:58:12 -0600 commented answer Switch-Case Structure

i'm sorry, i just confused . sorry

2013-08-14 08:57:22 -0600 commented question Switch-Case Structure

i'm sorry.

2013-08-14 08:42:25 -0600 asked a question Switch-Case Structure

is there any other way to call int a, int b and int c simultaneously? not by switch it but together at the same time.

int a = 10; int b = 10; int c = 20;

switch ( a ) { case b: // Code break; case c: // Code break; default: // Code break; }

2013-08-14 08:33:56 -0600 received badge  Scholar (source)
2013-08-14 08:23:23 -0600 asked a question Algorithm Explanation

What does "/2" means? Divide by two?

canvas.drawBitmap(bmp, (canvas.getWidth() - bmp.getWidth()) / 2, (canvas.getHeight() - bmp.getHeight()) / 2, null);

2013-08-14 06:53:09 -0600 received badge  Editor (source)
2013-08-14 03:23:19 -0600 commented answer Color Blob Detection With Rectangle

thank you, i'm trying :)

2013-08-14 03:03:39 -0600 commented answer Color Blob Detection With Rectangle

Do you mean, i should make a new "get center point" with different point?

2013-08-12 11:05:24 -0600 asked a question Color Blob Detection With Rectangle

Can anyone help me to understand this?

public static int getBiggestContourIndex(List<MatOfPoint> contours){
double maxArea = 0;
Iterator<MatOfPoint> each = contours.iterator();
int j = 0;
int k = -1;
while (each.hasNext())
{
MatOfPoint wrapper = each.next();
double area = Imgproc.contourArea(wrapper);
if (area > maxArea){
maxArea = area;
k = j;
}
j++;
}
return k;
}