mirror of
https://github.com/peterbraden/node-opencv.git
synced 2025-12-08 19:45:55 +00:00
Use correct datatype for binarization type
This commit is contained in:
parent
901edf4d58
commit
8281330044
@ -1642,16 +1642,16 @@ NAN_METHOD(Matrix::Threshold) {
|
||||
// Uses default value
|
||||
}
|
||||
else if (strcmp(*typstr, "Binary Inverted") == 0) {
|
||||
typ = 1;
|
||||
typ = cv::THRESH_BINARY_INV;
|
||||
}
|
||||
else if (strcmp(*typstr, "Threshold Truncated") == 0) {
|
||||
typ = 2;
|
||||
typ = cv::THRESH_TRUNC;
|
||||
}
|
||||
else if (strcmp(*typstr, "Threshold to Zero") == 0) {
|
||||
typ = 3;
|
||||
typ = cv::THRESH_TOZERO;
|
||||
}
|
||||
else if (strcmp(*typstr, "Threshold to Zero Inverted") == 0) {
|
||||
typ = 4;
|
||||
typ = cv::THRESH_TOZERO_INV;
|
||||
}
|
||||
else {
|
||||
char *typeString = *typstr;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user