Skip to main content

cv - Auto binarize image (:cv_binaryzation)

Declaration​

img = img:cv_binaryzation([ threshold ])

Parameters​

  • threshold
    Number, optional. Threshold in range 0~255. Default uses theoretically best threshold

Returns​

  • img
    Image object. Returns the image object itself after binarization

Description​

OpenCV extension: automatically binarize an image
Mutates the image in-place
Performance: no data copy during operation