node-opencv icon indicating copy to clipboard operation
node-opencv copied to clipboard

Add Triangle Threshold algorithm after upgrade to OpenCV 3

Open adius opened this issue 10 years ago • 2 comments

#315 already adds otsu's algorithm.

It's just necessary to add another else branch:

else if (strcmp(*algorithm, "Triangle") == 0) {
  typ += 16;
}

adius avatar Oct 08 '15 20:10 adius

Can we wrap this in a macro so it remains backwards compatible?

peterbraden avatar Oct 09 '15 08:10 peterbraden

Can you give an example? I'm not sure what you mean by macro.

adius avatar Oct 09 '15 08:10 adius