Property SpatialWeight
- Namespace
- OpenCvSharp.Hfs
- Assembly
- OpenCvSharp.dll
SpatialWeight
This parameter is used in the first stage (the SLIC stage). It describes how important the role of position is when calculating the distance between each pixel and its center. The exact formula to calculate the distance is colorDistance + spatialWeight * spatialDistance. The segmentation result tends to have more local consistency if this value is larger.
public float SpatialWeight { get; set; }