Пример #1
0
 private void SourceImageChanged()
 {
     if (SourceImage != null)
     {
         OriginalImage = SourceImage.Copy();
     }
     ProjectChanged();
 }
Пример #2
0
 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;
 }
Пример #3
0
        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;
        }
Пример #4
0
 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;
 }