-type Result = {
- fg: Image<Gray, byte>
- mean_bg: float32
- mean_fg: float32
- d_fg: Image<Gray, float32> } // Euclidean distances of the foreground to mean_fg.
-
-let kmeans (img: Image<Gray, float32>) : Result =
+type Result =
+ {
+ fg : Image<Gray, byte>
+ mean_bg : float32
+ mean_fg : float32
+ d_fg : Image<Gray, float32> // Euclidean distances of the foreground to mean_fg.
+ }
+
+let kmeans (img : Image<Gray, float32>) : Result =