C# bitmap would change pic pixels, use matlab dll instead. comopute gross ratio first demo complete.