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

Before Change


        if method == "scaled":
            // constrained output pixels
            self.applyScaling = True
            outStats = {"minimum": 0, "maximum": 1.0, "skipFactorX": 10, "skipFactorY": 10}
        else:
            self.applyScaling = False
            // rough estimation of output stats
            outStats = {"minimum": -10.0, "maximum": 10.0, "skipFactorX": 10, "skipFactorY": 10}
        // repeat stats for all output raster bands
        outStats = tuple(outStats for i in xrange(bandCount))

        kwargs["output_info"]["bandCount"] = bandCount
        kwargs["output_info"]["statistics"] = outStats
        kwargs["output_info"]["histogram"] = ()

After Change


        // ... and then 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()
        self.coefficients = np.array(list(self.signatures.values())).T

        // output bandCount is number of endmembers + 1 residuals raster
        if self.coefficients.shape[0] != kwargs["raster_info"]["bandCount"]:
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: hanxiao/bert-as-service
Commit Name: 2bfe5bfcec7759ae022b1a479411aa7d1b8401f1
Time: 2019-05-06
Author: zyn2122@gmail.com
File Name: example/example7.py
Class Name:
Method Name:


Project Name: WheatonCS/Lexos
Commit Name: 734defa2723e5da33a7523924b2d36c2b19cad76
Time: 2017-08-01
Author: weltch1997@gmail.com
File Name: test/unit_test/test_utility_topword.py
Class Name:
Method Name: