Merge pull request #29770 from bmad4ever:4.x

fix orientation thresholding in anisotropic_image_segmentation.py
This commit is contained in:
Alexander Smorkalov
2026-08-22 09:08:53 +03:00
committed by GitHub

View File

@@ -74,7 +74,7 @@ imgCoherency, imgOrientation = calcGST(imgIn, W)
## [thresholding]
_, imgCoherencyBin = cv.threshold(imgCoherency, C_Thr, 255, cv.THRESH_BINARY)
_, imgOrientationBin = cv.threshold(imgOrientation, LowThr, HighThr, cv.THRESH_BINARY)
imgOrientationBin = cv.inRange(imgOrientation, LowThr, HighThr)
## [thresholding]
## [combining]