资源简介
DSP imlib C64x+ CCS4工程文件 测试函数 sobel 测试图像 lena 灰度图512*512

代码片段和文件信息
#include
#include
#define BOUNDARY 0
#define ROWS 512
#define ROWS1 514
#define COLS 512
#define COLS1 514
#define STEP 514
#define STEP1 512
#define BUFSIZE1 512*512
#define BUFSIZE2 514*3
#define BUFSIZE3 514*514
extern unsigned char in_buffer[];
unsigned char in_buffer1[BUFSIZE3]; /*ADD boundary*/
unsigned char out_buffer[BUFSIZE1];
unsigned char in[BUFSIZE2];
unsigned char out[COLS1];
extern void IMG_sobel_3x3_8(const unsigned char *in_data unsigned char *out_data short cols short rows);
void cpy_img_to_kernel(unsigned char *in_datunsigned char *out_dat int num);
void add_boundary(unsigned char *in_dat unsigned char *out_dat int or_rows int or_cols);
void add_result(unsigned char *str_in unsigned char *str_out int num);
main()
{
clock_t startoverheadstoptt_boundaryt_initialize;
int i;
unsigned char *str_in*str_out*str_i*str_o;
start=clock();
stop=clock();
overhead=stop-start;
//====================================Initialize======================================//
start=clock();
printf(“Initialize out_buffer[];\n“);
for(i=0;i out_buffer[i]=0;
printf(“Initialize in[];\n“);
for(i=0;i in[i]=0;
printf(“Initialize in[];\n“);
for(i=0;i out[i]=0;
stop=clock();
t_initialize=stop-start-overhead;
printf(“Initialize finished! the time is %d\n“t_initialize);
//==================================ADD BOUNDARY=======================================//
start=clock();
add_boundary(in_buffer in_buffer1 ROWS COLS);
stop=clock();
t_boundary = stop - start - overhead;
printf(“Add boundary fininsed! the time is %d\n“t_boundary);
printf(“======Ininalize fininshed====\n“);
str_in=in_buffer1;
str_out=out_buffer;
str_i=in;
str_o=out;
printf(“Begin processing!\n“);
//============================================Sobel=======================================///
start=clock();
for(i=0;i {
cpy_img_to_kernel(str_in str_i BUFSIZE2);
str_in+=STEP;
str_o=out;
IMG_sobel_3x3_8(str_i str_o COLS ROWS);
str_o = out;
str_out = out_buffer + i*STEP1;
add_result(str_o str_out COLS);
// for(j=0;j // {
// *str_out++=*(str_o+1);
// str_o++;
//
// }
// str_out=out_buffer;
// str_out+=(i+1)*STEP1;
}
stop=clock();
t=stop-start-overhead;
printf(“Processed time = %d\n“t);
}
/*==============================================================
* add_boundary
* ==============================================================*/
void add_boundary(unsigned char *in_dat unsigned char *out_dat int or_rows int or_cols)
{
int ijkl;
int cols;
cols=or_cols+2;
/*========Add the first row===========*/
for(i=0;i {
*out_dat++=BOUNDARY;
}
/*=======Add the begin and end of eve
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
文件 317 2012-01-05 10:32 IMG_soble_lena\.ccsproject
文件 8333 2012-01-05 15:06 IMG_soble_lena\.cdtbuild
文件 677 2012-01-05 10:32 IMG_soble_lena\.cdtproject
文件 594 2012-01-05 10:32 IMG_soble_lena\.project
文件 640 2012-01-05 14:45 IMG_soble_lena\.settings\org.eclipse.cdt.managedbuilder.core.prefs
文件 81 2012-01-05 15:22 IMG_soble_lena\Debug\ccsObjs.opt
文件 28 2012-01-05 15:22 IMG_soble_lena\Debug\ccsSrcs.opt
文件 17029 2012-01-05 15:23 IMG_soble_lena\Debug\IMG_soble_lena.map
文件 422647 2012-01-05 15:23 IMG_soble_lena\Debug\IMG_soble_lena.out
文件 15485 2012-01-05 15:22 IMG_soble_lena\Debug\main.obj
文件 835 2012-01-05 15:23 IMG_soble_lena\Debug\main.pp
文件 3074 2012-01-05 15:22 IMG_soble_lena\Debug\makefile
文件 267 2012-01-05 15:22 IMG_soble_lena\Debug\ob
文件 1637 2012-01-05 15:22 IMG_soble_lena\Debug\sources.mk
文件 1702 2012-01-05 15:22 IMG_soble_lena\Debug\subdir.mk
文件 264710 2012-01-05 15:22 IMG_soble_lena\Debug\test_dat.obj
文件 59 2012-01-05 15:23 IMG_soble_lena\Debug\test_dat.pp
文件 279202 2011-12-07 17:47 IMG_soble_lena\imglib2.l64P
文件 280610 2011-12-07 17:47 IMG_soble_lena\imglib2_cn.l64P
文件 2889 2012-01-05 14:57 IMG_soble_lena\kernel_test.cmd
文件 4229 2012-01-05 14:44 IMG_soble_lena\main.c
文件 9543604 2011-12-07 17:47 IMG_soble_lena\rts64plus.lib
文件 968550 2011-12-21 11:39 IMG_soble_lena\test_dat.c
目录 0 2012-01-05 16:55 IMG_soble_lena\.settings
目录 0 2012-01-05 16:55 IMG_soble_lena\Debug
目录 0 2012-01-05 16:55 IMG_soble_lena
----------- --------- ---------- ----- ----
11817199 26
- 上一篇:国外超强的网络修复工具
- 下一篇:progisp166
相关资源
- CCS5.05.1可使用的license
- dsp2812上128点FFTc程序以及其CMD文件
- DSP28335程序片内FLASH搬运至RAM运行的
- 基于DSP2812的以太网调试程序
- DSP与PC通讯的几种方法
- DSP 语音识别程序 DTW MFCC
- 创龙C66x平台GigE工业相机图像采集案例
- VC工程转Qt工程文件的工具
- 基于DSP的大功率开关电源的设计方案
- 基于DSP 56F801的正弦波输出DC/AC电源
- 基于DSP的大功率开关电源设计
- 基于ARM7和DSP的逆变电源设计电路
- 基于运动控制器MCK2407的无刷直流电机
- es(elasticsearch)整合SpringCloudSpringBo
- tms320c6748 DSP原理图 SCH PCB
- TMS320F280049最小系统原理图
- F280049C_CMPSS_01.zip
- 基于DSP的矿用静止无功发生器的研制
- 基于DSP的矿井提升机永磁同步电机D
- 基于DSP的SVPWM变频调速系统
- 基于DSP的下一代车载娱乐系统
- DSP控制器原理及其在运动控制系统中
- 北京交通大学-数字图像处理试卷+ 答
- 十字路口交通灯.pdsprj
- 用DSP Builder实现FIR滤波器
- TMS320C54X DSP结构、原理及应用(第二版
- DSP 28035 源码
- PCI总线接口与DSP的HPI接口
- 基于DSP交流伺服系统与CAN总线的通信
- 单片机与DSP中的基于DSP的FFT算法在无
评论
共有 条评论