opencv 4.10
This commit is contained in:
@@ -17,7 +17,7 @@ public class DistanceTransformOperation:BaseOperation
|
||||
|
||||
Cv2.MinMaxLoc(distance, out double minVal, out var maxVal);
|
||||
// clamp the distance transform to 0-255
|
||||
Cv2.Normalize(distance, res, 0, maxVal, NormTypes.MinMax, MatType.CV_8UC1);
|
||||
Cv2.Normalize(distance, res, 0, maxVal, NormTypes.MinMax, (int)MatType.CV_8UC1);
|
||||
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user