当前位置:网站首页>Google Earth engine (GEE) - verification results used by NDVI, NDWI and NDBI to increase classification accuracy (random forest and cart classification)

Google Earth engine (GEE) - verification results used by NDVI, NDWI and NDBI to increase classification accuracy (random forest and cart classification)

2022-06-24 00:19:00 The star light blog in 2021 cloud computing top3

According to the selected sample points , And by adding different indices ("NDBI", "NDWI", "NDVI","B1", "B2", "B3", "B4", "B5", "B6", "B7") To increase recognition , Then the final classification accuracy is obtained , Finally through cart The accuracy results of classification and random forest classification are compared and verified , The confusion matrix and precision of the two can be obtained respectively .

Code :

var roi =
 
    /* color: #d63000 */
 
    /* shown: false */
 
    /* displayProperties: [
      {
        "type": "rectangle"
      }
    ] */
 
    ee.Geometry.Polygon(
 
        [[[114.23790821489501, 36.43657462800738],
 
          [114.23790821489501, 36.29834769127675],
 
          [114.49265369829345, 36.29834769127675],
 
          [114.49265369829345, 36.43657462800738]]], null, false),
 
    crop =
 
    /* color: #98ff00 */
 
    /* shown: false */
 
    ee.FeatureCollection(
 
        [ee.Feature(
 
            ee.Geometry.Point([114.31343922075439, 36.356156419842804]),
 
            {
 
              "type": 0,
原网站

版权声明
本文为[The star light blog in 2021 cloud computing top3]所创,转载请带上原文链接,感谢
https://yzsam.com/2022/175/202206232216077477.html