Files
opencv-MIRROR/samples/python
bmad 99c9b61cfc fix orientation thresholding in anisotropic_image_segmentation.py
The Python tutorial sample thresholds the orientation with a single cv.threshold call, passing HighThr as the maxval argument rather than as an upper bound:

```_, imgOrientationBin = cv.threshold(imgOrientation, LowThr, HighThr, cv.THRESH_BINARY)```

That computes imgOrientation > LowThr ? HighThr : 0, so HighThr never restricts the angle. The C++ counterpart uses inRange(imgOrientation, Scalar(LowThr), Scalar(HighThr), imgOrientationBin), and the tutorial text states "LowThr and HighThr define orientation range", so the C++ behaviour is the intended one.
2026-08-20 16:14:30 +01:00
..
2015-12-18 11:00:32 +03:00
2023-07-14 15:06:53 +03:00
2026-02-14 15:37:33 +03:00
2020-02-20 16:19:24 +03:00
2023-07-14 15:06:53 +03:00
2025-07-22 09:47:19 +03:00
2026-07-09 12:17:24 +03:00
2019-10-16 18:49:33 +03:00
2026-02-14 15:37:33 +03:00
2019-12-30 13:00:29 +00:00