【问题标题】:image processing-opencv and matplotlib图像处理——opencv 和 matplotlib
【发布时间】:2022-06-11 00:00:05
【问题描述】:

我有关于图像处理的问题,我想在使用函数 equalizeHist 后显示图像的直方图,那么我该怎么做?目前我的应用程序只显示原始图像的直方图,但我希望它在直方图平衡后显示图像的直方图,我使用 PyQt5 和 OpenCV,Matplotlib。我在下面附上了我的代码。非常感谢![在此处输入图像描述][1]

【问题讨论】:

  • self.image = self.tmp grayImg = cv.cvtColor(self.image, cv.COLOR_BGR2GRAY) equalImg = cv.equalizeHist(grayImg) self.image = equalImg self.displayImage(2) def Hist_anh (self): self.image = self.tmp hist = cv.calcHist([self.image], [0], None, [256], [0, 256]) self.image = hist plt.plot(self. image) plt.show() self.displayImage(2)

标签: image-processing


猜你喜欢
  • 1970-01-01
  • 1970-01-01
  • 2015-07-26
  • 1970-01-01
  • 1970-01-01
  • 2017-09-08
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
相关资源
最近更新 更多