上一页 1 ··· 66 67 68 69 70 71 72 73 74 ··· 79 下一页
摘要: clear all; close all; clc; img1=imread('Corner.png'); img2=imread('Corner1.png'); img3=imread('Corner2.png'); [height width]=size(img2); a=reshape(img 阅读全文
posted @ 2012-04-23 22:46 Dsp Tian 阅读(2569) 评论(1) 推荐(1)
摘要: send.cpp:#include <WinSock2.h>#include <stdio.h>#include <Windows.h>#pragma comment(lib,"ws2_32.lib")int main(){ unsigned long ip; ip=inet_addr("127.0.0.1"); short port; port=8000; printf("Connecting to 127.0.0.1:8000...."); WSADATA wsa; if (WSAStartup 阅读全文
posted @ 2012-04-20 18:28 Dsp Tian 阅读(4185) 评论(0) 推荐(0)
摘要: close all; clc; H=1; %索引pix中第一个元素,即高度 W=2; %索引pix中第二个元素,即宽度 left_right=0.3; %抬起左边或右边时值为0-1之间,不抬起时为0 up_down=0; %抬起上边或下边时值为0-1之间,不抬起时为0 img=imread('len 阅读全文
posted @ 2012-04-11 22:10 Dsp Tian 阅读(16760) 评论(1) 推荐(3)
摘要: close all; clear all; clc; img=imread('rice.png'); imshow(img); [m n]=size(img); tmp=zeros(m+2,n+2); tmp(2:m+1,2:n+1)=img; Ix=zeros(m+2,n+2); Iy=zeros 阅读全文
posted @ 2012-04-09 22:38 Dsp Tian 阅读(21782) 评论(5) 推荐(1)
摘要: 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 阅读(3314) 评论(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 阅读(606) 评论(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 阅读(3291) 评论(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 阅读(655) 评论(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 阅读(2614) 评论(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 阅读(1697) 评论(0) 推荐(0)
上一页 1 ··· 66 67 68 69 70 71 72 73 74 ··· 79 下一页