02bb4ed03e72ddf68e6d1aa986f428baf0afe014,cellprofiler/modules/measuretexture.py,MeasureTexture,run_one,#MeasureTexture#Any#Any#Any#Any#,491

Before Change


            out_range=(0,gray_levels-1)).astype(numpy.uint8)
        props = skimage.measure.regionprops(labels, pixel_data)
        per_label = [self.run_mahotas(prop, scale, n_directions) for prop in props]
        features = dask.compute(per_label, scheduler="threads")
        features = numpy.array(features)[0].transpose(1,2,0)

        for direction, direction_features in enumerate(features):
            for feature_name, feature in zip(F_HARALICK, direction_features):
                statistics += self.record_measurement(

After Change


                                                            out_range=(0, gray_levels-1)).astype(numpy.uint8)
        props = skimage.measure.regionprops(labels, pixel_data)

        features = numpy.empty((n_directions, 13, len(unique_labels)))

        for index, prop in enumerate(props):
            label_data = prop["intensity_image"]
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 4

Non-data size: 3

Instances


Project Name: CellProfiler/CellProfiler
Commit Name: 02bb4ed03e72ddf68e6d1aa986f428baf0afe014
Time: 2020-08-17
Author: dstirling@broadinstitute.org
File Name: cellprofiler/modules/measuretexture.py
Class Name: MeasureTexture
Method Name: run_one


Project Name: pytorch/ignite
Commit Name: 7753eabc5af8bed2cca4713805613adfbc460a8e
Time: 2021-02-21
Author: francois.cokelaer@gmail.com
File Name: tests/ignite/metrics/test_recall.py
Class Name:
Method Name: _test_distrib_integration_multilabel


Project Name: pytorch/ignite
Commit Name: 7753eabc5af8bed2cca4713805613adfbc460a8e
Time: 2021-02-21
Author: francois.cokelaer@gmail.com
File Name: tests/ignite/metrics/test_precision.py
Class Name:
Method Name: _test_distrib_integration_multilabel


Project Name: descarteslabs/descarteslabs-python
Commit Name: 9867d46676b48fbf23b8998a0a6f5269cbb0bace
Time: 2019-08-21
Author: 13060286+stephaniegott@users.noreply.github.com
File Name: descarteslabs/workflows/interactive/layer_controller_row.py
Class Name: LayerControllerRow
Method Name: autoscale