mirror of
https://github.com/peterbraden/node-opencv.git
synced 2025-12-08 19:45:55 +00:00
Merge pull request #575 from btsimonh/imreadconstants
add constants for use with cv::imread and cv::imdecode
This commit is contained in:
commit
db70b8ce6b
@ -62,6 +62,17 @@ void Constants::Init(Local<Object> target) {
|
||||
CONST(CV_64FC3);
|
||||
CONST(CV_64FC4);
|
||||
|
||||
CONST(CV_LOAD_IMAGE_UNCHANGED);
|
||||
CONST(CV_LOAD_IMAGE_GRAYSCALE);
|
||||
CONST(CV_LOAD_IMAGE_COLOR);
|
||||
CONST(CV_LOAD_IMAGE_ANYDEPTH);
|
||||
CONST(CV_LOAD_IMAGE_ANYCOLOR);
|
||||
|
||||
// this is 3.2+ only
|
||||
#if ((CV_MAJOR_VERSION == 3) && (CV_MINOR_VERSION >=2))
|
||||
CONST(CV_LOAD_IMAGE_IGNORE_ORIENTATION);
|
||||
#endif
|
||||
|
||||
CONST_DOUBLE(CV_PI);
|
||||
CONST(CV_FILLED);
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user