(image)
| 109 | def simple_superpixel(batch_image, seg_num=200): |
| 110 | |
| 111 | def process_slic(image): |
| 112 | seg_label = segmentation.slic(image, n_segments=seg_num, sigma=1, |
| 113 | compactness=10, convert2lab=True) |
| 114 | image = color.label2rgb(seg_label, image, kind='mix') |
| 115 | return image |
| 116 | |
| 117 | num_job = np.shape(batch_image)[0] |
| 118 | batch_out = Parallel(n_jobs=num_job)(delayed(process_slic)\ |
nothing calls this directly
no outgoing calls
no test coverage detected