Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 7c773df

Browse files
author
Codec.Wang
authored
Merge pull request #11 from windowsair/master
fix: Modify some expressions in the thresholding tutorial
2 parents f152ffc + a288445 commit 7c773df

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

‎06. 阈值分割/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ cv2.waitKey(0)
3535

3636
- 参数1:要处理的原图,**一般是灰度图**
3737
- 参数2:设定的阈值
38-
- 参数3:最大阈值,一般为255
38+
- 参数3:对于`THRESH_BINARY``THRESH_BINARY_INV`阈值方法所选用的最大阈值,一般为255
3939
- 参数4:阈值的方式,主要有5种,详情:[ThresholdTypes](https://docs.opencv.org/4.0.0/d7/d1b/group__imgproc__misc.html#gaa9e58d2860d4afa658ef70a9b1115576)
4040

4141
下面结合代码理解下这5种阈值方式:
@@ -102,7 +102,7 @@ plt.show()
102102
- 参数3:小区域阈值的计算方式
103103
- `ADAPTIVE_THRESH_MEAN_C`:小区域内取均值
104104
- `ADAPTIVE_THRESH_GAUSSIAN_C`:小区域内加权求和,权重是个高斯核
105-
- 参数4:阈值方式(跟前面讲的那5种相同)
105+
- 参数4:阈值方法,只能使用`THRESH_BINARY``THRESH_BINARY_INV`,具体见前面所讲的阈值方法
106106
- 参数5:小区域的面积,如11就是11*11的小块
107107
- 参数6:最终阈值等于小区域计算出的阈值再减去此值
108108

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /