Exemplo n.º 1
0
 def threshold(self):
     return threshold_isodata(hist=clamp_histogram(self.histogram))
Exemplo n.º 2
0
 def threshold(self):
     hist, _ = clamp_histogram(self.histogram)
     return np.average(np.arange(hist.size), weights=hist)
Exemplo n.º 3
0
 def threshold(self):
     return threshold_otsu(hist=clamp_histogram(self.histogram))
Exemplo n.º 4
0
 def threshold(self):
     return threshold_minimum(hist=clamp_histogram(self.histogram))