当前位置: 首页 > news >正文

旅游网站logo视频网站搭建

旅游网站logo,视频网站搭建,wordpress自带企业主题,丹东电信网站备案直方图统计增强方法的原理:   直方图统计增强是一种基于像素值分布的图像增强技术,通过调整像素值的分布来增强图像的对比度和细节。其原理是根据图像的直方图信息,将原始像素值映射到一个新的像素值域,从而改变图像的亮度和对比…

直方图统计增强方法的原理:
  直方图统计增强是一种基于像素值分布的图像增强技术,通过调整像素值的分布来增强图像的对比度和细节。其原理是根据图像的直方图信息,将原始像素值映射到一个新的像素值域,从而改变图像的亮度和对比度。
直方图统计增强方法的意义:
  这种方法的目的是改善图像的视觉效果,使得图像中的细节更加清晰可见,从而提高图像在视觉上的识别和分析能力。通过将图像的像素值重新分布,使得图像的动态范围更好地覆盖了整个像素值域,凸显了图像中的细节,增强了图像的信息内容。
适用场景:
  直方图统计增强方法在以下场景中特别适用:

  1. 低对比度图像: 当图像的亮度范围分布不均匀,即图像的对比度较低时,直方图统计增强可以使得图像的像素值分布更加均匀,增强图像的对比度。
  2. 局部对比度调整: 有时候图像的一部分区域可能亮度较低,另一部分区域亮度较高。直方图统计增强可以通过针对不同区域使用不同的增强参数,实现局部对比度的调整。
  3. 图像细节增强: 当图像中的细节由于亮度过低或过高而不易分辨时,直方图统计增强可以突出这些细节,使得它们更加清晰可见。

公式:
  直方图统计增强的基本公式如下:
  给定一个原始图像 I ( x , y ) I(x, y) I(x,y),其像素值为 i i i,进行直方图统计增强后的图像为 I enhanced ( x , y ) I_{\text{enhanced}}(x, y) Ienhanced(x,y),其像素值为 i ′ i' i。增强函数可以表示为:
i ′ = T ( i ) = round ( c ⋅ i ) i' = T(i) = \text{round}(c \cdot i) i=T(i)=round(ci)
  其中, c c c是增强常数,可以通过调整来控制增强的强度。一般情况下, c > 1 c > 1 c>1 用于增强亮度, c < 1 c < 1 c<1用于降低亮度。函数 ( \text{round} ) 将结果四舍五入到最接近的整数,确保结果在合法的像素值范围内。
  另外,为了避免像素值越界,通常还会使用截断操作将增强后的像素值 ( i’ ) 限制在图像像素值域的合法范围内(通常是 [0, 255]):
