"""The settings as displayed to the user"""
result = []
for image_group in self.image_groups:
result += [image_group.image_name, image_group.check_blur]
if image_group.check_blur.value:
result += [image_group.window_size]
result += [image_group.check_saturation, image_group.calculate_threshold]
if image_group.calculate_threshold.value:
result += [image_group.threshold_method]
if image_group.threshold_method == cpthresh.TM_MOG_GLOBAL:
result += [image_group.object_fraction]
result += [image_group.compute_power_spectrum]
result += [image_group.remove_button, image_group.divider]
// remove the last divider
After Change
"""The settings as displayed to the user"""
result = []
for image_group in self.image_groups:
result += image_group.unpack_group()
result += [self.add_button]
return result
def validate_module(self, pipeline):