注册 登录
编程论坛 Matlab

请问MATLAB的Reducem函数的应用

每天的每天 发布于 2007-04-26 13:53, 923 次点击
我从MATLAB中提取出中国大陆的边境地图,它的大陆地区由30000个点组成,因为课题的需要,它的精度太高。数据量太大,因此需要在保持一定精度前提下减少地图的细节,要由MATLAB的Reducem函数完成。
现在想请教各位高手,该怎么用此函数。求教程序!!!!
5 回复
#2
abingchem2007-04-26 19:06

先用help试试

#3
每天的每天2007-04-27 09:36
用了,可是照着例子做,它老是说错误,我都很无奈了。。。。。。。
#4
每天的每天2007-05-21 13:27
请斑竹关注一下这个问题,已经很久没解决了。。。。。。。。。。。。。。
#5
每天的每天2007-05-21 13:27
敬请!!!!!!!!!!!!!!!!!!!!!!11

#6
seidel2007-05-21 14:14

使用help ,它上面说的很清楚啊!不知道你说的错误错在哪里?
REDUCEM Reduce the number of points in vector data

[latout,lonout] = REDUCEM(latin,lonin) reduces the number of points
in vector map data using the Douglas-Peucker line simplification
algorithm. This method recursively subdivides a polygon until a
run of points can be replaced by a straight line segment, with no
point in that run deviating from the straight line by more than the
tolerance. In this case the tolerance is computed automatically.

[latout,lonout] = REDUCEM(latin,lonin,tol) uses the provided
tolerance. The units of the tolerance are degrees of arc on the surface
of a sphere.

[latout,lonout,cerr] = REDUCEM(...) also returns a measure of the
error introduced by the simplification. Cerr is the difference in
the arc length of the original and reduced data, normalized by the
original length.

[latout,lonout,cerr,tol] = REDUCEM(...) also returns the tolerance
used in the reduction. Useful when the tolerance is computed
automatically.
你再仔细的看看说明,不知道你到底哪里出错,所以也是无能为力啦!

1