Transform img to 1/2
来源:互联网 发布:崇州行知中学 编辑:程序博客网 时间:2024/06/11 23:39
IplImage* doPyrDown( IplImage* in){ // Best to make sure input image is divisible by two. // assert( in->width%2 == 0 && in->height%2 == 0 ); IplImage* out = cvCreateImage( cvSize( in->width/2, in->height/2 ), in->depth, in->nChannels ); cvPyrDown( in, out ); return( out );};int _tmain(int argc, _TCHAR* argv[]){ IplImage* img = cvLoadImage("lena.jpg"); IplImage* img2; cvNamedWindow("Example1", CV_WINDOW_AUTOSIZE ); cvNamedWindow("Example2", CV_WINDOW_AUTOSIZE ); cvShowImage("Example1", img ); img2 = doPyrDown( img ); cvShowImage("Example2", img2 ); cvWaitKey(0); cvReleaseImage( &img ); cvReleaseImage( &img2 ); cvDestroyWindow("Example1"); cvDestroyWindow("Example2");}
- Transform img to 1/2
- Transform String to Int
- add img to database
- Linear Transform From 3D Space To 2D Space
- transform 2
- Move-to-front transform 算法
- reference to "transform" is ambiguous
- How to assign Transform to prefab ?
- <img> pass args to Servlet
- How to repack ramdisk.img
- Android save img to sqlite
- html+javascript click one img to change another img src
- no matching function for call to ‘transform
- rgb565 image data transform to OLED data
- Rococo(funcall transform to lambda ) great improvement
- no matching function for call to ‘transform
- Picking: Screen to Projection Window Transform
- An Interactive Guide To The Fourier Transform
- 项目管理实践【四】Bug跟踪管理【Bug Trace and Management】
- sync/fsync/fdatasync的简单比较
- Bus System (Floyd最短路)
- 摄像头视频采集压缩及传输
- 项目管理实践【五】自动编译和发布网站【Using Visual Studio with Source Control System to build and publish website autom
- Transform img to 1/2
- Windows开机登录认证与Gina DLL
- 项目管理实践【六】自动同步数据库【Using Visual Studio with Source Control System to synchronize database automaticall
- linux笔记十( Linux 账号管理)
- rabbitmq 安装配置
- hive中间接实现不等值连接
- 几种编码格式——————————————————————待整理
- Python如何获得本程序的执行时间
- 移植uboot2010.12到飞凌6410