7c623c5026672c779a9d2005e0f046f0af8c5567,MultidirectionalHillshade.py,MultidirectionalHillshade,updatePixels,#MultidirectionalHillshade#,109

Before Change


        //return c * np.clip(255 * (cosZ + cosDelta) / np.sqrt(1 + d2), 0.0, 255.0)

    def updatePixels(self, **pixelBlocks):
        if not pixelBlocks.has_key("raster_pixels"):
            raise Exception("No input raster was provided.")

        v = np.array(pixelBlocks["raster_pixels"], dtype="float")
        dx, dy = np.gradient(v)

        outBlock = self.getWeightedHillshade(v, 0, dx, dy)

After Change


        v = np.array(pixelBlocks["raster_pixels"], dtype="float")
        dx, dy = np.gradient(v)
        dx = dx * self.factors[0]
        dy = dy * self.factors[1]

        outBlock = self.weights[0] * self.getHillshade(v, 0, dx, dy)
        for i in range(1, 5):
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 4

Non-data size: 4

Instances


Project Name: Esri/raster-functions
Commit Name: 7c623c5026672c779a9d2005e0f046f0af8c5567
Time: 2014-08-29
Author: akferoz@esri.com
File Name: MultidirectionalHillshade.py
Class Name: MultidirectionalHillshade
Method Name: updatePixels


Project Name: BVLC/caffe
Commit Name: 738c8758e30c6f8bdf9155529aeb431547af65d6
Time: 2014-05-19
Author: shelhamer@imaginarynumber.net
File Name: python/caffe/pycaffe.py
Class Name:
Method Name: _Net_set_mean


Project Name: Esri/raster-functions
Commit Name: 372cc580b234724920fee6045e0151abb2b8a823
Time: 2014-09-09
Author: akferoz@esri.com
File Name: Aggregation.py
Class Name: Aggregation
Method Name: updatePixels


Project Name: pysb/pysb
Commit Name: 47374cd825213029b578e5a22ba9836c0f55d97a
Time: 2015-07-03
Author: oo.ortega2247@gmail.com
File Name: pysb/tools/pysb_pyurdme.py
Class Name:
Method Name: _translate_species