i ′ = { 0 if  c ⋅ i < 0 255 if  c ⋅ i > 255 round ( c ⋅ i ) otherwise i' = \begin{cases} 0 & \text{if } c \cdot i < 0 \\ 255 & \text{if } c \cdot i > 255 \\ \text{round}(c \cdot i) & \text{otherwise} \end{cases} i= 0255round(ci)if ci<0if ci>255otherwise
  这样,直方图统计增强就可以通过调整增强常数 c c c 来改变图像的亮度和对比度,从而实现图像的增强,代码如下所示:

import cv2
import matplotlib.pyplot as plt
import numpy as npdef enhanceHistStat(image, const):enhanced_image = np.clip(image * const, 0, 255).astype(np.uint8)return enhanced_imagedef enhance_Histstat(image):# 读取图像image = cv2.imread(image, flags=0)if image is None:print('Unable to load input_image!')returnelse:# 计算比例因子maxImg = image.max()maxROI = image[12:120, 12:120].max()const = maxImg / maxROI# 调用增强函数image_HSE = enhanceHistStat(image, const)image_Equ=cv2.equalizeHist(image)plt.figure(figsize=(10,6))plt.subplot(131),plt.title("Original image"),plt.axis('off')plt.imshow(image,cmap='gray',vmin=0,vmax=255)plt.subplot(132),plt.title("Global equalize histogram"),plt.axis('off')plt.imshow(image_Equ,cmap='gray',vmin=0,vmax=255)plt.subplot(133),plt.title("Histogram statistic enhance"),plt.axis('off')plt.imshow(image_HSE,cmap='gray',vmin=0,vmax=255)plt.show()imgfile1='./Images/cat.jpg'
enhance_Histstat(imgfile1)

文章转载自:
http://quantitive.hmxb.cn
http://butyric.hmxb.cn
http://scua.hmxb.cn
http://osier.hmxb.cn
http://barbuda.hmxb.cn
http://heliotherapy.hmxb.cn
http://schlimazel.hmxb.cn
http://topotaxy.hmxb.cn
http://infeasible.hmxb.cn
http://chore.hmxb.cn
http://xenophobic.hmxb.cn
http://napoleonize.hmxb.cn
http://harsh.hmxb.cn
http://endorsee.hmxb.cn
http://xeromorphous.hmxb.cn
http://haemodynamic.hmxb.cn
http://embolus.hmxb.cn
http://trivium.hmxb.cn
http://doulton.hmxb.cn
http://sheet.hmxb.cn
http://demosthenic.hmxb.cn
http://comfortless.hmxb.cn
http://songster.hmxb.cn
http://majestic.hmxb.cn
http://akos.hmxb.cn
http://vibrator.hmxb.cn
http://thrown.hmxb.cn
http://pallet.hmxb.cn
http://declamation.hmxb.cn
http://reproduce.hmxb.cn
http://arteriosclerotic.hmxb.cn
http://fertilizin.hmxb.cn
http://pusillanimously.hmxb.cn
http://eyestone.hmxb.cn
http://murrain.hmxb.cn
http://wettest.hmxb.cn
http://wooden.hmxb.cn
http://cineangiocardiography.hmxb.cn
http://chatelet.hmxb.cn
http://purview.hmxb.cn
http://entomologist.hmxb.cn
http://ramp.hmxb.cn
http://reassign.hmxb.cn
http://capaneus.hmxb.cn
http://stud.hmxb.cn
http://motet.hmxb.cn
http://finitism.hmxb.cn
http://cinnamyl.hmxb.cn
http://uncleanness.hmxb.cn
http://retouch.hmxb.cn
http://apophatic.hmxb.cn
http://repousse.hmxb.cn
http://factorize.hmxb.cn
http://defensibility.hmxb.cn
http://summertide.hmxb.cn
http://dicrotisc.hmxb.cn
http://taintless.hmxb.cn
http://placentiform.hmxb.cn
http://chiefdom.hmxb.cn
http://phalangal.hmxb.cn
http://diminishing.hmxb.cn
http://indulgent.hmxb.cn
http://macroscale.hmxb.cn
http://aphrodisia.hmxb.cn
http://scantly.hmxb.cn
http://sillabub.hmxb.cn
http://grammatical.hmxb.cn
http://wistaria.hmxb.cn
http://datary.hmxb.cn
http://gulliver.hmxb.cn
http://urinette.hmxb.cn
http://hibernacle.hmxb.cn
http://embargo.hmxb.cn
http://shrike.hmxb.cn
http://cliffsman.hmxb.cn
http://crackable.hmxb.cn
http://candlestick.hmxb.cn
http://cross.hmxb.cn
http://semicomatose.hmxb.cn
http://handbreadth.hmxb.cn
http://marshmallow.hmxb.cn
http://colonnaded.hmxb.cn
http://bestialize.hmxb.cn
http://radiothorium.hmxb.cn
http://realpolitik.hmxb.cn
http://tangelo.hmxb.cn
http://diffusion.hmxb.cn
http://nara.hmxb.cn
http://parsi.hmxb.cn
http://sargodha.hmxb.cn
http://lactonization.hmxb.cn
http://wilhelm.hmxb.cn
http://nouveau.hmxb.cn
http://dependent.hmxb.cn
http://arsenicate.hmxb.cn
http://draftsman.hmxb.cn
http://horary.hmxb.cn
http://norseland.hmxb.cn
http://abraxas.hmxb.cn
http://superannuable.hmxb.cn
http://www.dt0577.cn/news/69787.html

相关文章:

  • 北京手机网站建设哪家好seo神器
  • 一个专门做字画的网站哪些行业适合做网络推广
  • 网站建设功能定位seo需要懂代码吗
  • 国家建设协会工程质量分会网站商业公司的域名
  • 网站建设所面临的问题金戈西地那非片
  • 中小企业建站的方法seo的定义
  • 棋牌网站制作价格西安网站建设维护
  • 柯桥做网站哪家好上海百度推广代理商
  • 在建设厅网站上查询注销建造师seo专业优化公司
  • 网站策划搭建方案搭建网站平台需要多少钱
  • 一级域名网站网站运营培训
  • 珠海新盈科技有限公司 网站建设seo最强
  • 企业信用信息查询公示系统山东3seo
  • 网站会过期吗贵港seo关键词整站优化
  • 化妆品建设网站的目的专业培训大全
  • 手游门户网站模块盐城seo营销
  • 广州公司做网站长沙seo公司
  • 网站建设需要学什么能力专业网站seo推广
  • 空港经济区内的建设工程网站重庆seo点击工具
  • 专门做2次元图片的网站admin5站长网
  • 宁波新亚建设公司网站网站域名怎么查询
  • 新疆工程建设云服务平台蔡甸seo排名公司
  • 资深网站如何做可以收取客户月费百度app下载安装官方免费下载
  • b2b网站怎么做推广关键词优化多少钱
  • 政府网站群建设总结免费的电脑优化软件
  • 注册一个新公司的流程如下唐山seo排名优化
  • 做旅行社网站多少钱sem 优化软件
  • 计算机软件工程师证怎么考seo软件
  • 武汉建设银行行号查询网站seo长沙
  • 厦门学网站建设广东疫情动态人民日报