9d8f5baf55b4ebe2bd8c389383dff17bd77cc6b9,functions/SelectByPixelSize.py,SelectByPixelSize,updatePixels,#SelectByPixelSize#,53

Before Change


        raise Exception("{0}".format(v))

        if v < self.threshold:
            pixelBlocks["output_pixels"] = pixelBlocks["r1_pixels"].astype(props["pixelType"])
            pixelBlocks["output_mask"] = pixelBlocks["r1_mask"].astype("u1")
        else: 
            pixelBlocks["output_pixels"] = pixelBlocks["r2_pixels"].astype(props["pixelType"])
            pixelBlocks["output_mask"] = pixelBlocks["r2_mask"].astype("u1")

After Change


            p = pixelBlocks[sPixels]
            m = pixelBlocks[sMask]
        else:
            p = pixelBlocks[sPixels][0:self.outBands, :, :]
            m = pixelBlocks[sMask][0:self.outBands, :, :]

        pixelBlocks["output_pixels"] = p.astype(props["pixelType"])
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 6

Instances


Project Name: Esri/raster-functions
Commit Name: 9d8f5baf55b4ebe2bd8c389383dff17bd77cc6b9
Time: 2014-09-25
Author: akferoz@esri.com
File Name: functions/SelectByPixelSize.py
Class Name: SelectByPixelSize
Method Name: updatePixels


Project Name: Esri/raster-functions
Commit Name: ff4623e804d49ae25411595eafb43b64c90ff75c
Time: 2014-09-25
Author: akferoz@esri.com
File Name: functions/SelectByPixelSize.py
Class Name: SelectByPixelSize
Method Name: updatePixels


Project Name: xinntao/BasicSR
Commit Name: 6917d8a3dbf6617f02b1247fd50fbc20d3cb6fd4
Time: 2018-06-10
Author: wxt1994@126.com
File Name: codes/data/LR_dataset.py
Class Name: LRDataset
Method Name: __getitem__