ColorSegmentation
Description
Color segmentation of given image with simple Euclidian distance estimation.
Params
tSrc | Tensor | Current frame. |
clusters | number | Number of clusters the input image to be clustered. |
Example
// segmentation of input image to 5 clusters
gm.colorSegmentation(inputImage, 5);