f67b777d2153821ee08e103232d95d8bc8b29332,tests/modules/test_resize.py,TestResize,test_04_03_reshape_half_and_double,#TestResize#,289
Before Change
module.specific_height.value = 19
module.run(workspace)
result = workspace.image_set.get_image(OUTPUT_IMAGE_NAME).pixel_data
self.assertTrue(numpy.all(numpy.abs(result - expected) <=
numpy.sqrt(numpy.finfo(float).eps)))
def test_04_04_reshape_using_another_images_dimensions(self):
""""Resize to another image"s dimensions"""
i, j = numpy.mgrid[0:10, 0:19].astype(float)
After Change
def test_04_03_reshape_half_and_double(self):
"""Make an image twice as large in one dimension and half in other"""
i, j = numpy.mgrid[0:10, 0:19].astype(float)
image = skimage.exposure.rescale_intensity(i + j * 5.0)
expected = skimage.transform.resize(
image,
(19, 10),
order=1,
mode="symmetric"
)
workspace, module = self.make_workspace(
image,
cellprofiler.modules.resize.R_TO_SIZE,
cellprofiler.modules.resize.I_BILINEAR
In pattern: SUPERPATTERN
Frequency: 5
Non-data size: 8
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_04_03_reshape_half_and_double
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_04_01_reshape_double
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
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_04_02_reshape_half
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_04_03_reshape_half_and_double