threshold

fun threshold(threshold: Double = 0.4): ImageOpPipeline

Thresholding an image will convert the image to a black and white image

Return

ImageOpPipeline builder

Parameters

threshold

Any pixels with relative value above this number will be white else black, must be in a range of [0.0, 1.0], defaults to 0.4