栅格遍历方法完成栅格重分类
发布时间
阅读量:
阅读量
栅格数据的重分类技术存在多种实现路径,在AE平台中提供了多样化的操作方式,例如借助地图代数(在RasterModel模块中完成)、IReclassOp接口、Geoprocessor工具等,甚至还可以通过逐像元遍历的方式进行处理,这种方式虽然较为基础,但可能在实际应用中更具可行性。本文所采用的正是这种最原始的逐像元遍历方法。
public static void StrechDN(IRasterLayer pRasterLayer, int OTSU,int minValue, int maxValue)//修改二值化后的像素值
{
//获取栅格像素块
IRaster pRaster = pRasterLayer.Raster;
IRasterProps pRasterProps = (IRasterProps)pRaster; //rasterband;
//设置像素块的大小
IPnt pBlockSize1 = new PntClass();
pBlockSize1.SetCoords(pRasterProps.Width, pRasterProps.Height);
IPixelBlock pixelB
全部评论 (0)
还没有任何评论哟~
