CvInvokeCvtColor Method (IInputArray, IOutputArray, ColorConversion, Int32) |
http://www.emgu.com
Converts input image from one color space to another. The function ignores colorModel and channelSeq fields of IplImage header, so the source image color space should be specified correctly (including order of the channels in case of RGB space, e.g. BGR means 24-bit format with B0 G0 R0 B1 G1 R1 ... layout, whereas RGB means 24-bit format with R0 G0 B0 R1 G1 B1 ... layout).
Namespace:
Emgu.CV
Assembly:
Emgu.CV.World (in Emgu.CV.World.dll) Version: 4.1.1.3497 (4.1.1.3497)
Syntaxpublic static void CvtColor(
IInputArray src,
IOutputArray dst,
ColorConversion code,
int dstCn = 0
)
Public Shared Sub CvtColor (
src As IInputArray,
dst As IOutputArray,
code As ColorConversion,
Optional dstCn As Integer = 0
)
public:
static void CvtColor(
IInputArray^ src,
IOutputArray^ dst,
ColorConversion code,
int dstCn = 0
)
static member CvtColor :
src : IInputArray *
dst : IOutputArray *
code : ColorConversion *
?dstCn : int
(* Defaults:
let _dstCn = defaultArg dstCn 0
*)
-> unit
Parameters
- src
- Type: Emgu.CVIInputArray
The source 8-bit (8u), 16-bit (16u) or single-precision floating-point (32f) image - dst
- Type: Emgu.CVIOutputArray
The destination image of the same data type as the source one. The number of channels may be different - code
- Type: Emgu.CV.CvEnumColorConversion
Color conversion operation that can be specifed using CV_src_color_space2dst_color_space constants - dstCn (Optional)
- Type: SystemInt32
number of channels in the destination image; if the parameter is 0, the number of the channels is derived automatically from src and code .
See Also