摘要: #include <windows.h> // Windows的头文件#include <gl\gl.h> // OpenGL32库的头文件#include <gl\glu.h> // GLu32库的头文件#include <gl\glaux.h> // GLaux库的头文件#include <gl\glut.h> // Glut库头文件#pragma comment( lib, "opengl32.lib") // OpenGL32连接库#pragma comment( lib, "glu32.lib& 阅读全文
posted @ 2012-01-22 14:07 Dsp Tian 阅读(6420) 评论(1) 推荐(0)
摘要: #include <windows.h> // Windows的头文件#include <gl\gl.h> // OpenGL32库的头文件#include <gl\glu.h> // GLu32库的头文件#include <gl\glaux.h> // GLaux库的头文件#include <gl 阅读全文
posted @ 2012-01-21 21:02 Dsp Tian 阅读(2631) 评论(0) 推荐(1)
摘要: #include <windows.h> // Windows的头文件#include <gl\gl.h> // OpenGL32库的头文件#include <gl\glu.h> // GLu32库的头文件#include <gl\glaux.h> // GLaux库的头文件#include <gl\glut.h> // Glut库头文件#include <math.h>#pragma comment( lib, "opengl32.lib") // OpenGL32连接库#pragma comment 阅读全文
posted @ 2012-01-21 20:09 Dsp Tian 阅读(1029) 评论(0) 推荐(0)
摘要: #include <windows.h> // Windows的头文件#include <gl\gl.h> // OpenGL32库的头文件#include <gl\glu.h> // GLu32库的头文件#include <gl\glaux.h> // GLaux库的头文件#include <gl\glut.h> // Glut库头文件#pragma comment( lib, "opengl32.lib") // OpenGL32连接库#pragma comment( lib, "glu32.lib& 阅读全文
posted @ 2012-01-20 22:14 Dsp Tian 阅读(714) 评论(0) 推荐(0)
摘要: lianDlg.cpp#include "lmain.h"void ClianDlg::OnBnClickedButton1(){ // TODO: 在此添加控件通知处理程序代码 CWinThread *m_edit; m_edit=AfxBeginThread(lmain,&(m_hWnd),THREAD_PRIORITY_NORMAL,0,CREATE_SUSPENDED,NULL); m_edit->m_bAutoDelete=TRUE; m_edit->ResumeThread();}lmain.hUINT lmain(LPVOID lpPara 阅读全文
posted @ 2012-01-19 13:26 Dsp Tian 阅读(837) 评论(0) 推荐(0)
摘要: #include <stdio.h>typedef void (* FP)(unsigned int a,unsigned int b);//void DataDeal(FP PCB);//void PointerReceive(unsigned int a,unsigned int b);//void Pointer(unsigned int a,unsigned int b);////////////////////////////////////////////////////////////////void Pointer(unsigned int a,unsigned i 阅读全文
posted @ 2012-01-15 00:22 Dsp Tian 阅读(609) 评论(0) 推荐(0)
摘要: cl;img=imread('3.17.tif');imgn=imnoise(img,'salt & pepper',0.02);[m n]=size(img);%h=fspecial('average',[3 3]); % 3*3的均值滤波%imgn1=imfilter(imgn,h,'replicate');%imgn=medfilt2(imgn,[3 3]); % 3*3的中值滤波%%%%自己编写3*3均值滤波%{tem=0;for i=2:1:m-1 for j=2:1:n-1 for p=i-1:1:i+1 .. 阅读全文
posted @ 2012-01-07 22:23 Dsp Tian 阅读(4964) 评论(1) 推荐(0)
摘要: cl;img=imread('15.bmp');%img=double(img);f=fft2(img); %傅里叶变换f=fftshift(f); %使图像对称r=real(f); %图像频域实部i=imag(f); %图像频域虚部margin=log(abs(f)); %图像幅度谱,加log便于显示phase=log(angle(f)*180/pi); %图像相位谱l=log(f); subplot(2,2,1),imshow(img),title('源图像');%subplot(2,2,2)... 阅读全文
posted @ 2012-01-07 21:59 Dsp Tian 阅读(41718) 评论(0) 推荐(0)
摘要: cl;img=imread('15.bmp');%imshow(img);[m n]=size(img);max=0;min=256;avg=0;for i=1:1:m for j=1:1:n if img(i,j)<min min=img(i,j); end if img(i,j)>max max=img(i,j); end avg=avg+double(img(i,j)); endend%avg=mean(mean(img));avg=uint8(avg/(m*n)... 阅读全文
posted @ 2012-01-07 20:56 Dsp Tian 阅读(10593) 评论(4) 推荐(1)
摘要: #include <iostream>using namespace std;int main(){ double a[] ={2,2,2, 3,2,4, 1,3,9}; double b[] = {1,0.5,2.5}; double m =0; int n=3; for (int i = 0; i < n-1; i++) { for (int j = i + 1; j < n; j++) { m = a[j*n+i] / a[i*n+i]; ... 阅读全文
posted @ 2011-12-05 21:36 Dsp Tian 阅读(993) 评论(0) 推荐(0)