static void Main(string[] args) { BitMap2d bmp = new BitMap2d(501, 702, 0); bmp.ReadRaw("Clipboard.raw"); Bitmap image = bmp.MakeBmp(); MaximunFinder mf = new MaximunFinder(bmp, 20); List <Int16DoubleWithValue> list = mf.FindMaxima(); for (int i = 0; i < list.Count; i++) { SetB(image, list[i].X, list[i].Y); } image.Save("ret.bmp"); }
public MaximunFinder(BitMap2d bmp, float torlerance) { this.bmp = bmp; this.torlerance = torlerance; }