Commit 84a6a374 authored by Niels-Oliver Walkowski's avatar Niels-Oliver Walkowski
Browse files

change threshold value for pixels per bin in MultivariateSequence class

The threshold value should depent on the number of pixels in a frame
image and should not be absolute.
parent d7db668c
......@@ -127,7 +127,7 @@ class MultivariateSequence(View):
"""
obj = View.__new__(cls, frames, input_array=input_array)
obj._threshold = 60000
obj._threshold = 6000
return obj
def __array_finalize__(self, obj):
......@@ -135,7 +135,7 @@ class MultivariateSequence(View):
View.__array_finalize__(self, obj)
self._threshold = getattr(obj, '_threshold', None)
def populate(self, ctrst='monochromatic', method='luminance', frm_stp=10, bins=16, thrsh=60000, start=1, end=0):
def populate(self, ctrst='monochromatic', method='luminance', frm_stp=10, bins=16, thrsh=6000, start=1, end=0):
"""doc (aus __new__ zusammentragen)
"""
......@@ -165,8 +165,6 @@ class MultivariateSequence(View):
img = cv2.imread(pwd) # BGR
print('ctrst: {0} and meth: {1}'.format(self._contrast, self._method))
# Kontrast Parameternamen auf Klassennamen mappen
ctrst_cls = self._get_ctrst_cls_name(self._contrast)
ctrst_img = ctrst_cls(img, self._method).ctrst
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment