会员
周边
新闻
博问
闪存
众包
赞助商
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
Dsp Tian
博客园
首页
新随笔
联系
订阅
管理
上一页
1
···
67
68
69
70
71
72
73
74
75
···
79
下一页
2012年3月24日
我的第一个lisp程序
摘要: (setf a (make-array 9))(setf i 0)(loop (setf (aref a i) i) (setf i (+ i 1)) (if (> i 8) (return)))数组赋值0~8
阅读全文
posted @ 2012-03-24 13:13 Dsp Tian
阅读(657)
评论(0)
推荐(0)
2012年3月21日
最小二乘直线拟合
摘要: #include <iostream>using namespace std;int nihe(double *x,double *y,int N){ double a0=0; double a1=0; double sum_x_square=0; double sum_x=0; double sum_y=0; double sum_x_y=0; double x_sum_square=0; for (int i=0;i<N;i++) { sum_x_square+=x[i]*x[i]; sum_y+=y[i];...
阅读全文
posted @ 2012-03-21 15:18 Dsp Tian
阅读(2620)
评论(0)
推荐(0)
2012年3月16日
Win32 SDK(对话框程序)
摘要: #include <Windows.h>#include <tchar.h>#include "resource.h"TCHAR DlgName[]=TEXT("MyDialog");TCHAR AppName[]=TEXT("Dialog");;//TCHAR TestString[]=TEXT("hello world");TCHAR buffer1[512];TCHAR buffer2[512];TCHAR *buffer3=NULL;int a=0,b=0,c=0;HINSTANCE
阅读全文
posted @ 2012-03-16 16:20 Dsp Tian
阅读(1699)
评论(0)
推荐(0)
2012年3月15日
快速傅里叶变换(正/反)
摘要: #include <stdio.h>#include <stdlib.h>#include <math.h>#define PI 3.141592653589793238462643383279 //这三十位的PI我小学就会背了void fft_rec(int N,int offset,int delta,double (*x)[2],double (*X)[2],double (*XX)[2]){ int N2=N/2; int k; double cs,sn; int k00,k01,k10,k11; double tmp0,tmp1; ...
阅读全文
posted @ 2012-03-15 21:48 Dsp Tian
阅读(2368)
评论(0)
推荐(0)
Win32 SDK(Hello world 2)
摘要: #include <windows.h>LRESULT CALLBACK WndProc (HWND, UINT, WPARAM, LPARAM) ;int WINAPI WinMain (HINSTANCE hInstance, HINSTANCE hPrevInstance, PSTR szCmdLine, int iCmdShow){ static TCHAR szAppName[] = TEXT ("HelloWin") ; HWND hwnd ; MSG msg ; WNDCLASS wc ; wc.sty...
阅读全文
posted @ 2012-03-15 13:03 Dsp Tian
阅读(742)
评论(0)
推荐(0)
Win32 SDK(Hello world)
摘要: #include "windows.h"int WINAPI WinMain(HINSTANCE HInstance,HINSTANCE hPrevInstance,PSTR szCmdLine,int CmdShow){ MessageBox(NULL,TEXT("hello world"),TEXT("sdk"),0); return 0;}
阅读全文
posted @ 2012-03-15 12:42 Dsp Tian
阅读(587)
评论(0)
推荐(0)
2012年3月14日
Kinect SDK提取彩色像素
摘要: #include <iostream>using namespace std;#include <Windows.h>#include "MSR_NuiApi.h"//#include "highgui.h"int main(int argc,char **argv){// IplImage *im
阅读全文
posted @ 2012-03-14 20:53 Dsp Tian
阅读(1076)
评论(0)
推荐(0)
2012年3月9日
matlab练习程序(图像错切)
摘要: cl;H=1; %索引pix中第一个元素,即高度W=2; %索引pix中第二个元素,即宽度jiaodu=0; %要旋转的角度,旋转方向为顺时针img=imread('Corner.png'); %这里v为原图像的高度,u为原图像的宽度imshow(img); %这里y为变换后图像的高度,x为变换后图像的宽度[v u]=size(img);h=v; ...
阅读全文
posted @ 2012-03-09 12:59 Dsp Tian
阅读(5254)
评论(0)
推荐(0)
2012年3月8日
matlab练习程序(图像旋转,最邻近插值)
摘要: cl;H=1; %索引pix中第一个元素,即高度W=2; %索引pix中第二个元素,即宽度jiaodu=45; %要旋转的角度,旋转方向为顺时针img=imread('Corner.png'); %这里v为原图像的高度,u为原图像的宽度imshow(img); %这里y为变换后图像的高度,x为变换后图像的宽度[v u]=size(img);theta=jiaodu/180*pi;rot=[cos(theta) ...
阅读全文
posted @ 2012-03-08 15:42 Dsp Tian
阅读(10373)
评论(3)
推荐(0)
matlab练习程序(图像水平/竖直移动)
摘要: cl;delta_x=67; %要求为整数,水平移动的偏移量,正为向右,负为向左delta_y=-89; %要求为整数,竖直移动的偏移量,正为向下,负为向上img=imread('Corner.png'); %这里v为原图像的高度,u为原图像的宽度imshow(img); %这里y为变换后图像的高度,x为变换后图像的宽度[v u]=size(img);imgn=zeros(v+abs(delta_y),u+abs(delta_x));rot=[1 0 0;0 1 0;delta_y delta_x 1]; in...
阅读全文
posted @ 2012-03-08 14:00 Dsp Tian
阅读(4157)
评论(0)
推荐(1)
上一页
1
···
67
68
69
70
71
72
73
74
75
···
79
下一页
公告