opencv22-直方图均衡化
生活随笔
收集整理的這篇文章主要介紹了
opencv22-直方图均衡化
小編覺得挺不錯的,現在分享給大家,幫大家做個參考.
#include<opencv2\highgui\highgui.hpp>
#include<opencv2\opencv.hpp>
#include<iostream>
#include<math.h>
using namespace std;
using namespace cv;
char *output_title = "output Image";
Mat src, dst;
//霍夫圓檢測前先進行中值濾波
int main()
{src = imread("E:\\vs2015\\opencvstudy\\1.jpg", 1);if (src.empty()){cout << "could not load the src image!" << endl;return -1;}char *input_title = "input Image";imshow(input_title, src);cvtColor(src, src, CV_BGR2GRAY);equalizeHist(src, dst);imshow(output_title, dst);waitKey(0);return 0;
}
?
總結
以上是生活随笔為你收集整理的opencv22-直方图均衡化的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: C/C++混淆点-字符串指针
- 下一篇: navicat 添加外键1215错误