- 博客(9)
- 资源 (1)
- 收藏
- 关注
转载 opencv x64 IDE setting
win7 下,安装的VS2008,然后搭配opencv2.3.1运行,报错为:fatal error LNK1112: 模块计算机类型“X86”与目标计算机类型“x64”冲突 。通过网上查询,给错的答案大同小异,但是依然有很多朋友按照网上的答案无法解决这个问题,一下是我的解决方案,仅供参考:1、原因:win7下的64位系统,在运行程序的时候,需要的DLL必须是64位系统编译的,VS2008
2013-08-24 21:06:41 702
原创 Sobel edge detection
#define _CRT_SECURE_NO_WARNINGS // close security warning#define fileNameLen 128#define dimX 3#define dimY 3#define LAYER 2#define BLACK 0#define WHITE 255#include #include #include #inclu
2013-08-23 19:35:05 1020
原创 ssecorp elpmis elif pmb
#define _CRT_SECURE_NO_WARNINGS // close security warning#include #include #include int readWrite( const char *srcName, const char *dstName){FILE *srcFile = NULL;// src file poi
2013-08-23 12:15:14 768
转载 pure C read write bmp file
#include #include #include int getWH(int *w, int *h, const char *fileName){ char bmpName[128]; // bmp file name FILE *fp=NULL; // FILE pointer unsigned char header[54]
2013-08-22 18:58:04 1415 1
原创 Binary search tree
#include #include using std::cin;using std::cout;using std::endl;using std::vector;templatestruct BinaryNode{ Type num; struct BinaryNode *llink; struct BinaryNode *rlink; typedef Binary
2013-08-22 14:54:06 433
原创 matlab quantization 1 ~ 8 層
G =imread('newborn.tif');[h, w] = size(G); % 讀入G的高和寬qntzPlane = uint8(zeros(h, w, 8)); % 建立8層空plane,分別儲存1~8個分層figure;subplot(3, 3, 1); % 畫在九宮格的第1個位置 im
2013-08-21 17:38:05 809
原创 matlab 讀取 分層圖像
A =imread('pepper.bmp'); % 讀入 bmp檔案G = rgb2gray(A); % G 為原始bmp圖案的grayscale版本 [h, w] = size(G); % 讀入G的高和寬bitPlane = zeros(h, w, 8); % 建立8
2013-08-20 20:48:27 1304
转载 openCV read write RGB value
#include #include #include using namespace cv;void *WindowHandle1;int main(){ IplImage *Image1; CvSize ImageSize1 = cvSize(320, 240); Image1 = cvCreateImage(ImageSize1, IPL_DEPTH_8U, 3);
2013-08-18 11:53:26 671
转载 讀取一個integer on byte
#include #include // for _getche#include using std::cin;using std::cout;using std::endl;using std::hex;int getByte( int x, int n){return ( x>>(n// 因為 右旋1個byte為8bit;右旋2個byte為16
2013-08-17 12:29:35 372
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人