Ask Your Question

Mattis's profile - activity

2016-08-31 06:33:22 -0600 received badge  Enthusiast
2016-08-19 01:41:34 -0600 received badge  Scholar (source)
2016-08-18 04:35:38 -0600 commented question Will this code give me the coordinates for the intensity-weighted centroid of image?

I have included an example image.

2016-08-18 04:34:23 -0600 received badge  Editor (source)
2016-08-18 04:14:13 -0600 commented question Will this code give me the coordinates for the intensity-weighted centroid of image?

I need to find the center of an irregular shape with the highest intensity offset from the geometric center. The intensity level should be considered when calculating the center.

2016-08-18 03:45:29 -0600 asked a question Will this code give me the coordinates for the intensity-weighted centroid of image?

image description

Mat image;
Moments moments(image);
int x = moments.M10 / moments.M00;
int y = moments.M01 / moments.M00;