def test_features_rgb(self): im, seg = sample_color_image_rand_segment() # Cython logging.info('running Cython code...') start = time.time() f = cython_img2d_color_mean(im, seg) logging.info('time elapsed: %f', time.time() - start) logging.debug('%r', f)
def test_features_rgb(self): im, seg = d_spl.sample_color_image_rand_segment() # Cython logging.info('running Cython code...') start = time.time() f = seg_fts.cython_img2d_color_mean(im, seg) logging.info('time elapsed: {}'.format(time.time() - start)) logging.debug(repr(f))