Files
opencv-MIRROR/samples/python
bmad4ever 218573c340 fix orientation thresholding in anisotropic_image_segmentation.py
Same as #29757 in 5.x

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-21 15:17:12 +01:00
..
2019-10-16 18:49:33 +03:00
2019-08-19 22:52:00 +05:30
2019-10-16 18:49:33 +03:00
2022-01-24 11:13:56 +03:00
2019-12-27 12:46:53 +00:00
2022-01-24 11:13:56 +03:00
2019-11-01 18:59:35 +03:00
2019-10-16 18:49:33 +03:00
2022-01-24 11:13:56 +03:00
2019-10-16 18:49:33 +03:00
2021-07-01 18:26:17 +03:00
2020-02-20 16:19:24 +03:00
2021-07-01 18:26:17 +03:00
2025-04-25 15:39:50 +08:00
2019-10-16 18:49:33 +03:00
2019-10-16 18:49:33 +03:00
2019-10-16 18:49:33 +03:00
2021-06-30 12:50:21 +03:00
2021-06-30 12:50:21 +03:00
2019-10-16 18:49:33 +03:00
2019-10-16 18:49:33 +03:00
2018-02-08 05:52:08 -05:00
2019-09-20 18:03:26 +03:00
2019-10-16 18:49:33 +03:00
2024-09-14 23:36:57 +03:00
2019-10-16 18:49:33 +03:00
2021-06-30 12:50:21 +03:00
2019-12-30 13:00:29 +00:00