private void SourceImageChanged() { if (SourceImage != null) { OriginalImage = SourceImage.Copy(); } ProjectChanged(); }
public void SetImage(string path) { ClearDataAndImages(); SourceImageFullSize = new Image <Bgr, byte>(path); SourceImage = ResizeImage(SourceImageFullSize.Mat, 50).ToImage <Bgr, byte>(); //SourceImage = ResizeImage(SourceImage.Mat, 50).ToImage<Bgr, byte>(); FinalPreviewImage = SourceImage.Copy().Mat; }
public void SetImage(Bitmap image) { Image <Bgr, byte> img = image.ToImage <Bgr, byte>(); ClearDataAndImages(); SourceImageFullSize = img; SourceImage = ResizeImage(SourceImageFullSize.Mat, 50).ToImage <Bgr, byte>(); //SourceImage = ResizeImage(SourceImage.Mat, 50).ToImage<Bgr, byte>(); FinalPreviewImage = SourceImage.Copy().Mat; }
public void RotateImage(double angle) { SourceImageFullSize = SourceImageFullSize.Rotate(angle, new Bgr(255, 255, 255), false); SourceImage = SourceImage.Rotate(angle, new Bgr(255, 255, 255), false); FinalPreviewImage = SourceImage.Copy().Mat; }