4275899f8bc179d071051c06fa36ac441ddc3673,functions/BlockStatistics.py,BlockStatistics,updatePixels,#BlockStatistics#,90

Before 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"]

After Change


        m = pixelBlocks["raster_mask"]

        if self.func is None:
            b = resize(p, shape, order=0, preserve_range=True)
        else:
            blockSizes = tuple(np.divide(p.shape, shape))
            b = np.ma.masked_array(view_as_blocks(p, blockSizes),
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 3

Instances


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


Project Name: baldassarreFe/deep-koalarization
Commit Name: 3a25edce742db97d936ffb645185b520878d0c6d
Time: 2017-05-06
Author: baldassarre.fe@gmail.com
File Name: dataset/resize.py
Class Name: ImagenetResizer
Method Name: resize_img


Project Name: richzhang/PerceptualSimilarity
Commit Name: 8828f67d5d41b88881bd0d7d17a9dbc9a37f98b7
Time: 2018-04-10
Author: cobarnes@adobe.com
File Name: models/dist_model.py
Class Name: DistModel
Method Name: forward