Ask Your Question

Revision history [back]

Clustring white pixels in binary image

I have a binary image (black and white pixels), and I'd like to cluster the white pixels into groups (objects), depending on the distance to each other, and retrieve the centroid of each cluster.

this is an example image in which I have to work on: Image

I'd like to check if a clustering approach would provide the results I am looking for, which means that I'm trying to avoid implementing an algorithm myself before knowing it will be worth it. Does openCV have a method to do what I need?

Regards

Clustring white pixels in binary image

I have a binary image (black and white pixels), and I'd like to cluster the white pixels into groups (objects), depending on the distance to each other, and retrieve the centroid of each cluster.

this is an example image in which I have to work on: ImageImage

I'd like to check if a clustering approach would provide the results I am looking for, which means that I'm trying to avoid implementing an algorithm myself before knowing it will be worth it. Does openCV have a method to do what I need?

Regards

Clustring white pixels in binary image

I have a binary image (black and white pixels), and I'd like to cluster the white pixels into groups (objects), depending on the distance to each other, and retrieve the centroid of each cluster.

this is an example image in which I have to work on: ImageImage (frame on purple)

I'd like to check if a clustering approach would provide the results I am looking for, which means that I'm trying to avoid implementing an algorithm myself before knowing it will be worth it. Does openCV have a method to do what I need?

Regards