资源简介
多波段融合/拉普拉斯金字塔融合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 << currentImage.size() << endl;
for (int i = 1; i < levels; i++)
{
Mat downsampleImage;
pyrDown(currentImage downsamp
- 上一篇:基于MFC简易同学录
- 下一篇:通过编程获取IP地址与MAC地址的对应关系
评论
共有 条评论