K
K
keslo2016-02-17 15:20:32
JavaScript
keslo, 2016-02-17 15:20:32

Extracting spots from received image data?

Good afternoon.
Received image information from the physical media.
- 128 x 128 elements (pixels)
- There are a few bright spots in the image
- No image signal is taken as { value: 0 }. Maximum value 255.
Received an array of objects of the form:

[
{ x: 1, y: 1, value: 0 },
{ x: 1, y: 2, value: 0 },
// всего 128*128 элементов
// ...
{ x: 1, y: 128, value: 0 },
{ x: 2, y: 1, value: 0 },
// ...
{ x: 128, y: 128, value: 0 }
]

There are several questions:
  • highlight spots
  • calculate the center of gravity of each spot

Implementation in JS (Node.JS).
Can anyone give some good advice?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
T
tsarevfs, 2016-02-17
@keslo

Google "clustering". scikit-learn.org/stable/modules/clustering.html Examples of algorithms in python with a description of their features. There are probably js implementations, many of them are quite easy to implement on your own.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question