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; }
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; }