public void Resize(IPattern Target, Size Size)
 {
     if (Target is DroidCvPattern target)
     {
         Resize(target.Mat, Size);
     }
 }
        public IPattern Resize(Size Size)
        {
            var result = new Mat();

            Resize(result, Size);

            return(new DroidCvPattern(result));
        }
 void Resize(Mat Target, Size Size)
 {
     Imgproc.Resize(Mat, Target, new Org.Opencv.Core.Size(Size.Width, Size.Height), 0, 0, Imgproc.InterArea);
 }