-
大小: 4KB文件類型: .cpp金幣: 1下載: 0 次發布日期: 2021-01-08
- 標簽: OpenCV??
資源簡介
多波段融合/拉普拉斯金字塔融合OpenCV_C++代碼
代碼片段和文件信息
//拉普拉斯金字塔融合?處理三通道
/**
?*?Author:?ChuanjieZhu
?*?Date:2019.4.26
?*/
#include?
#include?
#include?
#include?
#include?
using?namespace?std;
using?namespace?cv;
//?show?image
void?showImage(String?windowName?Mat?img?int?flag?=?0)
{
namedWindow(windowName?CV_WINDOW_NORMAL);//0:?CV_WINDOW_NORMAL?1:?WINDOW_AUTOSIZE
imshow(windowName?img);
waitKey(0);
//destroyWindow(windowName);
}
vector>?gaussianPyramid(Mat?img?int?levels)
{
vector>?_gaussianPyramid;
_gaussianPyramid.push_back(img);
Mat?currentImage?=?img;
//cout?< for?(int?i?=?1;?i? {
Mat?downsampleImage;
pyrDown(currentImage?downsamp
- 上一篇:基于MFC簡易同學錄
- 下一篇:通過編程獲取IP地址與MAC地址的對應關系
評論
共有 條評論