上一页 1 ··· 61 62 63 64 65 66 67 68 69 ··· 73 下一页
摘要: close all;clear all;clc;img=imread('pic.bmp');imshow(img);[m n]=size(img);re=zeros(m,n);tmp=zeros(m+2,n+2);tmp(2:m+1,2:n+1)=img;for i=2:m+1 for j=2:n+ 阅读全文
posted @ 2012-04-03 21:09 Dsp Tian 阅读(3275) 评论(0) 推荐(0) 编辑
摘要: (defun re(n) (setf len (length n)) (if (oddp len) (setf mid (/ (1+ len) 2)) (setf mid (/ len 2))) (or (and (oddp len) (equal (subseq n 0 (1- mid)) (reverse (subseq n mid)))) (and (evenp len) (equal (subseq n 0 mid) (reverse (subseq n mid)))))) 阅读全文
posted @ 2012-04-03 10:11 Dsp Tian 阅读(597) 评论(0) 推荐(0) 编辑
摘要: close all;clear all;clc;img=imread('1.jpg');imshow(img);[m n]=size(img);img_re=zeros(m,n);tmp=zeros(8,8);for i=1:8:m for j=1:8:n tmp=mc(img(i:i+7,j:j+7)); img_re(i:i+7,j:j+7)=tmp; endendfigure,imshow(uint8(img_re));figure,imshow(histeq(img));%{a=[238 238 236 237 236 228 227 234;... 阅读全文
posted @ 2012-04-02 09:47 Dsp Tian 阅读(3273) 评论(0) 推荐(0) 编辑
摘要: (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 阅读(643) 评论(0) 推荐(0) 编辑
摘要: #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 阅读(2598) 评论(0) 推荐(0) 编辑
摘要: #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 阅读(1684) 评论(0) 推荐(0) 编辑
摘要: #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 阅读(2343) 评论(0) 推荐(0) 编辑
摘要: #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 阅读(727) 评论(0) 推荐(0) 编辑
摘要: #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 阅读(572) 评论(0) 推荐(0) 编辑
摘要: #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 阅读(1056) 评论(0) 推荐(0) 编辑
上一页 1 ··· 61 62 63 64 65 66 67 68 69 ··· 73 下一页