2005年11月09日

实现方法:
采用图像调制方法,动态每帧调整调制因子。调制公式如下:
di = s * modulate_factor.
其中,di 为目标图像, s 为原图像备份, modulate_factor为调制因子。只需在每帧动态递增调制因子即可。如modulate_factor += delta;一般delta可设为0.01到0.1之间的值,初始一般为1或0。

改进:
上述方法对与纯黑的地方不起作用,可以加个减亮因子d_factor,修正公式如下:
di = (d_factor + s) * modulate_factor;
d_factor需要每帧更新。

区分图像本身通过加减法改变亮度和外界光线光照改变图像亮度。

float a,b;
1 wrong way:
if (a == b)
;//todo
2 right way:
if (fabs(a) – fabs(b) < EPSILON_E3 ? 1 : 0)
;//todo

reason:
The min float is MIN_FLOAT, so it has no meaning to compare a & b using “==” if one of them is less than MIN_FLOAT. For example, 0.12333335 & 0.1233338 is equal in our opnions, but the first method will think they are not equal and the second method will think as we do.

2005年11月07日

开发一个CE程序,就需要这些:都可以微软官方免费下载到:

eVC4.0

http://download.microsoft.com/download/WindowsCENETPlatformBuilder/Install/4.0/NT5XP/EN-US/eVC4.exe

序列号:TRT7H-KD36T-FRH8D-6QH8P-VFJHQ

eVC4.0 SP4

http://download.microsoft.com/download/a/7/3/a735c7fb-dcbd-429f-9090-d09b3b15d3fa/evc4sp4.exe

PocketPC2003SDK

http://download.microsoft.com/download/6/9/5/69570242-44e8-45e6-a252-9bd56db8ec83/Microsoft%20Pocket%20PC%202003%20SDK.msi

WM2003SE CHS模拟器

http://download.microsoft.com/download/e/2/8/e28792ca-d04b-407b-9b18-75b9128f0cc9/Windows%20Mobile%202003%20Second%20Edition%20Emulator%20Images%20for%20Pocket%20PC%20-%20CHS.msi

参考:http://www.vckbase.com/document/viewdoc/?id=1107

我那破机器居然发不了正文:(