Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

So apparently -normalize is just -contrast-stretch with specific arguments, so having both is somewhat redundant. Closest thing to -normalize is equalizeHist.

-threshold 60% is not OTSU, it's just using a threshold of 255*60/100.

For -morphology, you need to use getStructuringElement, and instead of doing MORPH_CLOSE, use MORPH_ERODE.

If the -contrast-stretch is really important, you'll have to write your own, and it doesn't say very much detail on how it actually works.