Example #1
0
        public void Resize(int newWidth, int newHeight, CVInterpolation interpolation)
        {
            CVImage newImage = new CVImage(newWidth, newHeight, Depth, Channels);

            PInvoke.cvResize(this.image, newImage.image, (int)interpolation);
            CVUtils.CheckLastError();
            Release();
            this.image       = newImage.image;
            newImage.created = false;
        }
Example #2
0
 public void Resize(int newWidth, int newHeight, CVInterpolation interpolation)
 {
     CVImage newImage = new CVImage(newWidth, newHeight, Depth, Channels);
     PInvoke.cvResize(this.image, newImage.image, (int) interpolation);
     CVUtils.CheckLastError();
     Release();
     this.image = newImage.image;
     newImage.created = false;
 }