b895d74347d7749b02d8ea57b5f5d71101297a34,functions/BlockStatistics.py,BlockStatistics,updatePixels,#BlockStatistics#,85

Before Change


        p = pixelBlocks["raster_pixels"]

        if self.measure is None:
            b = resize(p, shape, order=0, preserve_range=True)
        else:
            blockSizes = tuple(np.divide(p.shape, shape))
            b = measure.block_reduce(p, blockSizes, self.measure)

After Change



    def updatePixels(self, tlc, shape, props, **pixelBlocks):
        if self.func is None:
            b = resize(pixelBlocks["raster_pixels"], shape, order=0, preserve_range=True)
            m = resize(pixelBlocks["raster_mask"], shape, order=0, preserve_range=True)
        else:
            p = pixelBlocks["raster_pixels"]
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 3

Instances


Project Name: Esri/raster-functions
Commit Name: b895d74347d7749b02d8ea57b5f5d71101297a34
Time: 2015-10-18
Author: akferoz@esri.com
File Name: functions/BlockStatistics.py
Class Name: BlockStatistics
Method Name: updatePixels


Project Name: utkuozbulak/pytorch-cnn-visualizations
Commit Name: 818b177b0d10394c1fd1c75465ff55aabadb221b
Time: 2018-12-30
Author: utku.ozbulak@gmail.com
File Name: src/gradcam.py
Class Name: GradCam
Method Name: generate_cam


Project Name: matthewwithanm/django-imagekit
Commit Name: 15e0981835bf6620d8a68f57436ea3c0863928d5
Time: 2012-02-11
Author: matthew@exanimo.com
File Name: imagekit/processors/resize.py
Class Name: Fit
Method Name: process