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)
        expected = np.mgrid[0:30,0:30][0].astype(np.float32) * 9.0/29.0
        workspace, module = self.make_workspace(image, R.R_BY_FACTOR, 
                                                R.I_BILINEAR)
        module.resizing_factor.value = 3.0
        module.run(workspace)
        expected =  i+j*10
        workspace, module = self.make_workspace(image, R.R_TO_SIZE,
                                                R.I_BILINEAR)
        module.specific_width.value = 19
        module.specific_height.value = 19
        expected =  i+j*10
        workspace, module = self.make_workspace(image, R.R_TO_SIZE,
                                                R.I_BILINEAR)
        module.specific_width.value = 10
        module.specific_height.value = 10
        expected =  i*.5+j*10
        workspace, module = self.make_workspace(image, R.R_TO_SIZE,
                                                R.I_BILINEAR)
        module.specific_width.value = 10
        module.specific_height.value = 19
        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
        module.specific_image.value = 'AnotherImage'