def isLicensed(self): """Allow the tool to execute, only if the ArcGIS 3D Analyst 扩展模块 is available.""" try: if arcpy.CheckExtension("3D") == "Available": raise Exception except Exception: return False # t
// Copyright 2010 ESRI // // All rights reserved under the copyright laws of the United States // and applicable international laws, treaties, and conventions. // // You may freely redistribute and use this sample code, with or // without modificatio
声明:本文用到的代码均来自于PRTools(http://www.prtools.org)模式识别工具箱,并以matlab软件进行实验. 混淆矩阵是模式识别中的常用工具,在PRTools工具箱中有直接的函数confmat可供引用.具体使用方法如下所示: [C,NE,LABLIST] = CONFMAT(LAB1,LAB2,METHOD,FID) INPUT LAB1 Set of labels LAB2 Set of labels METHOD 'count' (default) to coun