From a2073757a264f084b29da08c065a21d7b2f6523f Mon Sep 17 00:00:00 2001 From: Anshul Jain Date: Thu, 8 Oct 2015 12:14:18 -0700 Subject: [PATCH] Add support for CV_BGR2RGB color transformation --- src/Matrix.cc | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/Matrix.cc b/src/Matrix.cc index 1609f7e..8c63ab0 100755 --- a/src/Matrix.cc +++ b/src/Matrix.cc @@ -1785,6 +1785,8 @@ NAN_METHOD(Matrix::CvtColor) { iTransform = CV_BayerRG2BGR; } else if (!strcmp(sTransform, "CV_BayerGR2BGR")) { iTransform = CV_BayerGR2BGR; + } else if (!strcmp(sTransform, "CV_BGR2RGB")) { + iTransform = CV_BGR2RGB; } else { iTransform = 0; // to avoid compiler warning Nan::ThrowTypeError("Conversion code is unsupported");