Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CV HE #100

Open
junxnone opened this issue Nov 27, 2020 · 0 comments
Open

CV HE #100

junxnone opened this issue Nov 27, 2020 · 0 comments

Comments

@junxnone
Copy link
Owner

junxnone commented Nov 27, 2020

Histogram Equalization 直方图均衡

Reference

Brief

  • 图像直方图均匀分布
  • 增强图像 - 更好的对比度
  • CDF - cumulative distribution function - 累积分布函数
  • HE - Histogram Equalization
  • AHE - Adaptive Hisogram Equalization
  • CLAHE - Contrast Limited Adaptive Hitogram Equalization

image

Contrast Stretching

  • 8 bit image 最小值 Vmin = 0 Vmax = 255
  • image 中 Pixel 最小值 Pmin, 最大值 Pmax
  • cutoff fraction - 小于 Pmin = histogram_peak * cutoff_fraction 的值忽略掉
Process Image Histogram
Original image image
Contrast Stretching
Pmin=79
Pmax=136
image image
Histogram Equalizing image
Histogram Equalizing
+ Contrast Stretching
cutoff_fraction = 0.03
image image
Histogram Equalizing
+ Contrast Stretching
cutoff_fraction = 0.125
image image

Pout = (Pin - Pmin)(Vmax-Vmin)/(Pmax-Pmin) + Vmin

HE - Histogram Equalization

  • 单调非线性
公式 Description
image Image A(x,y) => Image B(x,y)
image
image
image 对应区间内像素点总数不变
image
image A0 像素点个数 L 灰度阶数
Input Image DA => Output Image DB 映射图
image

AHE - Adaptive Hisogram Equalization

  • 自适应直方图均衡化
  • 考虑到局部图像区域 - WxW 窗口
  • LAHE - Local Area HE

image

CLAHE - Contrast Limited Adaptive Hitogram Equalization

  • 限制对比度自适应直方图均衡化
  • 将直方图中超过阈值的部分平均分配到各灰度级

image

@junxnone junxnone changed the title Histogram Equalization - HE/AHE/CLAHE Histogram Equalization Oct 16, 2021
@junxnone junxnone transferred this issue from junxnone/tech-io Oct 16, 2021
@junxnone junxnone changed the title Histogram Equalization CV HE Dec 23, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant