Beispiel #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;
        }
 /// <summary>
 /// Resizes image (input array is resized to fit the destination array)
 /// TODO: Remove 'dst' argument and return a CVImage object
 /// </summary>
 public void Resize(CVArr dst, ResizeInterpolation interpolation)
 {
     PInvoke.cvResize(new __CvArrPtr(this), new __CvArrPtr(dst), (int)interpolation);
 }
Beispiel #3
0
 /// <summary>
 /// Resizes image (input array is resized to fit the destination array)
 /// TODO: Remove 'dst' argument and return a CVImage object
 /// </summary>
 public void Resize(CVArr dst, ResizeInterpolation interpolation)
 {
     PInvoke.cvResize(new __CvArrPtr(this), new __CvArrPtr(dst), (int)interpolation);
     CVUtils.CheckLastError();
 }