b171c97f2974ef3f884ad9674de137eda7023875,functions/LinearSpectralUnmixing.py,LinearSpectralUnmixing,updateRasterInfo,#LinearSpectralUnmixing#,55

Before Change



        // convert input endmember signatures into arrays of each endmember across bands
        // [[vegB, vegG, vegR, ...], [shadowB, shadowG, shadowR, ...], [...]]
        signaturesArray = np.array(self.inputSignatures.values())

        // transpose signature axes to into arrays of each band"s endmembers
        // [[vegB, shadowB, npvB, ...], [vegG, shadowG, npvG, ...], [...]]
        // assign to coefficients member var to use in np.linalg.lstsq()

After Change



        // output bandCount is number of endmembers + 1 residuals raster
        if self.coefficients.shape[0] != kwargs["raster_info"]["bandCount"]:
            raise Exception("Incoming raster has {0} bands; endmember signatures "
                            "indicate {1} input bands.".format(
                                kwargs["raster_info"]["bandCount"], self.coefficients.shape[0]))

        // determine output pixel value method
        self.applyScaling = kwargs["method"].lower() == "scaled"
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 3

Instances


Project Name: Esri/raster-functions
Commit Name: b171c97f2974ef3f884ad9674de137eda7023875
Time: 2015-03-01
Author: akferoz@esri.com
File Name: functions/LinearSpectralUnmixing.py
Class Name: LinearSpectralUnmixing
Method Name: updateRasterInfo


Project Name: utiasSTARS/liegroups
Commit Name: 784586f02d063d39360a287422a6384f30f10d12
Time: 2017-01-30
Author: clement.leopold@gmail.com
File Name: liegroups/so3.py
Class Name: SO3
Method Name: vee


Project Name: librosa/librosa
Commit Name: 7ca0da3854c49f73bd2aae5592f1cf5a9f7177d4
Time: 2014-11-06
Author: brian.mcfee@nyu.edu
File Name: librosa/core.py
Class Name:
Method Name: note_to_midi