Did I find the right examples for you? yes no

All Samples(0)  |  Call(0)  |  Derive(0)  |  Import(0)

src/c/e/CellProfiler-HEAD/cellprofiler/modules/tests/test_identifysecondaryobjects.py   CellProfiler(Download)
        module.objects_name.value=OUTPUT_OBJECTS_NAME
        module.image_name.value = IMAGE_NAME
        module.method.value = cpmi2.M_WATERSHED_G
        module.module_num = 1
        p.add_module(module)
        module.objects_name.value=OUTPUT_OBJECTS_NAME
        module.image_name.value = IMAGE_NAME
        module.method.value = cpmi2.M_WATERSHED_G
        module.threshold_scope.value = cpmi.TS_GLOBAL
        module.threshold_method.value = cpmi.TM_OTSU
        module.objects_name.value=OUTPUT_OBJECTS_NAME
        module.image_name.value = IMAGE_NAME
        module.method.value = cpmi2.M_WATERSHED_G
        module.threshold_scope.value = cpmi.TM_MANUAL
        module.manual_threshold.value = .2
        labels[3:6,3:6] = 1
        workspace, module = self.make_workspace(img, labels)
        module.method.value = cpmi2.M_WATERSHED_G
        module.threshold_scope.value = cpmi.TS_GLOBAL
        module.threshold_method.value = cpmi.TM_OTSU
            for method in (cpmi2.M_DISTANCE_B,
                           cpmi2.M_PROPAGATION,
                           cpmi2.M_WATERSHED_G,
                           cpmi2.M_WATERSHED_I):
                image = np.random.uniform(size=(20,10))