module documentation
Implements Otsu's method for thresholding images
Function | calc |
Calculates the inter-class-variance for a histogram with counts at all bin_edges |
Function | exact |
Returns a threshold that should be used as <= threshold |
Function | frac |
Calculates the fraction of pixels included in n_max otsu thresholds |
Function | masks |
Undocumented |
Function | max |
Returns the otsu threshold (of n_max thresholds) that selects a group of similarly valued pixels |
Function | max |
Calculates the "most selective" otsu threshold out of n_max thresholds |
Function | n |
n is the number of thresholds we want to get out, to get n+1 thresholds, we must first get n thresholds, then find thresholds for each n+1 classes |
Function | n |
Calculates n otsu-thresholds for data . Automatically calculates the bin edges depending on the sqrt of the number of datapoints |
Function | plot |
Undocumented |
Function | polynomial |
Undocumented |
Function | threshold |
Given the bin_edges of a histogram and the inter-class-variance at those edges, returns the edge with the maximum inter-class-variance |
Variable | _lgr |
Undocumented |
n is the number of thresholds we want to get out, to get n+1 thresholds, we must first get n thresholds, then find thresholds for each n+1 classes
Calculates n
otsu-thresholds for data
. Automatically calculates the bin edges depending on the sqrt of the number of datapoints