Questions tagged [centroid]

Centroid refers to the center of a geometric shape. It may also refer to the center of a clustered point-cloud.

Centroid is the center of a geometric shape. Also known as its center of mass.
See Wikipedia for more information.

310 questions
-1
votes
2 answers

c# Drawing a Polygon with coordinates, calculate are and centroid WPF

I'm drawing an irregular polygon with coordinates, drawing it works, it's when I'm trying to calculate the area and centroid that errors are occurring. namespace WpfApplication3 public partial class MainWindow : Window { public MainWindow() …
-1
votes
1 answer

Extract 'x' and 'y' co-ordinates of centroid in matlab

I am doing a project which requires to get the x,y co ordinates of a thresholded image through camera feed. After thresholding and background subtraction, i have managed to get the output as black and white with centroid and its coordinates shown.…
-1
votes
1 answer

Displaying kcluster analysis centroids in a figure

I've created a kmeans cluster that I mostly want to be able to display clearly. I'm trying to add the cenrtoid location for each of the cluster indeces. Right now the result is something like this: It is a 24576x3 size matrix I ran kmeans on and…
Zvi Baratz
  • 21
  • 8
-1
votes
1 answer

Trying to do find the centroid of a section of an image in Matlab

I am trying to find a way to draw a box around a section of an image in Matlab and find the centroid of that image. I would ideally want the "new" section to show up next to my original image, then I can to the centroid of that "new" image. Here is…
user3037689
  • 9
  • 1
  • 4
-1
votes
1 answer

Misplaced centroid in clusters

So I have a few clustering algorithms implemented, and I'm supposed to create an algorithm to normalize the data and compare clustering with and without normalization. What I have implemented is pretty simple, just the Min-Max normalization (I'm…
Majubs
  • 41
  • 6
-1
votes
1 answer

Orbiting four objects around centroid in an elliptic shape, Python

Okay... I'm not so good at maths (didn't even finish our version of high school) and is really tired right now, but I need to orbit four objects elliptically around the centroid and have been stuck for a while, but it's not like I haven't tried or…
Trasp
  • 1,132
  • 7
  • 11
-2
votes
1 answer

How to store result of regionprops as a a matrix using for loop

for i=1:length(blocks) for j=1:length(blocks) temp = blocks{i,j}; s = regionprops(temp, 'Centroid'); centroids= cat(1,s.Centroid); end end When I display "centroids" outside these for loops it only shows the last…
Hossam Houssien
  • 359
  • 4
  • 14
-2
votes
1 answer

How to find the centroid of a object?

I'm working on a project on C++, and I'm having problems trying to find the centroid (coordinates x and y) of a object... I have an image of 250x250 pixels, this image is white with an object of color black and I need to find the centroid of this…
-2
votes
1 answer

How can i get center of a cluster? Data points

Hello assume that i have the following variables inside single cluster 1.1 0 1.9 0 0 1.3 0.6 0.6 0.6 Now how can i find centroid of this cluster?
Furkan Gözükara
  • 22,964
  • 77
  • 205
  • 342
-4
votes
1 answer

openCV C++ reduce objects/blobs to centroids

Task: I try to write a method, that reduces the objects in a binary image to their centroids (meaning center of mass).
Kemendil
  • 121
  • 1
  • 11
1 2 3
20
21