02 2014 档案
摘要:一、定义 System.Collections.ArrayList类是一个特殊的数组(即动态数组)。通过添加和删除元素,就可以动态改变数组的长度。二、优点 动态的增加和删除元素,实现了ICollection和IList接口,灵活的设置数组的大小。三、构造器 public ArrayList(); 默认的构造器,将会以默认(16)的大小来初始化内部的数组 public ArrayList(ICollection); 用一个实现了ICollection接口的对象来构造,并将该集合的元素添加到ArrayList public ArrayList(int); 用指定...
阅读全文
摘要:Math.Ceiling 向上进位取整。例如:Math.Ceiling(32.6)=33; Math.Ceiling(32.0)=32;Math.Floor 向下舍位取整。例如:Math.Floor(32.6)=32;Math.Round 取指定位数的小数。例如:Math.Round(36.236,2)=36.24; Math.Round(36.232,2)=36.23;Math.Log 取指定数字在使用指定底对的对数。例如:一本16开的书,计算对开了几次。Math.Log(16,2)=4;Math.E 表示自然对数的底,它由常数 e 指定。Math.PI 表示圆的周长与其直径...
阅读全文
摘要:一、相关类MCvMoments inv_sqrt_m00 m00!=0?1/sqrt(m00):0 m00 spatial moments m01, m02, m03, m10, m11 m12, m21, m30, mu02, mu03 mu11, mu12, mu20, mu21, mu30MCvHuMoments hu1 Hu ivnariants hu2, hu3, hu4, hu5, hu6, hu7public static void cvMoments( IntPtr arr, //Image (1-...
阅读全文
摘要:一、使循环不卡 Application.DoEvents(); System.Threading.Thread.Sleep(5);二、计算代码运行时间 Stopwatch sw = new Stopwatch(); sw.Start(); ... sw.Stop();
阅读全文
摘要:一、圆 public static void cvCircle( IntPtr img, System.Drawing.Point center, //Center of the circle int radius, //Radius of the circle MCvScalar color, //Color of the circle int thickness, if negative indicates that a filled circle has to be drawn Emgu.CV.CvEn...
阅读全文

浙公网安备 33010602011771号