图像颜色特征提取(三阶矩)完整代码;stricker和0reng0提出了颜色矩的方法,颜色矩是一种简单有效的颜色特征表示方法,有一阶矩(均值)、二阶矩(标准差)和三阶矩(斜度)等,由于颜色信息主要分布于低阶矩中,所以用一阶矩,二阶矩和三阶矩足以表达图像的颜色分布,颜色矩已证明可有效地表示图像中的颜色分布
Image color feature extraction (three moments) complete code;Stricker and 0reng0 proposed a method of color moments. Color moments are a simple and effective color feature representation method. There are first order moment (mean), two order moment (standard deviation) and three order moment (slope). Because the color information is mainly distributed in the low order moment, the color distribution of the image is expressed with the first moment, the two order moment and the three order moment. Color moments have proved effective in representing color distribution in images. (2018-04-26, matlab, 1KB, 下载12次)
iPhone 游戏编程基本技巧(1)基本动画实现与阴影处理。
演示程序包括
1。如何产生管理动画定时器。
2。如何使用Quartz 2D函数库来在layer object中进行缓冲区render动画帧,及其进行阴影处理。
编译与运行环境:
1。系统:Mac OSX 10.5 (Leopard) 或 Mac OSX 10.6(Snow Leopard)
2。编译环境:
在 Mac OSX 10.5 (Leopard)中,XCode 3.14 IDE, iPhone SDK 3.1.2
在 Mac OSX 10.6(Snow Leopard)中 ,XCode 3.2.1 IDE, iPhone SDK 3.1.2
3. 运行环境: iPhone Emulator.
This is a demo code showing how to use Quartz 2D API and timer to implement animation and shadow in iPhone application (2009-11-12, Objective-C, 619KB, 下载47次)
123456uyygbb温度传感器ds1820 的汇编程序
晶振:12M
TEMPER_L EQU 36H
TEMPER_H EQU 35H
TEMPER_NUM EQU 60H
FLAG1 BIT 00H
DQ BIT P3.3
AAA:MOV SP,#70H
LCALL GET_TEMPER
LCALL TEMPER_COV
LJMP AAA
NOP
------------------读出转换后的温度值
GET_TEMPER:
SETB DQ 定时入口
BCD:LCALL INIT_1820
JB FLAG1,S22
LJMP BCD 若DS18B20不存在则返回
S22:LCALL DELAY1
MOV A,#0CCH 跳过ROM匹配------0CC
LCALL WRITE_1820
MOV A,#44H 发出温度转换命令
LCALL WRITE_1820
Ds1820 temperature sensor 123456uyygbb the assembler crystal: 12MTEMPER_L EQU 36HTEMPER_H EQU 35HTEMPER_NUM EQU 60HFLAG1 BIT 00HDQ BIT P3.3AAA: MOV SP,# 70HLCALL GET_TEMPERLCALL TEMPER_COVLJMP AAANOP read out the converted temperature value GET_TEMPER: SETB DQ regularly import BCD: LCALL INIT_1820JB FLAG1, S22LJMP BCD if DS18B20 does not exist is returned S22: LCALL DELAY1MOV A,# 0CCH Skip ROM matching 0CCLCALL WRITE_1820MOV A,# 44H issued a temperature conversion command LCALL WRITE_1820 (2008-05-23, MultiPlatform, 817KB, 下载12次)