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 45485ab

Browse files
author
ex2tron
authored
Merge pull request CodecWang#7 from snowflowersnowflake/master
markdown formula can not display righly in github_readme
2 parents 71a5b5d + e81bc17 commit 45485ab

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

‎番外篇07. 亮度与对比度/README.md‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010

1111
亮度调整是将图像像素的强度整体变大/变小,对比度调整指的是图像暗处的像素强度变低,亮出的变高,从而拓宽某个区域内的显示精度。
1212

13-
OpenCV中亮度和对比度应用这个公式来计算:$ g(x)=\alpha f(x)+\beta ,ドル其中:α(>0)、β常称为增益与偏置值,分别控制图片的对比度和亮度。
13+
OpenCV中亮度和对比度应用这个公式来计算:<span class="mrow" id="MathJax-Span-2"><span class="mi" id="MathJax-Span-3" style="font-family: MathJax_Math-italic;">g<span style="display: inline-block; overflow: hidden; height: 1px; width: 0.003em;"></span></span><span class="mo" id="MathJax-Span-4" style="font-family: MathJax_Main;">(</span><span class="mi" id="MathJax-Span-5" style="font-family: MathJax_Math-italic;">x</span><span class="mo" id="MathJax-Span-6" style="font-family: MathJax_Main;">)</span><span class="mo" id="MathJax-Span-7" style="font-family: MathJax_Main; padding-left: 0.281em;">=</span><span class="mi" id="MathJax-Span-8" style="font-family: MathJax_Math-italic; padding-left: 0.281em;">α</span><span class="mi" id="MathJax-Span-9" style="font-family: MathJax_Math-italic;">f<span style="display: inline-block; overflow: hidden; height: 1px; width: 0.058em;"></span></span><span class="mo" id="MathJax-Span-10" style="font-family: MathJax_Main;">(</span><span class="mi" id="MathJax-Span-11" style="font-family: MathJax_Math-italic;">x</span><span class="mo" id="MathJax-Span-12" style="font-family: MathJax_Main;">)</span><span class="mo" id="MathJax-Span-13" style="font-family: MathJax_Main; padding-left: 0.225em;">+</span><span class="mi" id="MathJax-Span-14" style="font-family: MathJax_Math-italic; padding-left: 0.225em;">β<span style="display: inline-block; overflow: hidden; height: 1px; width: 0.003em;"></span></span></span>,其中:α(>0)、β常称为增益与偏置值,分别控制图片的对比度和亮度。
1414

1515
> 经验之谈:此处对α/β控制对比度和亮度有争议,具体请参考:[OpenCV关于对比度和亮度的误解](http://blog.csdn.net/abc20002929/article/details/40474807)
1616
@@ -43,4 +43,4 @@ cv2.waitKey(0)
4343
- [numpy.clip()](https://docs.scipy.org/doc/numpy/reference/generated/numpy.clip.html#numpy.clip)
4444
- [OpenCV关于对比度和亮度的误解](http://blog.csdn.net/abc20002929/article/details/40474807)
4545
- [OpenCV改变图像亮度和对比度以及优化](http://blog.csdn.net/u013139259/article/details/52145377)
46-
- [Mat::convertTo](https://docs.opencv.org/3.1.0/d3/d63/classcv_1_1Mat.html#a3f356665bb0ca452e7d7723ccac9a810)
46+
- [Mat::convertTo](https://docs.opencv.org/3.1.0/d3/d63/classcv_1_1Mat.html#a3f356665bb0ca452e7d7723ccac9a810)

0 commit comments

Comments
(0)

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