Remove points
Filters close points by minimum distance between each other.
🖼️ Image options and parameters of removeClosePoints function
removeClosePoints function is used for filtering points that are close to each other.
This function sorts an array of points by intensity and then calculates euclidean distance between the points. If the distance between points is smaller than the removeClosePoints option the compared point gets removed.
Extrema without removeClosePoints | Extrema with removeClosePoints |
|---|---|
![]() | ![]() |
Kinds of images compatible with algorithm
| Image property | What it means | Possible values |
|---|---|---|
bitDepth | number of bits per channel | [8,16] |
components | number of components | [1] |
alpha | is alpha channel allowed | false |
Parameters and default values
-
points -
image -
options
Options
| Property | Required | Default value |
|---|---|---|
distance | yes | 0 |
kind | yes | 'maximum' |
channel | no | 0 |

