資源簡介
詳細(xì)見:http://blog.csdn.net/fred_yang2013/article/details/11016295

代碼片段和文件信息
#include?
#include?
#include?“Histogram.h“
#include?
int?main()
{
cv::Mat?imggrayImagehistograyImage?historesultImage;
Histogram?h;
img?=?cv::imread(“l(fā)ena.jpg“);
if(!img.data)
return?0;
cv::cvtColor(imggrayImageCV_BGR2GRAY);
cv::namedWindow(“grayImage“);
cv::imshow(“grayImage“grayImage);
histograyImage=h.getHisotgramImage(grayImage);?
cv::namedWindow(“histograyImage“);
cv::imshow(“histograyImage“histograyImage);
cv::Mat?resultImage?=?h.applyLookupTable(grayImageh.creatLookupTable1(img50));
historesultImage=h.getHisotgramImage(resultImage);
cv::namedWindow(“resultImage“);
cv::imshow(“resultImage“resultImage);
cv::namedWindow(“historesultImage“);
cv::imshow(“historesultImage“historesultImage);
cv::waitKey(0);
return?0;
}
?屬性????????????大小?????日期????時間???名稱
-----------?---------??----------?-----??----
?????文件????????848??2013-09-03?21:02??LookupTable\getHistImage.cpp
?????文件???????2941??2013-09-03?20:06??LookupTable\Histogram.cpp
?????文件???????1313??2013-09-03?19:38??LookupTable\Histogram.h
?????目錄??????????0??2013-09-03?21:03??LookupTable
-----------?---------??----------?-----??----
?????????????????5102????????????????????4
評論
共有 條評論