f67b777d2153821ee08e103232d95d8bc8b29332,tests/modules/test_resize.py,TestResize,test_02_01_rescale_triple_color,#TestResize#,177

Before Change


        result = result_image.pixel_data
        self.assertTrue(numpy.all(numpy.abs(result - expected) <=
                                  numpy.finfo(float).eps))
        self.assertTrue(result_image.parent_image is
                        workspace.image_set.get_image(INPUT_IMAGE_NAME))

    def test_02_02_rescale_triple_bw(self):
        i, j = numpy.mgrid[0:10, 0:10]
        image = i.astype(float)

After Change


        image = numpy.zeros((10, 10, 3))
        image[:, :, 0] = i
        image[:, :, 1] = j
        image = skimage.exposure.rescale_intensity(1.0 * image)
        i, j = (numpy.mgrid[0:30, 0:30].astype(float) * 1.0 / 3.0).astype(int)
        expected = numpy.zeros((30, 30, 3))
        expected[:, :, 0] = i
        expected[:, :, 1] = j
        expected = skimage.exposure.rescale_intensity(1.0 * expected)
        workspace, module = self.make_workspace(
            image,
            cellprofiler.modules.resize.R_BY_FACTOR,
            cellprofiler.modules.resize.I_NEAREST_NEIGHBOR
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 4

Non-data size: 7

Instances


Project Name: CellProfiler/CellProfiler
Commit Name: f67b777d2153821ee08e103232d95d8bc8b29332
Time: 2017-02-24
Author: mcquin@broadinstitute.org
File Name: tests/modules/test_resize.py
Class Name: TestResize
Method Name: test_02_01_rescale_triple_color


Project Name: CellProfiler/CellProfiler
Commit Name: f67b777d2153821ee08e103232d95d8bc8b29332
Time: 2017-02-24
Author: mcquin@broadinstitute.org
File Name: tests/modules/test_resize.py
Class Name: TestResize
Method Name: test_02_03_third


Project Name: CellProfiler/CellProfiler
Commit Name: f67b777d2153821ee08e103232d95d8bc8b29332
Time: 2017-02-24
Author: mcquin@broadinstitute.org
File Name: tests/modules/test_resize.py
Class Name: TestResize
Method Name: test_02_02_rescale_triple_bw


Project Name: CellProfiler/CellProfiler
Commit Name: f67b777d2153821ee08e103232d95d8bc8b29332
Time: 2017-02-24
Author: mcquin@broadinstitute.org
File Name: tests/modules/test_resize.py
Class Name: TestResize
Method Name: test_02_01_rescale_triple_color


Project Name: CellProfiler/CellProfiler
Commit Name: f67b777d2153821ee08e103232d95d8bc8b29332
Time: 2017-02-24
Author: mcquin@broadinstitute.org
File Name: tests/modules/test_resize.py
Class Name: TestResize
Method Name: test_03_01_bilinear