powered by
Takes in a grayscale image and finds the best threshold for binarization of the image.
make_bw(image)
The image generated after the ExG transformation in the EBImage format.
A binary image
This function uses the https://github.com/aoles/EBImage/blob/master/R/otsu.R otsu function from EBImage to make the grayscale image into a binary black and white image. How the otsu transformation works and chooses the threshold can be understood more clearly at http://www.labbookpages.co.uk/software/imgProc/otsuThreshold.html.
# NOT RUN { BW_Image <- make_bw(image) # } # NOT RUN { # }
Run the code above in your browser using DataLab