9d8f5baf55b4ebe2bd8c389383dff17bd77cc6b9,functions/SelectByPixelSize.py,SelectByPixelSize,updatePixels,#SelectByPixelSize#,53
Before Change
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
self.emit("Trace|Request cell-size|{0}\n".format(v))
if v < self.threshold:
sPixels = "r1_pixels"
sMask = "r1_mask"
nBands = self.inBands1
else:
sPixels = "r2_pixels"
sMask = "r2_mask"
nBands = self.inBands2
if self.outBands == nBands:
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"])
pixelBlocks["output_mask"] = m.astype("u1")
return pixelBlocks
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: librosa/librosa
Commit Name: 6d299633b04514c6b8c433e2aa3fc14d6a181bae
Time: 2015-03-10
Author: brian.mcfee@nyu.edu
File Name: librosa/filters.py
Class Name:
Method Name: cq_to_chroma