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_resize.py   CellProfiler(Download)
        i,j = np.mgrid[0:19,0:19].astype(float) / 2.0
        expected =  i+j*10
        workspace, module = self.make_workspace(image, R.R_TO_SIZE,
                                                R.I_BILINEAR)
        module.specific_width.value = 19
        i,j = np.mgrid[0:10,0:10].astype(float)
        expected =  i+j*10
        workspace, module = self.make_workspace(image, R.R_TO_SIZE,
                                                R.I_BILINEAR)
        module.specific_width.value = 10
        i,j = np.mgrid[0:19,0:10].astype(float)
        expected =  i*.5+j*10
        workspace, module = self.make_workspace(image, R.R_TO_SIZE,
                                                R.I_BILINEAR)
        module.specific_width.value = 10
        i,j = np.mgrid[0:19,0:10].astype(float)
        expected =  i+j
        workspace, module = self.make_workspace(image, R.R_TO_SIZE,
                                                R.I_BILINEAR)
        module.use_manual_or_image.value = R.C_IMAGE