mirror of
https://github.com/opencv/opencv.git
synced 2026-09-11 04:43:22 -05:00
Merge pull request #29770 from bmad4ever:4.x
fix orientation thresholding in anisotropic_image_segmentation.py
This commit is contained in:
@@ -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]
|
||||
|
||||
Reference in New Issue
Block a user