def __init__(self, **args): filters= create_default_filter_stack() stack = [BlurProcessor(), RawContourSegmenter()] + filters + [SegmentOrderer()] FullSegmenter.__init__(self, stack, **args) stack[0].add_prehook( create_broadcast( "_input", filters, "image" ) )
def __init__(self, **args): filters = create_default_filter_stack() stack = [BlurProcessor(), RawContourSegmenter()] + filters + [SegmentOrderer()] FullSegmenter.__init__(self, stack, **args) stack[0].add_prehook(create_broadcast("_input", filters, "image"))