上一页 1 ··· 62 63 64 65 66 67 68 69 70 ··· 75 下一页
摘要: clear all;close all;clc;img1=imread('Corner.png');img2=imread('Corner1.png');img3=imread('Corner2.png');img1=imresize(img1,[35 90]); %Matlab的svd不支持太大的数据,我把数据变小了.img2=imresize(img2,[35 90]);img3=imresize(img3,[35 90]);[height width]=size(img2);a=reshape(double(img1),1,35*90);b 阅读全文
posted @ 2012-05-02 14:25 Dsp Tian 阅读(3666) 评论(1) 推荐(0) 编辑
摘要: clear all;close all;clc;im=imread('2.png');im2=im;im1=rgb2ycbcr(im);%将图片的RGB值转换成YCbCr值%Lu=im1(:,:,1);Cb=im1(:,:,2);Cr=im1(:,:,3);[x y z]=size(im);tst=zeros(x,y);%计算Cb、Cr的均值Mb、Mr%Mb=mean(mean(Cb));Mr=mean(mean(Cr));%计算Cb、Cr的均方差%Db=sum(sum(Cb-Mb))/(x*y);Dr=sum(sum(Cr-Mr))/(x*y);%根据阀值的要求提取出near 阅读全文
posted @ 2012-05-01 15:12 Dsp Tian 阅读(5245) 评论(1) 推荐(0) 编辑
摘要: clear all;close all;clc;img=imread('Lena_cai.jpg');imshow(img);mean1=mean(mean(img(:,:,1)));mean2=mean(mean(img(:,:,2)));mean3=mean(mean(img(:,:,3)));me=mean(mean(mean(img)));img(:,:,1)=me/mean1*img(:,:,1);img(:,:,2)=me/mean2*img(:,:,2);img(:,:,3)=me/mean3*img(:,:,3);figure,imshow(img);参考:ht 阅读全文
posted @ 2012-04-29 16:06 Dsp Tian 阅读(2637) 评论(0) 推荐(0) 编辑
摘要: clear all;close all;clc;img=imread('lena.jpg');imshow(img);phi=pi/2;theta=2;sigma=0.65*theta;filterSize=6;G=zeros(filterSize);for i=(0:filterSize-1)/filterSize for j=(0:filterSize-1)/filterSize xprime=j*cos(phi); yprime=i*sin(phi); K=exp(2*pi*theta*sqrt(-1)*(xprime+yprime)); ... 阅读全文
posted @ 2012-04-29 15:07 Dsp Tian 阅读(4779) 评论(0) 推荐(0) 编辑
摘要: clear all;close all;clc;img=imread('saber9.jpg');img2=imread('saber2.jpg');imshow(img)figure,imshow(img2);tmp=rgb2gray(img);tmp2=rgb2gray(img2);img_re=imresize(tmp,[8 8]);img_re2=imresize(tmp2,[8 8]);img_re=uint8(double(img_re)/4);img_re2=uint8(double(img_re2)/4);me=mean(mean(img_re) 阅读全文
posted @ 2012-04-29 14:02 Dsp Tian 阅读(5361) 评论(0) 推荐(0) 编辑
摘要: #include <windows.h>#include <process.h> /* _beginthread, _endthread */#include <iostream>#include <fstream>#include <string>using namespace std;ofstream out("out.txt");void ThreadFunc1(PVOID param){ while(1) { char *p; p=(char *) param; Sleep(10); out<< 阅读全文
posted @ 2012-04-27 15:41 Dsp Tian 阅读(1471) 评论(0) 推荐(0) 编辑
摘要: 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 阅读(2554) 评论(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 阅读(4174) 评论(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 阅读(16712) 评论(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 阅读(21748) 评论(5) 推荐(1) 编辑
上一页 1 ··· 62 63 64 65 66 67 68 69 70 ··· 75 下一页