mirror of
https://github.com/peterbraden/node-opencv.git
synced 2025-12-08 19:45:55 +00:00
Add CV_BGRA2BGR format conversion.
This commit is contained in:
parent
b5a078a631
commit
a9f799004d
@ -2485,6 +2485,8 @@ NAN_METHOD(Matrix::CvtColor) {
|
||||
iTransform = CV_BayerGR2BGR;
|
||||
} else if (!strcmp(sTransform, "CV_BGR2RGB")) {
|
||||
iTransform = CV_BGR2RGB;
|
||||
} else if (!strcmp(sTransform, "CV_BGRA2BGR")) {
|
||||
iTransform = CV_BGRA2BGR;
|
||||
} else {
|
||||
iTransform = 0; // to avoid compiler warning
|
||||
Nan::ThrowTypeError("Conversion code is unsupported");
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user