摘要:
1. Download the OpenCV file. like OpenCV-2.4.3.tar.bz22.sudo apt-get install build-essential libgtk2.0-dev libavcodec-dev libavformat-dev libjpeg62-dev libtiff4-dev cmake libswscale-dev libjasper-devtar xf OpenCV-2.4.3.tar.bz2mv OpenCV-2.4.3 opencvcd opencv/mkdir releasecmake -D CMAKE_BUILD_TYPE=REL 阅读全文
摘要:
Adding (blending) two images using OpenCVsscanf(argv[1],"%lf",&input);//将输入的char* 变换成double类型。the function addWeighted comes quite handy:beta = ( 1.0 - alpha );addWeighted( src1, alpha, src2, beta, 0.0, dst);since addWeighted produces:dst = α · src1 + β · src2 + γIn this case 阅读全文