ImageTColor, TDepthResize Method (Int32, Int32, Inter, Boolean) |
http://www.emgu.com
Scale the image to the specific size
Namespace:
Emgu.CV
Assembly:
Emgu.CV.World (in Emgu.CV.World.dll) Version: 4.1.1.3497 (4.1.1.3497)
Syntaxpublic Image<TColor, TDepth> Resize(
int width,
int height,
Inter interpolationType,
bool preserveScale
)
Public Function Resize (
width As Integer,
height As Integer,
interpolationType As Inter,
preserveScale As Boolean
) As Image(Of TColor, TDepth)
public:
Image<TColor, TDepth>^ Resize(
int width,
int height,
Inter interpolationType,
bool preserveScale
)
member Resize :
width : int *
height : int *
interpolationType : Inter *
preserveScale : bool -> Image<'TColor, 'TDepth>
Parameters
- width
- Type: SystemInt32
The width of the returned image. - height
- Type: SystemInt32
The height of the returned image. - interpolationType
- Type: Emgu.CV.CvEnumInter
The type of interpolation - preserveScale
- Type: SystemBoolean
if true, the scale is preservered and the resulting image has maximum width(height) possible that is <= width (height), if false, this function is equaivalent to Resize(int width, int height)
Return Value
Type:
ImageTColor,
TDepthThe resized image
See Also