图像处理之图像金字塔
来源:互联网 发布:远程网络连接器 编辑:程序博客网 时间:2024/06/04 23:22
• Usually we need to convert an image to a size different than its original. For this, there are two possible options:
1. Upsize the image (zoom in) or
2. Downsize it (zoom out).
• Although there is a geometric transformation function in OpenCV that -literally- resize an image (resize, which we will show in a future tutorial), in this section we analyze first the use of Image Pyramids, which are widely applied in a huge range of vision applications.
1. Upsize the image (zoom in) or
2. Downsize it (zoom out).
• Although there is a geometric transformation function in OpenCV that -literally- resize an image (resize, which we will show in a future tutorial), in this section we analyze first the use of Image Pyramids, which are widely applied in a huge range of vision applications.
摘自Opencv文档
• There are two common kinds of image pyramids:
– Gaussian pyramid: Used to downsample images
– Laplacian pyramid: Used to reconstruct an upsampled image from an image lower in the pyramid (with less resolution)
这里仅介绍高斯金字塔:
#include "cv.h"#include "highgui.h"using namespace std;using namespace cv;int main(int argc,char *argv[]){Mat src,temp,dst;src=imread("src.jpg");temp=src;dst=temp;while(1){char c=(char)waitKey(0);if (c==27) break;else if (c=='u') pyrUp(temp,dst,Size(temp.cols*2,temp.rows*2));else if (c=='d') pyrDown(temp,dst,Size(temp.cols/2,temp.rows/2));imshow("dst",dst);temp=dst;}return 0;}
0 0
- 图像处理之图像金字塔
- 图像处理之高斯金字塔
- 图像处理之高斯金字塔 .
- OpenCV图像处理篇之采样金字塔
- 图像处理之高斯金字塔
- 图像处理之高斯金字塔
- 【数字图像处理】图像金字塔
- 数字图像处理-图像金字塔
- 图像处理之基于高斯金字塔的图像融合
- 图像融合之金字塔
- opencv图像处理9-图像金字塔
- 【OpenCV】图像处理(四)图像金字塔
- Python图像处理(16):图像金字塔
- Python图像处理(16):图像金字塔
- 【OpenCV图像处理】十四、图像金字塔
- 图像处理------高斯金字塔
- 图像处理之高斯金字塔(matlab)
- 图像算法之十:图像金字塔
- 用strace跟踪系统调用
- mahout做推荐时uid,pid为string类型
- dblink创建
- Android Canvas绘图详解
- libevent小程序
- 图像处理之图像金字塔
- Jquery中AJAX参数详解
- 学习c++其实有点反直觉
- 医疗会诊音视频技术解决方案
- Java多线程实现的三种方式
- C语言实现矩阵连乘问题
- No provisioning profiles matching the team ID “5679C2427N” were found. Xcode can resolve this issue
- Android调整TimePicker和DatePicker大小
- 解决长按手势两次触发事件的问题