public static void ImageCopyCrt() { Mat matDst = new Mat(Glb.matSrc[0].Size(), Glb.matSrc[0].Type()); var nbytes = Glb.matSrc[0].Step() * Glb.matSrc[0].Height; Crt.memcpy(matDst.Data, Glb.matSrc[0].Data, nbytes); Glb.DrawMatAndHist(Glb.matSrc[0]); Glb.DrawMatAndHist(matDst); }
public static void ImageCopyCrt() { Mat matDst = new Mat(Glb.matSrc.Size(), Glb.matSrc.Type()); var nbytes = Glb.matSrc.Step() * Glb.matSrc.Height; Glb.TimerStart(); Crt.memcpy(matDst.Data, Glb.matSrc.Data, nbytes); Console.WriteLine("=> Method Time: {0}ms", Glb.TimerStop()); Glb.DrawMatAndHist0(Glb.matSrc); Glb.DrawMatAndHist1(matDst); Glb.DrawMatAndHist2(null); matDst.Dispose(); }