http://www.emgu.com
Saves the image to the specified file. The image format is chosen depending on the filename extension, see cvLoadImage. Only 8-bit single-channel or 3-channel (with 'BGR' channel order) images can be saved using this function. If the format, depth or channel order is different, use cvCvtScale and cvCvtColor to convert it before saving, or use universal cvSave to save the image to XML or YAML format
Namespace: Emgu.CVAssembly: Emgu.CV.World (in Emgu.CV.World.dll) Version: 3.2.0.2682 (3.2.0.2682)
Syntax public static bool Imwrite(
string filename,
IInputArray image,
params KeyValuePair<ImwriteFlags, int>[] parameters
)
Public Shared Function Imwrite (
filename As String,
image As IInputArray,
ParamArray parameters As KeyValuePair(Of ImwriteFlags, Integer)()
) As Boolean
public:
static bool Imwrite(
String^ filename,
IInputArray^ image,
... array<KeyValuePair<ImwriteFlags, int>>^ parameters
)
static member Imwrite :
filename : string *
image : IInputArray *
parameters : KeyValuePair<ImwriteFlags, int>[] -> bool
Parameters
- filename
- Type: SystemString
The name of the file to be saved to - image
- Type: Emgu.CVIInputArray
The image to be saved - parameters
- Type: System.Collections.GenericKeyValuePairImwriteFlags, Int32
The parameters
Return Value
Type:
Booleantrue if success
See Also