登录
首页 » c » CCS进行图像处理

CCS进行图像处理

于 2023-02-23 发布 文件大小:48.08 kB
0 158
下载积分: 2 下载次数: 1

代码说明:

利用ccs对图像进行处理,包括二2值化,反色,和上下颠倒。 /*********************************************************************** ** Main Function Program ***********************************************************************/  #include "math.h"                 //也可以不要 #include "stdio.h" #define IMAGE_WIDTH 64 #define IMAGE_HEIGTH 64 main() { FILE *fi; int i,j,k; int y[IMAGE_HEIGTH][IMAGE_WIDTH]; unsigned char id[64]; char m; k=128;  /*k is Threshold Value*/ // fi=fopen("D:TupianLena64.bmp","rb"); fi=fopen("C: imyprojectslab56DSP54X-28-TuxiangchuliTupianLena64.bmp","rb"); /*    if(fi==NULL)      {     printf("can not open file Lena64.bmp. ");     exit(1);     &nbs

下载说明:请别用迅雷下载,失败请重下,重下不扣分!

发表评论

0 个回复

  • 华为的编程规范和范例
    说明:  华为编程规范,最基础的语言规范,可以参考!(Huawei programming specifications, you can refer to!)
    2020-06-17 21:40:02下载
    积分:1
  • 20090926
    RTF文件格式研究报告,是学习RTF打印技术的好资料。(RTF file format research reports, is to learn good information on RTF printing.)
    2009-09-25 19:46:41下载
    积分:1
  • Digital-filtering-experiment
    由设计要求可知,wp<=0.2π,允许误差幅度小于1dB,ws>=0.3π内衰减应大于15dB。为了验证数字滤波器的实际滤波功能,设计程序时,把输入序列定为验证函数x(t)=4sin(100πt)以及x(t)=4sin(200πt)和x(t)=4sin(400πt)。又因为Ts=1.25ms,T=80ms,故采样点为64,即N=64,所以当M=6,可以同时调试并验证程序的滤波功能。(Seen by the design requirements, wp < = 0.2π, allow a margin of error of less than 1dB, ws> = 0.3π within attenuation greater than 15dB. In order to verify the actual filtering function of the digital filter design program, the input sequence as validation function x (t) = 4sin (100πt) and x (t) = 4sin (200πt) and x (t) = 4sin (400πt) . And because Ts = 1.25ms, T = 80ms, so the sampling points is 64, that is N = 64, so when M = 6, can debug and validate filtering program.)
    2014-12-24 09:34:43下载
    积分:1
  • 等精度测频率
    利用stm32F407实现的等精度测频,可以精确测量频率,误差很小(The equal precision frequency measurement realized by stm32F407 can accurately measure frequency with little error.)
    2020-06-19 13:00:02下载
    积分:1
  • 企业会议室管理系统
    本项目是模范企业会议室管理系统而做的。会议室管理系统作用是为企业管理会议室的利用资源。开发平台是在虚拟机下的ubuntun开发,本项目都是用C写的。用到的库是ncurses库。用ncurses做界面。
    2022-02-13 17:28:33下载
    积分:1
  • Adaboost人脸识别
    Adaboost人脸识别的改进算法 有效缩短算法运行的时间
    2023-07-31 08:15:02下载
    积分:1
  • dsp_yxp_3
    说明:  matlab开发函数,一些简单的例子和数字滤波器设计函数(matlab development function, some simple examples and digital filter design function)
    2011-04-14 09:42:58下载
    积分:1
  • 762365
    VC Database Books CD-ROMs Machinery Industry Publishing(VC Database Books CD - ROMs Machinery Industry Publishing)
    2017-07-21 23:08:20下载
    积分:1
  • RGB灯条(音乐跳动)
    使用stm32的一路pwm控制RGB灯条的颜色和个数随着音乐跳动。简称音乐喷泉(The color and number of STM32 PWM control RGB lights are beating with music. Music fountain for short)
    2021-01-04 01:48:56下载
    积分:1
  • 儿童认知app
    ;。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。
    2022-05-08 12:30:14下载
    积分:1
  • 696516资源总数
  • 106914会员总数
  • 0今日下载